Skip to content

Commit dd96548

Browse files
committed
workspace-create: expose workspace group capabilities
1 parent 0706bb1 commit dd96548

File tree

1 file changed

+47
-2
lines changed

1 file changed

+47
-2
lines changed

protocols/shell-workspace-creation-v1.xml

Lines changed: 47 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,12 +62,16 @@
6262

6363
<request name="destroy" type="destructor">
6464
<description summary="destroy the descriptor">
65-
Destroys the object.
65+
Destroy the object.
6666
</description>
6767
</request>
6868
</interface>
6969

7070
<interface name="shell_workspace_target_creation_manager_v1" version="1">
71+
<description summary="creates workspace targets">
72+
Allows the creation of workspace targets.
73+
</description>
74+
7175
<request name="destroy" type="destructor">
7276
<description summary="destroy the manager">
7377
Destroy the manager. Destroying the manager does not destroy objects
@@ -76,7 +80,7 @@
7680
</request>
7781

7882
<request name="get_target">
79-
<description>
83+
<description summary="create a new workspace target">
8084
This request creates a new workspace target from a given workspace
8185
target descriptor.
8286

@@ -89,6 +93,47 @@
8993
<arg name="target" type="new_id" interface="shell_workspace_creation_target_v1"/>
9094
<arg name="descriptor" type="new_id" interface="shell_workspace_creation_target_descriptor_v1"/>
9195
</request>
96+
97+
<request name="get_info">
98+
<description summary="get information about available capabilities">
99+
This request creates an info object, which exposes information
100+
about expected capabilities of workspace targets created in a group
101+
for a given workspace manager.
102+
</description>
103+
104+
<arg name="info" type="new_id" interface="shell_workspace_target_creation_info_v1"/>
105+
<arg name="workspace_manager" type="object" interface="ext_workspace_manager_v1"/>
106+
</request>
107+
</interface>
108+
109+
<interface name="shell_workspace_target_creation_info_v1" version="1">
110+
<description summary="workspace target creation info">
111+
This object exposes information about the expected capabilities of
112+
workspace targets created on each workspace group.
113+
</description>
114+
115+
<request name="destroy" type="destructor">
116+
<description summary="destroy the manager">
117+
Destroy the object.
118+
</description>
119+
</request>
120+
121+
<event name="group_capabilities">
122+
<description summary="update the capabilities of a workspace group">
123+
This event updates the expected capabilities for workspaces on a given
124+
workspace group.
125+
126+
Capabilities exposed by this event can be used by clients to determine
127+
available actions presented to a user. As such, the presented capabilities
128+
should usually be a superset of actions available to any target that might
129+
be created in the group.
130+
131+
'ext_workspace_manager_v1.done' will be sent following this event.
132+
</description>
133+
134+
<arg name="group" type="object" interface="ext_workspace_group_handle_v1"/>
135+
<arg name="capabilities" type="uint" enum="shell_workspace_creation_target_v1.capabilities"/>
136+
</event>
92137
</interface>
93138

94139
<interface name="shell_workspace_arbitrary_creation_manager_v1" version="1">

0 commit comments

Comments
 (0)