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

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

Issue 2350593002: third_party: Update wayland-protocols to 1.7. (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/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 3f1c753ea3710841d173dbc05512348a4a2440d9..ef58c3d6fe70399871c5e67b9544ea240b867458 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
@@ -1,17 +1,40 @@
-/*
+/* Generated by wayland-scanner 1.11.0 */
+
+#ifndef STYLUS_UNSTABLE_V1_SERVER_PROTOCOL_H
+#define STYLUS_UNSTABLE_V1_SERVER_PROTOCOL_H
+
+#include <stdint.h>
+#include <stddef.h>
+#include "wayland-server.h"
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+struct wl_client;
+struct wl_resource;
+
+/**
+ * @page page_stylus_unstable_v1 The stylus_unstable_v1 protocol
+ * @section page_ifaces_stylus_unstable_v1 Interfaces
+ * - @subpage page_iface_zwp_stylus_v1 - extends wl_pointer with events for on-screen stylus
+ * - @subpage page_iface_zwp_pointer_stylus_v1 - stylus extension for pointer
+ * @section page_copyright_stylus_unstable_v1 Copyright
+ * <pre>
+ *
* Copyright 2016 The Chromium Authors.
- *
+ *
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "Software"),
* to deal in the Software without restriction, including without limitation
* the rights to use, copy, modify, merge, publish, distribute, sublicense,
* and/or sell copies of the Software, and to permit persons to whom the
* Software is furnished to do so, subject to the following conditions:
- *
+ *
* The above copyright notice and this permission notice (including the next
* paragraph) shall be included in all copies or substantial portions of the
* Software.
- *
+ *
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
@@ -19,39 +42,23 @@
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
* DEALINGS IN THE SOFTWARE.
+ * </pre>
*/
-
-#ifndef STYLUS_UNSTABLE_V1_SERVER_PROTOCOL_H
-#define STYLUS_UNSTABLE_V1_SERVER_PROTOCOL_H
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-#include <stdint.h>
-#include <stddef.h>
-#include "wayland-util.h"
-
-struct wl_client;
-struct wl_resource;
-
-struct zwp_stylus_v1;
+struct wl_pointer;
struct zwp_pointer_stylus_v1;
-
-extern const struct wl_interface zwp_stylus_v1_interface;
-extern const struct wl_interface zwp_pointer_stylus_v1_interface;
+struct zwp_stylus_v1;
/**
- * zwp_stylus_v1 - extends wl_pointer with events for on-screen stylus
- * @get_pointer_stylus: get stylus interface for pointer
+ * @page page_iface_zwp_stylus_v1 zwp_stylus_v1
+ * @section page_iface_zwp_stylus_v1_desc Description
*
* Allows a wl_pointer to represent an on-screen stylus. The client can
- * interpret the on-screen stylus like any other mouse device, and use this
- * protocol to obtain detail information about the type of stylus, as well
- * as the force and tilt of the tool.
+ * interpret the on-screen stylus like any other mouse device, and use
+ * this protocol to obtain detail information about the type of stylus,
+ * as well as the force and tilt of the tool.
*
- * These events are to be fired by the server within the same frame as
- * other wl_pointer events.
+ * These events are to be fired by the server within the same frame as other
+ * wl_pointer events.
*
* Warning! The protocol described in this file is experimental and
* backward incompatible changes may be made. Backward compatible changes
@@ -61,12 +68,54 @@ extern const struct wl_interface zwp_pointer_stylus_v1_interface;
* Once the protocol is to be declared stable, the 'z' prefix and the
* version number in the protocol and interface names are removed and the
* interface version number is reset.
+ * @section page_iface_zwp_stylus_v1_api API
+ * See @ref iface_zwp_stylus_v1.
+ */
+/**
+ * @defgroup iface_zwp_stylus_v1 The zwp_stylus_v1 interface
+ *
+ * Allows a wl_pointer to represent an on-screen stylus. The client can
+ * interpret the on-screen stylus like any other mouse device, and use
+ * this protocol to obtain detail information about the type of stylus,
+ * as well as the force and tilt of the tool.
+ *
+ * These events are to be fired by the server within the same frame as other
+ * wl_pointer events.
+ *
+ * Warning! The protocol described in this file is experimental and
+ * backward incompatible changes may be made. Backward compatible changes
+ * may be added together with the corresponding uinterface version bump.
+ * Backward incompatible changes are done by bumping the version number in
+ * the protocol and uinterface names and resetting the interface version.
+ * Once the protocol is to be declared stable, the 'z' prefix and the
+ * version number in the protocol and interface names are removed and the
+ * interface version number is reset.
+ */
+extern const struct wl_interface zwp_stylus_v1_interface;
+/**
+ * @page page_iface_zwp_pointer_stylus_v1 zwp_pointer_stylus_v1
+ * @section page_iface_zwp_pointer_stylus_v1_desc Description
+ *
+ * The zwp_pointer_stylus_v1 interface extends the wl_pointer interface with
+ * events to describe details about a stylus acting as a pointer.
+ * @section page_iface_zwp_pointer_stylus_v1_api API
+ * See @ref iface_zwp_pointer_stylus_v1.
+ */
+/**
+ * @defgroup iface_zwp_pointer_stylus_v1 The zwp_pointer_stylus_v1 interface
+ *
+ * The zwp_pointer_stylus_v1 interface extends the wl_pointer interface with
+ * events to describe details about a stylus acting as a pointer.
+ */
+extern const struct wl_interface zwp_pointer_stylus_v1_interface;
+
+/**
+ * @ingroup iface_zwp_stylus_v1
+ * @struct zwp_stylus_v1_interface
*/
struct zwp_stylus_v1_interface {
/**
- * get_pointer_stylus - get stylus interface for pointer
- * @id: (none)
- * @pointer: (none)
+ * get stylus interface for pointer
*
* Create pointer_stylus object. See zwp_pointer_stylus_v1
* interface for details.
@@ -77,36 +126,40 @@ struct zwp_stylus_v1_interface {
struct wl_resource *pointer);
};
+
#ifndef ZWP_POINTER_STYLUS_V1_TOOL_TYPE_ENUM
#define ZWP_POINTER_STYLUS_V1_TOOL_TYPE_ENUM
/**
- * zwp_pointer_stylus_v1_tool_type - tool type of device.
- * @ZWP_POINTER_STYLUS_V1_TOOL_TYPE_MOUSE: Mouse or touchpad, not a
- * stylus.
- * @ZWP_POINTER_STYLUS_V1_TOOL_TYPE_PEN: Pen
- * @ZWP_POINTER_STYLUS_V1_TOOL_TYPE_TOUCH: Touch
- * @ZWP_POINTER_STYLUS_V1_TOOL_TYPE_ERASER: Eraser
- *
- *
+ * @ingroup iface_zwp_pointer_stylus_v1
+ * tool type of device.
*/
enum zwp_pointer_stylus_v1_tool_type {
+ /**
+ * Mouse or touchpad, not a stylus.
+ */
ZWP_POINTER_STYLUS_V1_TOOL_TYPE_MOUSE = 0,
+ /**
+ * Pen
+ */
ZWP_POINTER_STYLUS_V1_TOOL_TYPE_PEN = 1,
+ /**
+ * Touch
+ */
ZWP_POINTER_STYLUS_V1_TOOL_TYPE_TOUCH = 2,
+ /**
+ * Eraser
+ */
ZWP_POINTER_STYLUS_V1_TOOL_TYPE_ERASER = 3,
};
#endif /* ZWP_POINTER_STYLUS_V1_TOOL_TYPE_ENUM */
/**
- * zwp_pointer_stylus_v1 - stylus extension for pointer
- * @destroy: destroy stylus object
- *
- * The zwp_pointer_stylus_v1 interface extends the wl_pointer interface
- * with events to describe details about a stylus acting as a pointer.
+ * @ingroup iface_zwp_pointer_stylus_v1
+ * @struct zwp_pointer_stylus_v1_interface
*/
struct zwp_pointer_stylus_v1_interface {
/**
- * destroy - destroy stylus object
+ * destroy stylus object
*
*
*/
@@ -118,18 +171,52 @@ struct zwp_pointer_stylus_v1_interface {
#define ZWP_POINTER_STYLUS_V1_FORCE 1
#define ZWP_POINTER_STYLUS_V1_TILT 2
+/**
+ * @ingroup iface_zwp_pointer_stylus_v1
+ */
+#define ZWP_POINTER_STYLUS_V1_TOOL_CHANGE_SINCE_VERSION 1
+/**
+ * @ingroup iface_zwp_pointer_stylus_v1
+ */
+#define ZWP_POINTER_STYLUS_V1_FORCE_SINCE_VERSION 1
+/**
+ * @ingroup iface_zwp_pointer_stylus_v1
+ */
+#define ZWP_POINTER_STYLUS_V1_TILT_SINCE_VERSION 1
+
+/**
+ * @ingroup iface_zwp_pointer_stylus_v1
+ * Sends an tool_change event to the client owning the resource.
+ * @param resource_ The client's resource
+ * @param type new device type
+ */
static inline void
zwp_pointer_stylus_v1_send_tool_change(struct wl_resource *resource_, uint32_t type)
{
wl_resource_post_event(resource_, ZWP_POINTER_STYLUS_V1_TOOL_CHANGE, type);
}
+/**
+ * @ingroup iface_zwp_pointer_stylus_v1
+ * Sends an force event to the client owning the resource.
+ * @param resource_ The client's resource
+ * @param time timestamp with millisecond granularity
+ * @param force new value of force
+ */
static inline void
zwp_pointer_stylus_v1_send_force(struct wl_resource *resource_, uint32_t time, wl_fixed_t force)
{
wl_resource_post_event(resource_, ZWP_POINTER_STYLUS_V1_FORCE, time, force);
}
+/**
+ * @ingroup iface_zwp_pointer_stylus_v1
+ * Sends an tilt event to the client owning the resource.
+ * @param resource_ The client's resource
+ * @param time timestamp with millisecond granularity
+ * @param tilt_x tilt in x direction
+ * @param tilt_y tilt in y direction
+ */
static inline void
zwp_pointer_stylus_v1_send_tilt(struct wl_resource *resource_, uint32_t time, wl_fixed_t tilt_x, wl_fixed_t tilt_y)
{

Powered by Google App Engine
This is Rietveld 408576698