| OLD | NEW |
| 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 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 57 <enum name="state_type"> | 57 <enum name="state_type"> |
| 58 <description summary="state types for remote surfaces"> | 58 <description summary="state types for remote surfaces"> |
| 59 Defines common show states for shell surfaces. | 59 Defines common show states for shell surfaces. |
| 60 </description> | 60 </description> |
| 61 <entry name="normal" value="1" summary="normal window state"/> | 61 <entry name="normal" value="1" summary="normal window state"/> |
| 62 <entry name="minimized" value="2" summary="minimized window state"/> | 62 <entry name="minimized" value="2" summary="minimized window state"/> |
| 63 <entry name="maximized" value="3" summary="maximized window state"/> | 63 <entry name="maximized" value="3" summary="maximized window state"/> |
| 64 <entry name="fullscreen" value="4" summary="fullscreen window state"/> | 64 <entry name="fullscreen" value="4" summary="fullscreen window state"/> |
| 65 <entry name="pinned" value="5" summary="pinned window state"/> | 65 <entry name="pinned" value="5" summary="pinned window state"/> |
| 66 <entry name="trusted_pinned" value="6" summary="trusted pinned window stat
e"/> | 66 <entry name="trusted_pinned" value="6" summary="trusted pinned window stat
e"/> |
| 67 <entry name="moving" value="7" summary="moving window state"/> |
| 67 </enum> | 68 </enum> |
| 68 | 69 |
| 69 <enum name="error"> | 70 <enum name="error"> |
| 70 <entry name="role" value="0" summary="given wl_surface has another role"/> | 71 <entry name="role" value="0" summary="given wl_surface has another role"/> |
| 71 <entry name="invalid_notification_id" value="1" | 72 <entry name="invalid_notification_id" value="1" |
| 72 summary="invalid notification id"/> | 73 summary="invalid notification id"/> |
| 73 </enum> | 74 </enum> |
| 74 | 75 |
| 75 <enum name="layout_mode"> | 76 <enum name="layout_mode"> |
| 76 <description summary="the layout mode"> | 77 <description summary="the layout mode"> |
| (...skipping 285 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 362 if your application has any... | 363 if your application has any... |
| 363 | 364 |
| 364 This is only a request that the user intends to close your | 365 This is only a request that the user intends to close your |
| 365 window. The client may choose to ignore this request, or show | 366 window. The client may choose to ignore this request, or show |
| 366 a dialog to ask the user to save their data... | 367 a dialog to ask the user to save their data... |
| 367 </description> | 368 </description> |
| 368 </event> | 369 </event> |
| 369 | 370 |
| 370 <event name="state_type_changed"> | 371 <event name="state_type_changed"> |
| 371 <description summary="surface state type changed"> | 372 <description summary="surface state type changed"> |
| 372 » The state_type_changed event is sent by the compositor when the surface | 373 » [Deprecated] The state_type_changed event is sent by the compositor when |
| 373 » state changed. | 374 » the surface state changed. |
| 374 | 375 |
| 375 This is an event to notify that the window state changed in compositor. | 376 This is an event to notify that the window state changed in compositor. |
| 376 The state change may be triggered by a client's request, or some user | 377 The state change may be triggered by a client's request, or some user |
| 377 action directly handled by the compositor. The client may choose to | 378 action directly handled by the compositor. The client may choose to |
| 378 ignore this event. | 379 ignore this event. |
| 379 </description> | 380 </description> |
| 380 <arg name="state_type" type="uint"/> | 381 <arg name="state_type" type="uint"/> |
| 381 </event> | 382 </event> |
| 382 | 383 |
| 383 <!-- Version 2 additions --> | 384 <!-- Version 2 additions --> |
| (...skipping 19 matching lines...) Expand all Loading... |
| 403 | 404 |
| 404 <event name="configure" since="3"> | 405 <event name="configure" since="3"> |
| 405 <description summary="suggest a surface change"> | 406 <description summary="suggest a surface change"> |
| 406 The configure event asks the client to change surface state. | 407 The configure event asks the client to change surface state. |
| 407 | 408 |
| 408 The origin arguments specify the position, in the compositor coordinate | 409 The origin arguments specify the position, in the compositor coordinate |
| 409 space, of the virtual display used by the client to simulate multiple | 410 space, of the virtual display used by the client to simulate multiple |
| 410 displays. The client must offset window positions in set_window_geometry | 411 displays. The client must offset window positions in set_window_geometry |
| 411 requests by this origin in order to convert between coordinate spaces. | 412 requests by this origin in order to convert between coordinate spaces. |
| 412 | 413 |
| 414 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. |
| 416 |
| 413 Clients should arrange their surface for the new state, and then send an | 417 Clients should arrange their surface for the new state, and then send an |
| 414 ack_configure request with the serial sent in this configure event at | 418 ack_configure request with the serial sent in this configure event at |
| 415 some point before committing the new surface. | 419 some point before committing the new surface. |
| 416 | 420 |
| 417 If the client receives multiple configure events before it can respond | 421 If the client receives multiple configure events before it can respond |
| 418 to one, it is free to discard all but the last event it received. | 422 to one, it is free to discard all but the last event it received. |
| 419 </description> | 423 </description> |
| 420 <arg name="origin_x" type="int"/> | 424 <arg name="origin_x" type="int"/> |
| 421 <arg name="origin_y" type="int"/> | 425 <arg name="origin_y" type="int"/> |
| 426 <arg name="states" type="array"/> |
| 422 <arg name="serial" type="uint"/> | 427 <arg name="serial" type="uint"/> |
| 423 </event> | 428 </event> |
| 424 | 429 |
| 425 <request name="ack_configure" since="3"> | 430 <request name="ack_configure" since="3"> |
| 426 <description summary="ack a configure event"> | 431 <description summary="ack a configure event"> |
| 427 When a configure event is received, if a client commits the | 432 When a configure event is received, if a client commits the |
| 428 surface in response to the configure event, then the client | 433 surface in response to the configure event, then the client |
| 429 must make an ack_configure request sometime before the commit | 434 must make an ack_configure request sometime before the commit |
| 430 request, passing along the serial of the configure event. | 435 request, passing along the serial of the configure event. |
| 431 | 436 |
| 432 For instance, the compositor might use this information during display | 437 For instance, the compositor might use this information during display |
| 433 configuration to change its coordinate space for set_window_geometry | 438 configuration to change its coordinate space for set_window_geometry |
| 434 requests only when the client has switched to the new coordinate space. | 439 requests only when the client has switched to the new coordinate space. |
| 435 | 440 |
| 436 If the client receives multiple configure events before it | 441 If the client receives multiple configure events before it |
| 437 can respond to one, it only has to ack the last configure event. | 442 can respond to one, it only has to ack the last configure event. |
| 438 | 443 |
| 439 A client is not required to commit immediately after sending | 444 A client is not required to commit immediately after sending |
| 440 an ack_configure request - it may even ack_configure several times | 445 an ack_configure request - it may even ack_configure several times |
| 441 before its next surface commit. | 446 before its next surface commit. |
| 442 | 447 |
| 443 A client may send multiple ack_configure requests before committing, but | 448 A client may send multiple ack_configure requests before committing, but |
| 444 only the last request sent before a commit indicates which configure | 449 only the last request sent before a commit indicates which configure |
| 445 event the client really is responding to. | 450 event the client really is responding to. |
| 446 </description> | 451 </description> |
| 447 <arg name="serial" type="uint" summary="the serial from the configure even
t"/> | 452 <arg name="serial" type="uint" summary="the serial from the configure even
t"/> |
| 448 </request> | 453 </request> |
| 449 | 454 |
| 450 <request name="set_moving" since="3"> | 455 <request name="move" since="3"> |
| 451 <description summary="interactive move started"> | 456 <description summary="start an interactive move"> |
| 452 » Notifies the compositor when an interactive, user-driven move of the | 457 » Start an interactive, user-driven move of the surface. |
| 453 » surface starts. The compositor may assume that subsequent | 458 |
| 454 » set_window_geometry requests are position updates until it receives a | 459 » The compositor responds to this request with a configure event that |
| 455 » unset_moving request. | 460 » transitions to the "moving" state. The client must only initiate motion |
| 461 » after acknowledging the state change. The compositor can assume that |
| 462 » subsequent set_window_geometry requests are position updates until the |
| 463 » next state transition is acknowledged. |
| 464 |
| 465 » The compositor may ignore move requests depending on the state of the |
| 466 » surface, e.g. fullscreen or maximized. |
| 456 </description> | 467 </description> |
| 457 </request> | 468 </request> |
| 458 | 469 |
| 459 <request name="unset_moving" since="3"> | |
| 460 <description summary="interactive move stopped"> | |
| 461 Notifies the compositor when an interactive, user-driven move of the | |
| 462 surface stops. The compositor may choose to stop the move regardless | |
| 463 of this request. | |
| 464 </description> | |
| 465 </request> | |
| 466 | |
| 467 </interface> | 470 </interface> |
| 468 | 471 |
| 469 <interface name="zcr_notification_surface_v1" version="1"> | 472 <interface name="zcr_notification_surface_v1" version="1"> |
| 470 <description summary="A notification window"> | 473 <description summary="A notification window"> |
| 471 An interface that may be implemented by a wl_surface to host | 474 An interface that may be implemented by a wl_surface to host |
| 472 notification contents. | 475 notification contents. |
| 473 </description> | 476 </description> |
| 474 | 477 |
| 475 <request name="destroy" type="destructor"> | 478 <request name="destroy" type="destructor"> |
| 476 <description summary="Destroy the notification_surface"> | 479 <description summary="Destroy the notification_surface"> |
| 477 Unmap and destroy the notification surface. | 480 Unmap and destroy the notification surface. |
| 478 </description> | 481 </description> |
| 479 </request> | 482 </request> |
| 480 </interface> | 483 </interface> |
| 481 | 484 |
| 482 </protocol> | 485 </protocol> |
| OLD | NEW |