| OLD | NEW |
| 1 <?xml version="1.0" encoding="UTF-8"?> | 1 <?xml version="1.0" encoding="UTF-8"?> |
| 2 <protocol name="stylus_unstable_v1"> | 2 <protocol name="stylus_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, |
| 11 and/or sell copies of the Software, and to permit persons to whom the | 11 and/or sell copies of the Software, and to permit persons to whom the |
| 12 Software is furnished to do so, subject to the following conditions: | 12 Software is furnished to do so, subject to the following conditions: |
| 13 | 13 |
| 14 The above copyright notice and this permission notice (including the next | 14 The above copyright notice and this permission notice (including the next |
| 15 paragraph) shall be included in all copies or substantial portions of the | 15 paragraph) shall be included in all copies or substantial portions of the |
| 16 Software. | 16 Software. |
| 17 | 17 |
| 18 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | 18 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR |
| 19 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | 19 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, |
| 20 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL | 20 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL |
| 21 THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | 21 THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER |
| 22 LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING | 22 LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING |
| 23 FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER | 23 FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER |
| 24 DEALINGS IN THE SOFTWARE. | 24 DEALINGS IN THE SOFTWARE. |
| 25 </copyright> | 25 </copyright> |
| 26 | 26 |
| 27 <interface name="zcr_stylus_v1" version="1"> | 27 <interface name="zcr_stylus_v1" version="2"> |
| 28 <description summary="extends wl_pointer with events for on-screen stylus"> | 28 <description summary="extends wl_pointer with events for on-screen stylus"> |
| 29 Allows a wl_pointer to represent an on-screen stylus. The client can | 29 Allows a wl_pointer to represent an on-screen stylus. The client can |
| 30 interpret the on-screen stylus like any other mouse device, and use | 30 interpret the on-screen stylus like any other mouse device, and use |
| 31 this protocol to obtain detail information about the type of stylus, | 31 this protocol to obtain detail information about the type of stylus, |
| 32 as well as the force and tilt of the tool. | 32 as well as the force and tilt of the tool. |
| 33 | 33 |
| 34 These events are to be fired by the server within the same frame as other | 34 These events are to be fired by the server within the same frame as other |
| 35 wl_pointer events. | 35 wl_pointer events. |
| 36 | 36 |
| 37 Warning! The protocol described in this file is experimental and | 37 Warning! The protocol described in this file is experimental and |
| 38 backward incompatible changes may be made. Backward compatible changes | 38 backward incompatible changes may be made. Backward compatible changes |
| 39 may be added together with the corresponding uinterface version bump. | 39 may be added together with the corresponding uinterface version bump. |
| 40 Backward incompatible changes are done by bumping the version number in | 40 Backward incompatible changes are done by bumping the version number in |
| 41 the protocol and uinterface names and resetting the interface version. | 41 the protocol and uinterface names and resetting the interface version. |
| 42 Once the protocol is to be declared stable, the 'z' prefix and the | 42 Once the protocol is to be declared stable, the 'z' prefix and the |
| 43 version number in the protocol and interface names are removed and the | 43 version number in the protocol and interface names are removed and the |
| 44 interface version number is reset. | 44 interface version number is reset. |
| 45 </description> | 45 </description> |
| 46 | 46 |
| 47 <enum name="error"> |
| 48 <entry name="pointer_stylus_exists" value="0" |
| 49 summary="the pointer already has a pointer_stylus object associated
"/> |
| 50 </enum> |
| 51 |
| 47 <request name="get_pointer_stylus"> | 52 <request name="get_pointer_stylus"> |
| 48 <description summary="get stylus interface for pointer"> | 53 <description summary="get stylus interface for pointer"> |
| 49 Create pointer_stylus object. See zcr_pointer_stylus_v1 interface for | 54 Create pointer_stylus object. See zcr_pointer_stylus_v1 interface for |
| 50 details. | 55 details. If the given wl_pointer already has a pointer_stylus object |
| 56 associated, the pointer_stylus_exists protocol error is raised. |
| 51 </description> | 57 </description> |
| 52 <arg name="id" type="new_id" interface="zcr_pointer_stylus_v1"/> | 58 <arg name="id" type="new_id" interface="zcr_pointer_stylus_v1"/> |
| 53 <arg name="pointer" type="object" interface="wl_pointer"/> | 59 <arg name="pointer" type="object" interface="wl_pointer"/> |
| 54 </request> | 60 </request> |
| 55 </interface> | 61 </interface> |
| 56 | 62 |
| 57 <interface name="zcr_pointer_stylus_v1" version="1"> | 63 <interface name="zcr_pointer_stylus_v1" version="1"> |
| 58 <description summary="stylus extension for pointer"> | 64 <description summary="stylus extension for pointer"> |
| 59 The zcr_pointer_stylus_v1 interface extends the wl_pointer interface with | 65 The zcr_pointer_stylus_v1 interface extends the wl_pointer interface with |
| 60 events to describe details about a stylus acting as a pointer. | 66 events to describe details about a stylus acting as a pointer. |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 109 [-90,90]. A positive x is to the right and a positive y is towards the | 115 [-90,90]. A positive x is to the right and a positive y is towards the |
| 110 user. | 116 user. |
| 111 </description> | 117 </description> |
| 112 <arg name="time" type="uint" summary="timestamp with millisecond granulari
ty"/> | 118 <arg name="time" type="uint" summary="timestamp with millisecond granulari
ty"/> |
| 113 <arg name="tilt_x" type="fixed" summary="tilt in x direction"/> | 119 <arg name="tilt_x" type="fixed" summary="tilt in x direction"/> |
| 114 <arg name="tilt_y" type="fixed" summary="tilt in y direction"/> | 120 <arg name="tilt_y" type="fixed" summary="tilt in y direction"/> |
| 115 </event> | 121 </event> |
| 116 </interface> | 122 </interface> |
| 117 | 123 |
| 118 </protocol> | 124 </protocol> |
| OLD | NEW |