Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1462)

Side by Side Diff: third_party/wayland-protocols/unstable/remote-shell/remote-shell-unstable-v1.xml

Issue 2448413002: third_party: Revise version 3 of remote shell protocol (Closed)
Patch Set: Squash versions 3 and 4 Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « third_party/wayland-protocols/protocol/remote-shell-protocol.c ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 <?xml version="1.0" encoding="UTF-8"?> 1 <?xml version="1.0" encoding="UTF-8"?>
2 <protocol name="remote_shell_unstable_v1"> 2 <protocol name="remote_shell_unstable_v1">
3 3
4 <copyright> 4 <copyright>
5 Copyright 2016 The Chromium Authors. 5 Copyright 2016 The Chromium Authors.
6 6
7 Permission is hereby granted, free of charge, to any person obtaining a 7 Permission is hereby granted, free of charge, to any person obtaining a
8 copy of this software and associated documentation files (the "Software"), 8 copy of this software and associated documentation files (the "Software"),
9 to deal in the Software without restriction, including without limitation 9 to deal in the Software without restriction, including without limitation
10 the rights to use, copy, modify, merge, publish, distribute, sublicense, 10 the rights to use, copy, modify, merge, publish, distribute, sublicense,
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after
120 Creates a notification_surface for the given surface, gives it the 120 Creates a notification_surface for the given surface, gives it the
121 notification_surface role and associated it with a notification id. 121 notification_surface role and associated it with a notification id.
122 </description> 122 </description>
123 <arg name="id" type="new_id" interface="zcr_notification_surface_v1"/> 123 <arg name="id" type="new_id" interface="zcr_notification_surface_v1"/>
124 <arg name="surface" type="object" interface="wl_surface"/> 124 <arg name="surface" type="object" interface="wl_surface"/>
125 <arg name="notification_id" type="string" /> 125 <arg name="notification_id" type="string" />
126 </request> 126 </request>
127 127
128 <event name="configuration_changed"> 128 <event name="configuration_changed">
129 <description summary="suggests a re-configuration of remote shell"> 129 <description summary="suggests a re-configuration of remote shell">
130 » Suggests a re-configuration of remote shell. 130 » [Deprecated] Suggests a re-configuration of remote shell.
131 </description> 131 </description>
132 <arg name="width" type="int"/> 132 <arg name="width" type="int"/>
133 <arg name="height" type="int"/> 133 <arg name="height" type="int"/>
134 <arg name="transform" type="int"/> 134 <arg name="transform" type="int"/>
135 <arg name="scale_factor" type="fixed"/> 135 <arg name="scale_factor" type="fixed"/>
136 <arg name="work_area_inset_left" type="int"/> 136 <arg name="work_area_inset_left" type="int"/>
137 <arg name="work_area_inset_top" type="int"/> 137 <arg name="work_area_inset_top" type="int"/>
138 <arg name="work_area_inset_right" type="int"/> 138 <arg name="work_area_inset_right" type="int"/>
139 <arg name="work_area_inset_bottom" type="int"/> 139 <arg name="work_area_inset_bottom" type="int"/>
140 <arg name="layout_mode" type="uint"/> 140 <arg name="layout_mode" type="uint"/>
141 </event> 141 </event>
142
143 <!-- Version 3 additions -->
144
145 <event name="workspace" version="3">
146 <description summary="area of remote shell">
147 Defines an area of the remote shell used for layout. Each series of
148 "workspace" events must be terminated by a "configure" event.
149 </description>
150 <arg name="id_hi" type="uint"/>
151 <arg name="id_lo" type="uint"/>
152 <arg name="x" type="int"/>
153 <arg name="y" type="int"/>
154 <arg name="width" type="int"/>
155 <arg name="height" type="int"/>
156 <arg name="inset_left" type="int"/>
157 <arg name="inset_top" type="int"/>
158 <arg name="inset_right" type="int"/>
159 <arg name="inset_bottom" type="int"/>
160 </event>
161
162 <event name="configure" version="3">
163 <description summary="suggests configuration of remote shell">
164 Suggests a new configuration of the remote shell. Preceded by a series
165 of "workspace" events.
166 </description>
167 <arg name="primary_id_hi" type="uint"/>
168 <arg name="primary_id_lo" type="uint"/>
169 <arg name="transform" type="int"/>
170 <arg name="scale_factor" type="fixed"/>
171 <arg name="layout_mode" type="uint"/>
172 </event>
142 </interface> 173 </interface>
143 174
144 <interface name="zcr_remote_surface_v1" version="3"> 175 <interface name="zcr_remote_surface_v1" version="3">
145 <description summary="A desktop window"> 176 <description summary="A desktop window">
146 An interface that may be implemented by a wl_surface, for 177 An interface that may be implemented by a wl_surface, for
147 implementations that provide a desktop-style user interface 178 implementations that provide a desktop-style user interface
148 and allows for remotely managed windows. 179 and allows for remotely managed windows.
149 180
150 It provides requests to treat surfaces like windows, allowing to set 181 It provides requests to treat surfaces like windows, allowing to set
151 properties like app id and geometry. 182 properties like app id and geometry.
(...skipping 247 matching lines...) Expand 10 before | Expand all | Expand 10 after
399 <arg name="width" type="int"/> 430 <arg name="width" type="int"/>
400 <arg name="height" type="int"/> 431 <arg name="height" type="int"/>
401 </request> 432 </request>
402 433
403 <!-- Version 3 additions --> 434 <!-- Version 3 additions -->
404 435
405 <event name="configure" since="3"> 436 <event name="configure" since="3">
406 <description summary="suggest a surface change"> 437 <description summary="suggest a surface change">
407 The configure event asks the client to change surface state. 438 The configure event asks the client to change surface state.
408 439
409 » The origin arguments specify the position, in the compositor coordinate 440 » The client must apply the origin offset to window positions in
410 » space, of the virtual display used by the client to simulate multiple 441 » set_window_geometry requests.
411 » displays. The client must offset window positions in set_window_geometry
412 » requests by this origin in order to convert between coordinate spaces.
413 442
414 The states listed in the event are state_type values, and might change 443 The states listed in the event are state_type values, and might change
415 due to a client request or an event directly handled by the compositor. 444 due to a client request or an event directly handled by the compositor.
416 445
417 Clients should arrange their surface for the new state, and then send an 446 Clients should arrange their surface for the new state, and then send an
418 ack_configure request with the serial sent in this configure event at 447 ack_configure request with the serial sent in this configure event at
419 some point before committing the new surface. 448 some point before committing the new surface.
420 449
421 If the client receives multiple configure events before it can respond 450 If the client receives multiple configure events before it can respond
422 to one, it is free to discard all but the last event it received. 451 to one, it is free to discard all but the last event it received.
423 </description> 452 </description>
424 <arg name="origin_x" type="int"/> 453 <arg name="origin_offset_x" type="int"/>
425 <arg name="origin_y" type="int"/> 454 <arg name="origin_offset_y" type="int"/>
426 <arg name="states" type="array"/> 455 <arg name="states" type="array"/>
427 <arg name="serial" type="uint"/> 456 <arg name="serial" type="uint"/>
428 </event> 457 </event>
429 458
430 <request name="ack_configure" since="3"> 459 <request name="ack_configure" since="3">
431 <description summary="ack a configure event"> 460 <description summary="ack a configure event">
432 When a configure event is received, if a client commits the 461 When a configure event is received, if a client commits the
433 surface in response to the configure event, then the client 462 surface in response to the configure event, then the client
434 must make an ack_configure request sometime before the commit 463 must make an ack_configure request sometime before the commit
435 request, passing along the serial of the configure event. 464 request, passing along the serial of the configure event.
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
476 </description> 505 </description>
477 506
478 <request name="destroy" type="destructor"> 507 <request name="destroy" type="destructor">
479 <description summary="Destroy the notification_surface"> 508 <description summary="Destroy the notification_surface">
480 Unmap and destroy the notification surface. 509 Unmap and destroy the notification surface.
481 </description> 510 </description>
482 </request> 511 </request>
483 </interface> 512 </interface>
484 513
485 </protocol> 514 </protocol>
OLDNEW
« no previous file with comments | « third_party/wayland-protocols/protocol/remote-shell-protocol.c ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698