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

Unified Diff: third_party/wayland-protocols/include/protocol/stylus-unstable-v1-server-protocol.h

Issue 2575693002: wayland-protocols: Add pointer_stylus_exists error to zcr_stylus_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/stylus-unstable-v1-server-protocol.h
diff --git a/third_party/wayland-protocols/include/protocol/stylus-unstable-v1-server-protocol.h b/third_party/wayland-protocols/include/protocol/stylus-unstable-v1-server-protocol.h
index 86732832e80831c2e99dab28c0109623497eb0d6..bd14461b4143da469c76f4483a544f7435f42bfa 100644
--- a/third_party/wayland-protocols/include/protocol/stylus-unstable-v1-server-protocol.h
+++ b/third_party/wayland-protocols/include/protocol/stylus-unstable-v1-server-protocol.h
@@ -109,6 +109,16 @@ extern const struct wl_interface zcr_stylus_v1_interface;
*/
extern const struct wl_interface zcr_pointer_stylus_v1_interface;
+#ifndef ZCR_STYLUS_V1_ERROR_ENUM
+#define ZCR_STYLUS_V1_ERROR_ENUM
+enum zcr_stylus_v1_error {
+ /**
+ * the pointer already has a pointer_stylus object associated
+ */
+ ZCR_STYLUS_V1_ERROR_POINTER_STYLUS_EXISTS = 0,
+};
+#endif /* ZCR_STYLUS_V1_ERROR_ENUM */
+
/**
* @ingroup iface_zcr_stylus_v1
* @struct zcr_stylus_v1_interface
@@ -118,7 +128,9 @@ struct zcr_stylus_v1_interface {
* get stylus interface for pointer
*
* Create pointer_stylus object. See zcr_pointer_stylus_v1
- * interface for details.
+ * interface for details. If the given wl_pointer already has a
+ * pointer_stylus object associated, the pointer_stylus_exists
+ * protocol error is raised.
*/
void (*get_pointer_stylus)(struct wl_client *client,
struct wl_resource *resource,

Powered by Google App Engine
This is Rietveld 408576698