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

Unified Diff: third_party/wayland-protocols/include/protocol/remote-shell-unstable-v1-client-protocol.h

Issue 2295323003: third_party: Update remote shell protocol to version 2 (Closed)
Patch Set: Migrate to "zcr" interfaces 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
« no previous file with comments | « no previous file | third_party/wayland-protocols/include/protocol/remote-shell-unstable-v1-server-protocol.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/wayland-protocols/include/protocol/remote-shell-unstable-v1-client-protocol.h
diff --git a/third_party/wayland-protocols/include/protocol/remote-shell-unstable-v1-client-protocol.h b/third_party/wayland-protocols/include/protocol/remote-shell-unstable-v1-client-protocol.h
index 2ab746f3d5b25b81cdf4bf7b11b920f69f0908e8..edbed176864265849f6b203e2f5816daf2a27315 100644
--- a/third_party/wayland-protocols/include/protocol/remote-shell-unstable-v1-client-protocol.h
+++ b/third_party/wayland-protocols/include/protocol/remote-shell-unstable-v1-client-protocol.h
@@ -503,6 +503,8 @@ zcr_remote_surface_v1_add_listener(struct zcr_remote_surface_v1 *zcr_remote_surf
#define ZCR_REMOTE_SURFACE_V1_UNPIN 15
#define ZCR_REMOTE_SURFACE_V1_SET_SYSTEM_MODAL 16
#define ZCR_REMOTE_SURFACE_V1_UNSET_SYSTEM_MODAL 17
+#define ZCR_REMOTE_SURFACE_V1_SET_MOVING 18
+#define ZCR_REMOTE_SURFACE_V1_UNSET_MOVING 19
/**
* @ingroup iface_zcr_remote_surface_v1
@@ -576,6 +578,14 @@ zcr_remote_surface_v1_add_listener(struct zcr_remote_surface_v1 *zcr_remote_surf
* @ingroup iface_zcr_remote_surface_v1
*/
#define ZCR_REMOTE_SURFACE_V1_UNSET_SYSTEM_MODAL_SINCE_VERSION 1
+/**
+ * @ingroup iface_zcr_remote_surface_v1
+ */
+#define ZCR_REMOTE_SURFACE_V1_SET_MOVING_SINCE_VERSION 2
+/**
+ * @ingroup iface_zcr_remote_surface_v1
+ */
+#define ZCR_REMOTE_SURFACE_V1_UNSET_MOVING_SINCE_VERSION 2
/** @ingroup iface_zcr_remote_surface_v1 */
static inline void
@@ -890,6 +900,35 @@ zcr_remote_surface_v1_unset_system_modal(struct zcr_remote_surface_v1 *zcr_remot
ZCR_REMOTE_SURFACE_V1_UNSET_SYSTEM_MODAL);
}
+/**
+ * @ingroup iface_zcr_remote_surface_v1
+ *
+ * Notifies the compositor when an interactive, user-driven move of the
+ * surface starts. The compositor may assume that subsequent
+ * set_window_geometry requests are position updates until it receives a
+ * unset_moving request.
+ */
+static inline void
+zcr_remote_surface_v1_set_moving(struct zcr_remote_surface_v1 *zcr_remote_surface_v1)
+{
+ wl_proxy_marshal((struct wl_proxy *) zcr_remote_surface_v1,
+ ZCR_REMOTE_SURFACE_V1_SET_MOVING);
+}
+
+/**
+ * @ingroup iface_zcr_remote_surface_v1
+ *
+ * Notifies the compositor when an interactive, user-driven move of the
+ * surface stops. The compositor may choose to stop the move regardless
+ * of this request.
+ */
+static inline void
+zcr_remote_surface_v1_unset_moving(struct zcr_remote_surface_v1 *zcr_remote_surface_v1)
+{
+ wl_proxy_marshal((struct wl_proxy *) zcr_remote_surface_v1,
+ ZCR_REMOTE_SURFACE_V1_UNSET_MOVING);
+}
+
#define ZCR_NOTIFICATION_SURFACE_V1_DESTROY 0
/**
« no previous file with comments | « no previous file | third_party/wayland-protocols/include/protocol/remote-shell-unstable-v1-server-protocol.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698