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

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

Issue 2033713004: third_party: Update to version 2 of remote_shell_protocol. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix typos 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 5f74b11c260f8c3295412d1ecb300baa59834b7d..e2e3d426ec2336f20a5cab3cbc1d785a2fc85de3 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
@@ -129,6 +129,10 @@ zwp_remote_shell_v1_send_activated(struct wl_resource *resource_, struct wl_reso
* @set_app_id: set application ID
* @set_window_geometry: set the new window geometry
* @set_scale: set scale
+ * @fullscreen: fullscreen
+ * @maximize: maximize
+ * @minimize: minimize
+ * @restore: restore
*
* An interface that may be implemented by a wl_surface, for
* implementations that provide a desktop-style user interface and allows
@@ -206,11 +210,71 @@ struct zwp_remote_surface_v1_interface {
void (*set_scale)(struct wl_client *client,
struct wl_resource *resource,
wl_fixed_t scale);
+ /**
+ * fullscreen - fullscreen
+ *
+ * Request that surface is made fullscreen.
+ *
+ * This is only a request that the window should be made
+ * fullscreen. The compositor may choose to ignore this request.
+ * The client should listen to set_fullscreen events to determine
+ * if the window was made fullscreen or not.
+ * @since: 2
+ */
+ void (*fullscreen)(struct wl_client *client,
+ struct wl_resource *resource);
+ /**
+ * maximize - maximize
+ *
+ * Request that surface is maximized. The window geometry will be
+ * updated to whatever the compositor finds appropriate for a
+ * maximized window.
+ *
+ * This is only a request that the window should be maximized. The
+ * compositor may choose to ignore this request. The client should
+ * listen to set_maximized events to determine if the window was
+ * maximized or not.
+ * @since: 2
+ */
+ void (*maximize)(struct wl_client *client,
+ struct wl_resource *resource);
+ /**
+ * minimize - minimize
+ *
+ * Request that surface is minimized.
+ *
+ * This is only a request that the window should be minimized. The
+ * compositor may choose to ignore this request. The client should
+ * listen to set_minimized events to determine if the window was
+ * minimized or not.
+ * @since: 2
+ */
+ void (*minimize)(struct wl_client *client,
+ struct wl_resource *resource);
+ /**
+ * restore - restore
+ *
+ * Request that surface is restored. This restores the window
+ * geometry to what it was before the window was minimized,
+ * maximized or made fullscreen.
+ *
+ * This is only a request that the window should be restored. The
+ * compositor may choose to ignore this request. The client should
+ * listen to unset_maximized, unset_minimize and unset_fullscreen
+ * events to determine if the window was restored or not.
+ * @since: 2
+ */
+ void (*restore)(struct wl_client *client,
+ struct wl_resource *resource);
};
#define ZWP_REMOTE_SURFACE_V1_SET_FULLSCREEN 0
#define ZWP_REMOTE_SURFACE_V1_UNSET_FULLSCREEN 1
#define ZWP_REMOTE_SURFACE_V1_CLOSE 2
+#define ZWP_REMOTE_SURFACE_V1_SET_MAXIMIZED 3
+#define ZWP_REMOTE_SURFACE_V1_UNSET_MAXIMIZED 4
+#define ZWP_REMOTE_SURFACE_V1_SET_MINIMIZED 5
+#define ZWP_REMOTE_SURFACE_V1_UNSET_MINIMIZED 6
static inline void
zwp_remote_surface_v1_send_set_fullscreen(struct wl_resource *resource_)
@@ -230,6 +294,30 @@ zwp_remote_surface_v1_send_close(struct wl_resource *resource_)
wl_resource_post_event(resource_, ZWP_REMOTE_SURFACE_V1_CLOSE);
}
+static inline void
+zwp_remote_surface_v1_send_set_maximized(struct wl_resource *resource_)
+{
+ wl_resource_post_event(resource_, ZWP_REMOTE_SURFACE_V1_SET_MAXIMIZED);
+}
+
+static inline void
+zwp_remote_surface_v1_send_unset_maximized(struct wl_resource *resource_)
+{
+ wl_resource_post_event(resource_, ZWP_REMOTE_SURFACE_V1_UNSET_MAXIMIZED);
+}
+
+static inline void
+zwp_remote_surface_v1_send_set_minimized(struct wl_resource *resource_)
+{
+ wl_resource_post_event(resource_, ZWP_REMOTE_SURFACE_V1_SET_MINIMIZED);
+}
+
+static inline void
+zwp_remote_surface_v1_send_unset_minimized(struct wl_resource *resource_)
+{
+ wl_resource_post_event(resource_, ZWP_REMOTE_SURFACE_V1_UNSET_MINIMIZED);
+}
+
#ifdef __cplusplus
}
#endif

Powered by Google App Engine
This is Rietveld 408576698