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

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

Issue 2109763002: third_party: Update to version 7 of remote_shell_protocol (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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 426a735b2c35b62d34a4041ce121cd0f572a88b1..af363f4fcc6e311b9cd2c75fa42dcb7a5b84a60a 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
@@ -158,6 +158,38 @@ enum zwp_remote_shell_v1_container {
};
#endif /* ZWP_REMOTE_SHELL_V1_CONTAINER_ENUM */
+#ifndef ZWP_REMOTE_SHELL_V1_STATE_TYPE_ENUM
+#define ZWP_REMOTE_SHELL_V1_STATE_TYPE_ENUM
+/**
+ * @ingroup iface_zwp_remote_shell_v1
+ * state types for remote surfaces
+ *
+ * Defines common show states for shell surfaces.
+ */
+enum zwp_remote_shell_v1_state_type {
+ /**
+ * normal window state
+ */
+ ZWP_REMOTE_SHELL_V1_STATE_TYPE_NORMAL = 1,
+ /**
+ * minimized window state
+ */
+ ZWP_REMOTE_SHELL_V1_STATE_TYPE_MINIMIZED = 2,
+ /**
+ * maximized window state
+ */
+ ZWP_REMOTE_SHELL_V1_STATE_TYPE_MAXIMIZED = 3,
+ /**
+ * fullscreen window state
+ */
+ ZWP_REMOTE_SHELL_V1_STATE_TYPE_FULLSCREEN = 4,
+ /**
+ * pinned window state
+ */
+ ZWP_REMOTE_SHELL_V1_STATE_TYPE_PINNED = 5,
+};
+#endif /* ZWP_REMOTE_SHELL_V1_STATE_TYPE_ENUM */
+
#ifndef ZWP_REMOTE_SHELL_V1_ERROR_ENUM
#define ZWP_REMOTE_SHELL_V1_ERROR_ENUM
enum zwp_remote_shell_v1_error {
@@ -470,6 +502,7 @@ struct zwp_remote_surface_v1_interface {
#define ZWP_REMOTE_SURFACE_V1_UNSET_MINIMIZED 6
#define ZWP_REMOTE_SURFACE_V1_SET_PINNED 7
#define ZWP_REMOTE_SURFACE_V1_UNSET_PINNED 8
+#define ZWP_REMOTE_SURFACE_V1_STATE_TYPE_CHANGED 9
/**
* @ingroup iface_zwp_remote_surface_v1
@@ -507,6 +540,10 @@ struct zwp_remote_surface_v1_interface {
* @ingroup iface_zwp_remote_surface_v1
*/
#define ZWP_REMOTE_SURFACE_V1_UNSET_PINNED_SINCE_VERSION 3
+/**
+ * @ingroup iface_zwp_remote_surface_v1
+ */
+#define ZWP_REMOTE_SURFACE_V1_STATE_TYPE_CHANGED_SINCE_VERSION 7
/**
* @ingroup iface_zwp_remote_surface_v1
@@ -608,6 +645,17 @@ zwp_remote_surface_v1_send_unset_pinned(struct wl_resource *resource_)
}
/**
+ * @ingroup iface_zwp_remote_surface_v1
+ * Sends an state_type_changed event to the client owning the resource.
+ * @param resource_ The client's resource
+ */
+static inline void
+zwp_remote_surface_v1_send_state_type_changed(struct wl_resource *resource_, uint32_t state_type)
+{
+ wl_resource_post_event(resource_, ZWP_REMOTE_SURFACE_V1_STATE_TYPE_CHANGED, state_type);
+}
+
+/**
* @ingroup iface_zwp_notification_surface_v1
* @struct zwp_notification_surface_v1_interface
*/

Powered by Google App Engine
This is Rietveld 408576698