Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 <?xml version="1.0" encoding="UTF-8"?> | 1 <?xml version="1.0" encoding="UTF-8"?> |
| 2 <protocol name="keyboard_configuration_unstable_v1"> | 2 <protocol name="keyboard_configuration_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_keyboard_configuration_v1" version="1"> | 27 <interface name="zcr_keyboard_configuration_v1" version="2"> |
| 28 <description summary="extends wl_keyboard with events for device configurati on change"> | 28 <description summary="extends wl_keyboard with events for device configurati on change"> |
| 29 Allows a wl_keyboard to notify device configuration change events of | 29 Allows a wl_keyboard to notify device configuration change events of |
| 30 the keyboard to the client. | 30 the keyboard to the client. |
| 31 | 31 |
| 32 Warning! The protocol described in this file is experimental and | 32 Warning! The protocol described in this file is experimental and |
| 33 backward incompatible changes may be made. Backward compatible changes | 33 backward incompatible changes may be made. Backward compatible changes |
| 34 may be added together with the corresponding uinterface version bump. | 34 may be added together with the corresponding uinterface version bump. |
| 35 Backward incompatible changes are done by bumping the version number in | 35 Backward incompatible changes are done by bumping the version number in |
| 36 the protocol and uinterface names and resetting the interface version. | 36 the protocol and uinterface names and resetting the interface version. |
| 37 Once the protocol is to be declared stable, the 'z' prefix and the | 37 Once the protocol is to be declared stable, the 'z' prefix and the |
| 38 version number in the protocol and interface names are removed and the | 38 version number in the protocol and interface names are removed and the |
| 39 interface version number is reset. | 39 interface version number is reset. |
| 40 </description> | 40 </description> |
| 41 | 41 |
| 42 <enum name="error"> | |
| 43 <entry name="device_configuration_exists" value="0" | |
| 44 summary="the keyboard already has a device configuration object ass ociated"/> | |
| 45 </enum> | |
| 46 | |
| 42 <request name="get_keyboard_device_configuration"> | 47 <request name="get_keyboard_device_configuration"> |
| 43 <description summary="get keyboard_device_configuration interface for a ke yboard"> | 48 <description summary="get keyboard_device_configuration interface for a ke yboard"> |
| 44 Create keyboard_device_configuration object. | 49 Create keyboard_device_configuration object. |
| 45 See zcr_keyboard_device_configuration interface for details. | 50 See zcr_keyboard_device_configuration interface for details. |
| 51 If the given wl_keyboard object already has a security object associated , | |
|
reveman
2016/12/12 11:49:31
s/security/device configuration/
yhanada
2016/12/12 15:42:34
Done.
| |
| 52 the keyboard_device_configuration_exists protocol error is raised. | |
| 46 </description> | 53 </description> |
| 47 <arg name="id" type="new_id" interface="zcr_keyboard_device_configuration_ v1"/> | 54 <arg name="id" type="new_id" interface="zcr_keyboard_device_configuration_ v1"/> |
| 48 <arg name="keyboard" type="object" interface="wl_keyboard"/> | 55 <arg name="keyboard" type="object" interface="wl_keyboard"/> |
| 49 </request> | 56 </request> |
| 50 </interface> | 57 </interface> |
| 51 | 58 |
| 52 <interface name="zcr_keyboard_device_configuration_v1" version="1"> | 59 <interface name="zcr_keyboard_device_configuration_v1" version="1"> |
| 53 <description summary="extension of wl_keyboard protocol"> | 60 <description summary="extension of wl_keyboard protocol"> |
| 54 The zcr_keyboard_device_configuration_v1 interface extends the wl_keyboard | 61 The zcr_keyboard_device_configuration_v1 interface extends the wl_keyboard |
| 55 interface with events to describe device configuration of a keyboard. | 62 interface with events to describe device configuration of a keyboard. |
| (...skipping 14 matching lines...) Expand all Loading... | |
| 70 Notification that the user is switching to new keyboard type. | 77 Notification that the user is switching to new keyboard type. |
| 71 | 78 |
| 72 If this event is not received, the cleint has to assume a physical | 79 If this event is not received, the cleint has to assume a physical |
| 73 keyboard is in use. | 80 keyboard is in use. |
| 74 </description> | 81 </description> |
| 75 <arg name="type" type="uint" enum="keyboard_type" summary="new device type "/> | 82 <arg name="type" type="uint" enum="keyboard_type" summary="new device type "/> |
| 76 </event> | 83 </event> |
| 77 </interface> | 84 </interface> |
| 78 | 85 |
| 79 </protocol> | 86 </protocol> |
| OLD | NEW |