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

Unified Diff: third_party/wayland-protocols/include/protocol/keyboard-configuration-unstable-v1-client-protocol.h

Issue 2564353002: wayland-protocols: Add device_configuration_exists error to zcr_keyboard_configuration_v1 interface. (Closed)
Patch Set: Created 4 years 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 side-by-side diff with in-line comments
Download patch
Index: third_party/wayland-protocols/include/protocol/keyboard-configuration-unstable-v1-client-protocol.h
diff --git a/third_party/wayland-protocols/include/protocol/keyboard-configuration-unstable-v1-client-protocol.h b/third_party/wayland-protocols/include/protocol/keyboard-configuration-unstable-v1-client-protocol.h
index e931bfbf5708f828436117f2f0fd5bc91cc51066..5ed019bc91506f614a142fecffb34c74bf6ca01c 100644
--- a/third_party/wayland-protocols/include/protocol/keyboard-configuration-unstable-v1-client-protocol.h
+++ b/third_party/wayland-protocols/include/protocol/keyboard-configuration-unstable-v1-client-protocol.h
@@ -96,6 +96,16 @@ extern const struct wl_interface zcr_keyboard_configuration_v1_interface;
*/
extern const struct wl_interface zcr_keyboard_device_configuration_v1_interface;
+#ifndef ZCR_KEYBOARD_CONFIGURATION_V1_ERROR_ENUM
+#define ZCR_KEYBOARD_CONFIGURATION_V1_ERROR_ENUM
+enum zcr_keyboard_configuration_v1_error {
+ /**
+ * the keyboard already has a device configuration object associated
+ */
+ ZCR_KEYBOARD_CONFIGURATION_V1_ERROR_DEVICE_CONFIGURATION_EXISTS = 0,
+};
+#endif /* ZCR_KEYBOARD_CONFIGURATION_V1_ERROR_ENUM */
+
#define ZCR_KEYBOARD_CONFIGURATION_V1_GET_KEYBOARD_DEVICE_CONFIGURATION 0
/**
@@ -135,6 +145,8 @@ zcr_keyboard_configuration_v1_destroy(struct zcr_keyboard_configuration_v1 *zcr_
*
* Create keyboard_device_configuration object.
* See zcr_keyboard_device_configuration interface for details.
+ * If the given wl_keyboard object already has a security object associated,
+ * the keyboard_device_configuration_exists protocol error is raised.
*/
static inline struct zcr_keyboard_device_configuration_v1 *
zcr_keyboard_configuration_v1_get_keyboard_device_configuration(struct zcr_keyboard_configuration_v1 *zcr_keyboard_configuration_v1, struct wl_keyboard *keyboard)

Powered by Google App Engine
This is Rietveld 408576698