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

Side by Side 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 unified diff | Download patch
OLDNEW
1 /* Generated by wayland-scanner 1.11.0 */ 1 /* Generated by wayland-scanner 1.11.0 */
2 2
3 #ifndef STYLUS_UNSTABLE_V1_SERVER_PROTOCOL_H 3 #ifndef STYLUS_UNSTABLE_V1_SERVER_PROTOCOL_H
4 #define STYLUS_UNSTABLE_V1_SERVER_PROTOCOL_H 4 #define STYLUS_UNSTABLE_V1_SERVER_PROTOCOL_H
5 5
6 #include <stdint.h> 6 #include <stdint.h>
7 #include <stddef.h> 7 #include <stddef.h>
8 #include "wayland-server.h" 8 #include "wayland-server.h"
9 9
10 #ifdef __cplusplus 10 #ifdef __cplusplus
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
102 * See @ref iface_zcr_pointer_stylus_v1. 102 * See @ref iface_zcr_pointer_stylus_v1.
103 */ 103 */
104 /** 104 /**
105 * @defgroup iface_zcr_pointer_stylus_v1 The zcr_pointer_stylus_v1 interface 105 * @defgroup iface_zcr_pointer_stylus_v1 The zcr_pointer_stylus_v1 interface
106 * 106 *
107 * The zcr_pointer_stylus_v1 interface extends the wl_pointer interface with 107 * The zcr_pointer_stylus_v1 interface extends the wl_pointer interface with
108 * events to describe details about a stylus acting as a pointer. 108 * events to describe details about a stylus acting as a pointer.
109 */ 109 */
110 extern const struct wl_interface zcr_pointer_stylus_v1_interface; 110 extern const struct wl_interface zcr_pointer_stylus_v1_interface;
111 111
112 #ifndef ZCR_STYLUS_V1_ERROR_ENUM
113 #define ZCR_STYLUS_V1_ERROR_ENUM
114 enum zcr_stylus_v1_error {
115 /**
116 * the pointer already has a pointer_stylus object associated
117 */
118 ZCR_STYLUS_V1_ERROR_POINTER_STYLUS_EXISTS = 0,
119 };
120 #endif /* ZCR_STYLUS_V1_ERROR_ENUM */
121
112 /** 122 /**
113 * @ingroup iface_zcr_stylus_v1 123 * @ingroup iface_zcr_stylus_v1
114 * @struct zcr_stylus_v1_interface 124 * @struct zcr_stylus_v1_interface
115 */ 125 */
116 struct zcr_stylus_v1_interface { 126 struct zcr_stylus_v1_interface {
117 /** 127 /**
118 * get stylus interface for pointer 128 * get stylus interface for pointer
119 * 129 *
120 * Create pointer_stylus object. See zcr_pointer_stylus_v1 130 * Create pointer_stylus object. See zcr_pointer_stylus_v1
121 » * interface for details. 131 » * interface for details. If the given wl_pointer already has a
132 » * pointer_stylus object associated, the pointer_stylus_exists
133 » * protocol error is raised.
122 */ 134 */
123 void (*get_pointer_stylus)(struct wl_client *client, 135 void (*get_pointer_stylus)(struct wl_client *client,
124 struct wl_resource *resource, 136 struct wl_resource *resource,
125 uint32_t id, 137 uint32_t id,
126 struct wl_resource *pointer); 138 struct wl_resource *pointer);
127 }; 139 };
128 140
129 141
130 #ifndef ZCR_POINTER_STYLUS_V1_TOOL_TYPE_ENUM 142 #ifndef ZCR_POINTER_STYLUS_V1_TOOL_TYPE_ENUM
131 #define ZCR_POINTER_STYLUS_V1_TOOL_TYPE_ENUM 143 #define ZCR_POINTER_STYLUS_V1_TOOL_TYPE_ENUM
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
221 zcr_pointer_stylus_v1_send_tilt(struct wl_resource *resource_, uint32_t time, wl _fixed_t tilt_x, wl_fixed_t tilt_y) 233 zcr_pointer_stylus_v1_send_tilt(struct wl_resource *resource_, uint32_t time, wl _fixed_t tilt_x, wl_fixed_t tilt_y)
222 { 234 {
223 wl_resource_post_event(resource_, ZCR_POINTER_STYLUS_V1_TILT, time, tilt _x, tilt_y); 235 wl_resource_post_event(resource_, ZCR_POINTER_STYLUS_V1_TILT, time, tilt _x, tilt_y);
224 } 236 }
225 237
226 #ifdef __cplusplus 238 #ifdef __cplusplus
227 } 239 }
228 #endif 240 #endif
229 241
230 #endif 242 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698