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

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

Issue 2061763002: third_party: Update to version 5 of remote_shell_protocol. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase and add set_top_inset 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
« 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 465ec025e1a3b91348f6edf60af2791fdb82a920..0021669ad58d96fdefdc7b4b11a7f811f4bc1b2f 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
@@ -402,6 +402,8 @@ zwp_remote_surface_v1_add_listener(struct zwp_remote_surface_v1 *zwp_remote_surf
#define ZWP_REMOTE_SURFACE_V1_UNPIN 9
#define ZWP_REMOTE_SURFACE_V1_UNFULLSCREEN 10
#define ZWP_REMOTE_SURFACE_V1_SET_RECTANGULAR_SHADOW 11
+#define ZWP_REMOTE_SURFACE_V1_SET_TITLE 12
+#define ZWP_REMOTE_SURFACE_V1_SET_TOP_INSET 13
/**
* @ingroup iface_zwp_remote_surface_v1
@@ -451,6 +453,14 @@ zwp_remote_surface_v1_add_listener(struct zwp_remote_surface_v1 *zwp_remote_surf
* @ingroup iface_zwp_remote_surface_v1
*/
#define ZWP_REMOTE_SURFACE_V1_SET_RECTANGULAR_SHADOW_SINCE_VERSION 4
+/**
+ * @ingroup iface_zwp_remote_surface_v1
+ */
+#define ZWP_REMOTE_SURFACE_V1_SET_TITLE_SINCE_VERSION 5
+/**
+ * @ingroup iface_zwp_remote_surface_v1
+ */
+#define ZWP_REMOTE_SURFACE_V1_SET_TOP_INSET_SINCE_VERSION 5
/** @ingroup iface_zwp_remote_surface_v1 */
static inline void
@@ -666,7 +676,7 @@ zwp_remote_surface_v1_unfullscreen(struct zwp_remote_surface_v1 *zwp_remote_surf
/**
* @ingroup iface_zwp_remote_surface_v1
*
- * Request that surface neesds a rectangular shadow.
+ * Request that surface needs a rectangular shadow.
*
* This is only a request that the surface should have a rectangular
* shadow. The compositor may choose to ignore this request.
@@ -681,7 +691,39 @@ static inline void
zwp_remote_surface_v1_set_rectangular_shadow(struct zwp_remote_surface_v1 *zwp_remote_surface_v1, int32_t x, int32_t y, int32_t width, int32_t height)
{
wl_proxy_marshal((struct wl_proxy *) zwp_remote_surface_v1,
- ZWP_REMOTE_SURFACE_V1_SET_RECTANGULAR_SHADOW_GEOMETRY, x, y, width, height);
+ ZWP_REMOTE_SURFACE_V1_SET_RECTANGULAR_SHADOW, x, y, width, height);
+}
+
+/**
+ * @ingroup iface_zwp_remote_surface_v1
+ *
+ * Set a short title for the surface.
+ *
+ * This string may be used to identify the surface in a task bar,
+ * window list, or other user interface elements provided by the
+ * compositor.
+ *
+ * The string must be encoded in UTF-8.
+ */
+static inline void
+zwp_remote_surface_v1_set_title(struct zwp_remote_surface_v1 *zwp_remote_surface_v1, const char *title)
+{
+ wl_proxy_marshal((struct wl_proxy *) zwp_remote_surface_v1,
+ ZWP_REMOTE_SURFACE_V1_SET_TITLE, title);
+}
+
+/**
+ * @ingroup iface_zwp_remote_surface_v1
+ *
+ * Set distance from the top of the surface to the contents.
+ *
+ * This distance typically represents the size of the window caption.
+ */
+static inline void
+zwp_remote_surface_v1_set_top_inset(struct zwp_remote_surface_v1 *zwp_remote_surface_v1, int32_t height)
+{
+ wl_proxy_marshal((struct wl_proxy *) zwp_remote_surface_v1,
+ ZWP_REMOTE_SURFACE_V1_SET_TOP_INSET, height);
}
#ifdef __cplusplus
« 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