-
Notifications
You must be signed in to change notification settings - Fork 151
Expand file tree
/
Copy pathAgentPaneContent.idl
More file actions
43 lines (34 loc) · 1.9 KB
/
Copy pathAgentPaneContent.idl
File metadata and controls
43 lines (34 loc) · 1.9 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT license.
import "IPaneContent.idl";
import "TerminalPaneContent.idl";
namespace TerminalApp
{
[default_interface] runtimeclass AgentPaneContent : Windows.UI.Xaml.Controls.UserControl,
IPaneContent,
ISnappable
{
AgentPaneContent(TerminalPaneContent inner);
TerminalPaneContent GetTerminalContent();
Microsoft.Terminal.Control.TermControl GetTermControl();
// Pushed in from outside when wta emits an `agent_status` event.
// state is one of "connecting" | "connected" | "failed" | "disconnected".
void UpdateAgentStatus(String name, String version, String model, String state, String backend);
// Toggle the bar's "agent name + version" header into a "Agent sessions"
// label (and hide the agent logo) while wta's session management view is
// active. Driven by TerminalPage whenever the wta view changes.
void SetSessionsView(Boolean active);
// True iff the pane is in sessions view (last value passed to
// SetSessionsView). Used by the page to decide toggle direction.
Boolean IsSessionsView { get; };
// Update the cached pane-position string (bottom vs right). Affects
// the icon shown on the window-level bottom bar; the page queries
// this back via the active tab when refreshing the bar.
void SetAgentPanePosition(String position);
// Raised whenever cached bottom-bar-affecting state changes (autofix
// state, sessions-view flag, agent-position). The outer page
// subscribes to refresh the window-level bottom bar when the firing
// pane belongs to the active tab.
event Windows.Foundation.TypedEventHandler<AgentPaneContent, Object> StateChanged;
}
}