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

Unified Diff: third_party/wayland-protocols/protocol/stylus-protocol.c

Issue 2350633002: third_party: Switch to zcr prefix for downstream wayland interfaces. (Closed)
Patch Set: Created 4 years, 3 months 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/protocol/stylus-protocol.c
diff --git a/third_party/wayland-protocols/protocol/stylus-protocol.c b/third_party/wayland-protocols/protocol/stylus-protocol.c
index 0c70a4d9ce0ce868029e29c389c1992d036a7af8..a67efa8e8c000bb775d7db9bcdf0e3b1f82a6f32 100644
--- a/third_party/wayland-protocols/protocol/stylus-protocol.c
+++ b/third_party/wayland-protocols/protocol/stylus-protocol.c
@@ -28,20 +28,49 @@
#include "wayland-util.h"
extern const struct wl_interface wl_pointer_interface;
+extern const struct wl_interface zcr_pointer_stylus_v1_interface;
extern const struct wl_interface zwp_pointer_stylus_v1_interface;
static const struct wl_interface *types[] = {
NULL,
NULL,
NULL,
+ &zcr_pointer_stylus_v1_interface,
+ &wl_pointer_interface,
&zwp_pointer_stylus_v1_interface,
&wl_pointer_interface,
};
-static const struct wl_message zwp_stylus_v1_requests[] = {
+static const struct wl_message zcr_stylus_v1_requests[] = {
{ "get_pointer_stylus", "no", types + 3 },
};
+WL_EXPORT const struct wl_interface zcr_stylus_v1_interface = {
+ "zcr_stylus_v1", 1,
+ 1, zcr_stylus_v1_requests,
+ 0, NULL,
+};
+
+static const struct wl_message zcr_pointer_stylus_v1_requests[] = {
+ { "destroy", "", types + 0 },
+};
+
+static const struct wl_message zcr_pointer_stylus_v1_events[] = {
+ { "tool_change", "u", types + 0 },
+ { "force", "uf", types + 0 },
+ { "tilt", "uff", types + 0 },
+};
+
+WL_EXPORT const struct wl_interface zcr_pointer_stylus_v1_interface = {
+ "zcr_pointer_stylus_v1", 1,
+ 1, zcr_pointer_stylus_v1_requests,
+ 3, zcr_pointer_stylus_v1_events,
+};
+
+static const struct wl_message zwp_stylus_v1_requests[] = {
+ { "get_pointer_stylus", "no", types + 5 },
+};
+
WL_EXPORT const struct wl_interface zwp_stylus_v1_interface = {
"zwp_stylus_v1", 1,
1, zwp_stylus_v1_requests,

Powered by Google App Engine
This is Rietveld 408576698