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

Side by Side Diff: third_party/wayland-protocols/include/protocol/stylus-unstable-v1-client-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 unified diff | Download patch
« no previous file with comments | « no previous file | third_party/wayland-protocols/include/protocol/stylus-unstable-v1-server-protocol.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* Generated by wayland-scanner 1.11.0 */ 1 /* Generated by wayland-scanner 1.11.0 */
2 2
3 #ifndef STYLUS_UNSTABLE_V1_CLIENT_PROTOCOL_H 3 #ifndef STYLUS_UNSTABLE_V1_CLIENT_PROTOCOL_H
4 #define STYLUS_UNSTABLE_V1_CLIENT_PROTOCOL_H 4 #define STYLUS_UNSTABLE_V1_CLIENT_PROTOCOL_H
5 5
6 #include <stdint.h> 6 #include <stdint.h>
7 #include <stddef.h> 7 #include <stddef.h>
8 #include "wayland-client.h" 8 #include "wayland-client.h"
9 9
10 #ifdef __cplusplus 10 #ifdef __cplusplus
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
99 * See @ref iface_zcr_pointer_stylus_v1. 99 * See @ref iface_zcr_pointer_stylus_v1.
100 */ 100 */
101 /** 101 /**
102 * @defgroup iface_zcr_pointer_stylus_v1 The zcr_pointer_stylus_v1 interface 102 * @defgroup iface_zcr_pointer_stylus_v1 The zcr_pointer_stylus_v1 interface
103 * 103 *
104 * The zcr_pointer_stylus_v1 interface extends the wl_pointer interface with 104 * The zcr_pointer_stylus_v1 interface extends the wl_pointer interface with
105 * events to describe details about a stylus acting as a pointer. 105 * events to describe details about a stylus acting as a pointer.
106 */ 106 */
107 extern const struct wl_interface zcr_pointer_stylus_v1_interface; 107 extern const struct wl_interface zcr_pointer_stylus_v1_interface;
108 108
109 #ifndef ZCR_STYLUS_V1_ERROR_ENUM
110 #define ZCR_STYLUS_V1_ERROR_ENUM
111 enum zcr_stylus_v1_error {
112 /**
113 * the pointer already has a pointer_stylus object associated
114 */
115 ZCR_STYLUS_V1_ERROR_POINTER_STYLUS_EXISTS = 0,
116 };
117 #endif /* ZCR_STYLUS_V1_ERROR_ENUM */
118
109 #define ZCR_STYLUS_V1_GET_POINTER_STYLUS 0 119 #define ZCR_STYLUS_V1_GET_POINTER_STYLUS 0
110 120
111 /** 121 /**
112 * @ingroup iface_zcr_stylus_v1 122 * @ingroup iface_zcr_stylus_v1
113 */ 123 */
114 #define ZCR_STYLUS_V1_GET_POINTER_STYLUS_SINCE_VERSION 1 124 #define ZCR_STYLUS_V1_GET_POINTER_STYLUS_SINCE_VERSION 1
115 125
116 /** @ingroup iface_zcr_stylus_v1 */ 126 /** @ingroup iface_zcr_stylus_v1 */
117 static inline void 127 static inline void
118 zcr_stylus_v1_set_user_data(struct zcr_stylus_v1 *zcr_stylus_v1, void *user_data ) 128 zcr_stylus_v1_set_user_data(struct zcr_stylus_v1 *zcr_stylus_v1, void *user_data )
(...skipping 18 matching lines...) Expand all
137 static inline void 147 static inline void
138 zcr_stylus_v1_destroy(struct zcr_stylus_v1 *zcr_stylus_v1) 148 zcr_stylus_v1_destroy(struct zcr_stylus_v1 *zcr_stylus_v1)
139 { 149 {
140 wl_proxy_destroy((struct wl_proxy *) zcr_stylus_v1); 150 wl_proxy_destroy((struct wl_proxy *) zcr_stylus_v1);
141 } 151 }
142 152
143 /** 153 /**
144 * @ingroup iface_zcr_stylus_v1 154 * @ingroup iface_zcr_stylus_v1
145 * 155 *
146 * Create pointer_stylus object. See zcr_pointer_stylus_v1 interface for 156 * Create pointer_stylus object. See zcr_pointer_stylus_v1 interface for
147 * details. 157 * details. If the given wl_pointer already has a pointer_stylus object
158 * associated, the pointer_stylus_exists protocol error is raised.
148 */ 159 */
149 static inline struct zcr_pointer_stylus_v1 * 160 static inline struct zcr_pointer_stylus_v1 *
150 zcr_stylus_v1_get_pointer_stylus(struct zcr_stylus_v1 *zcr_stylus_v1, struct wl_ pointer *pointer) 161 zcr_stylus_v1_get_pointer_stylus(struct zcr_stylus_v1 *zcr_stylus_v1, struct wl_ pointer *pointer)
151 { 162 {
152 struct wl_proxy *id; 163 struct wl_proxy *id;
153 164
154 id = wl_proxy_marshal_constructor((struct wl_proxy *) zcr_stylus_v1, 165 id = wl_proxy_marshal_constructor((struct wl_proxy *) zcr_stylus_v1,
155 ZCR_STYLUS_V1_GET_POINTER_STYLUS, &zcr_pointer_stylus_v 1_interface, NULL, pointer); 166 ZCR_STYLUS_V1_GET_POINTER_STYLUS, &zcr_pointer_stylus_v 1_interface, NULL, pointer);
156 167
157 return (struct zcr_pointer_stylus_v1 *) id; 168 return (struct zcr_pointer_stylus_v1 *) id;
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after
292 ZCR_POINTER_STYLUS_V1_DESTROY); 303 ZCR_POINTER_STYLUS_V1_DESTROY);
293 304
294 wl_proxy_destroy((struct wl_proxy *) zcr_pointer_stylus_v1); 305 wl_proxy_destroy((struct wl_proxy *) zcr_pointer_stylus_v1);
295 } 306 }
296 307
297 #ifdef __cplusplus 308 #ifdef __cplusplus
298 } 309 }
299 #endif 310 #endif
300 311
301 #endif 312 #endif
OLDNEW
« no previous file with comments | « no previous file | third_party/wayland-protocols/include/protocol/stylus-unstable-v1-server-protocol.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698