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

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

Issue 2448413002: third_party: Revise version 3 of remote shell protocol (Closed)
Patch Set: Created 4 years, 2 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/remote-shell-unstable-v1-server-protocol.h
diff --git a/third_party/wayland-protocols/include/protocol/remote-shell-unstable-v1-server-protocol.h b/third_party/wayland-protocols/include/protocol/remote-shell-unstable-v1-server-protocol.h
index 06cc4db23069f926c7a85b630542c549130cb8c5..c52ff3257647f96dfe98ea8a87c677a3a4860e83 100644
--- a/third_party/wayland-protocols/include/protocol/remote-shell-unstable-v1-server-protocol.h
+++ b/third_party/wayland-protocols/include/protocol/remote-shell-unstable-v1-server-protocol.h
@@ -277,6 +277,8 @@ struct zcr_remote_shell_v1_interface {
#define ZCR_REMOTE_SHELL_V1_ACTIVATED 0
#define ZCR_REMOTE_SHELL_V1_CONFIGURATION_CHANGED 1
+#define ZCR_REMOTE_SHELL_V1_WORKSPACE 2
+#define ZCR_REMOTE_SHELL_V1_CONFIGURE 3
/**
* @ingroup iface_zcr_remote_shell_v1
@@ -286,6 +288,14 @@ struct zcr_remote_shell_v1_interface {
* @ingroup iface_zcr_remote_shell_v1
*/
#define ZCR_REMOTE_SHELL_V1_CONFIGURATION_CHANGED_SINCE_VERSION 1
+/**
+ * @ingroup iface_zcr_remote_shell_v1
+ */
+#define ZCR_REMOTE_SHELL_V1_WORKSPACE_SINCE_VERSION 1
+/**
+ * @ingroup iface_zcr_remote_shell_v1
+ */
+#define ZCR_REMOTE_SHELL_V1_CONFIGURE_SINCE_VERSION 1
/**
* @ingroup iface_zcr_remote_shell_v1
@@ -310,6 +320,28 @@ zcr_remote_shell_v1_send_configuration_changed(struct wl_resource *resource_, in
}
/**
+ * @ingroup iface_zcr_remote_shell_v1
+ * Sends an workspace event to the client owning the resource.
+ * @param resource_ The client's resource
+ */
+static inline void
+zcr_remote_shell_v1_send_workspace(struct wl_resource *resource_, uint32_t id, int32_t x, int32_t y, int32_t width, int32_t height, int32_t inset_left, int32_t inset_top, int32_t inset_right, int32_t inset_bottom)
+{
+ wl_resource_post_event(resource_, ZCR_REMOTE_SHELL_V1_WORKSPACE, id, x, y, width, height, inset_left, inset_top, inset_right, inset_bottom);
+}
+
+/**
+ * @ingroup iface_zcr_remote_shell_v1
+ * Sends an configure event to the client owning the resource.
+ * @param resource_ The client's resource
+ */
+static inline void
+zcr_remote_shell_v1_send_configure(struct wl_resource *resource_, int32_t width, int32_t height, int32_t transform, wl_fixed_t scale_factor, uint32_t layout_mode)
+{
+ wl_resource_post_event(resource_, ZCR_REMOTE_SHELL_V1_CONFIGURE, width, height, transform, scale_factor, layout_mode);
+}
+
+/**
* @ingroup iface_zcr_remote_surface_v1
* @struct zcr_remote_surface_v1_interface
*/

Powered by Google App Engine
This is Rietveld 408576698