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

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

Issue 2276443002: Add new wayland request to enter screen locking mode. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix format. Created 4 years, 4 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 d122a7a09ebe9b300166194e85dc468c3cb45292..370b5cbd93cbb078943f2790b077b121c57213ed 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
@@ -184,6 +184,10 @@ enum zwp_remote_shell_v1_state_type {
* pinned window state
*/
ZWP_REMOTE_SHELL_V1_STATE_TYPE_PINNED = 5,
+ /**
+ * trusted pinned window state
+ */
+ ZWP_REMOTE_SHELL_V1_STATE_TYPE_TRUSTED_PINNED = 6,
};
#endif /* ZWP_REMOTE_SHELL_V1_STATE_TYPE_ENUM */
@@ -548,6 +552,7 @@ zwp_remote_surface_v1_add_listener(struct zwp_remote_surface_v1 *zwp_remote_surf
#define ZWP_REMOTE_SURFACE_V1_UNSET_SYSTEM_MODAL 15
#define ZWP_REMOTE_SURFACE_V1_SET_RECTANGULAR_SHADOW_BACKGROUND_OPACITY 16
#define ZWP_REMOTE_SURFACE_V1_ACTIVATE 17
+#define ZWP_REMOTE_SURFACE_V1_PIN_WITH_TRUSTED_FLAG 18
/**
* @ingroup iface_zwp_remote_surface_v1
@@ -621,6 +626,10 @@ 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_ACTIVATE_SINCE_VERSION 10
+/**
+ * @ingroup iface_zwp_remote_surface_v1
+ */
+#define ZWP_REMOTE_SURFACE_V1_PIN_WITH_TRUSTED_FLAG_SINCE_VERSION 11
/** @ingroup iface_zwp_remote_surface_v1 */
static inline void
@@ -934,6 +943,24 @@ zwp_remote_surface_v1_activate(struct zwp_remote_surface_v1 *zwp_remote_surface_
ZWP_REMOTE_SURFACE_V1_ACTIVATE, serial);
}
+/**
+ * @ingroup iface_zwp_remote_surface_v1
+ *
+ * Request that surface is pinned.
+ *
+ * This is only a request that the window should be pinned.
+ * The compositor may choose to ignore this request. The client should
+ * listen to set_pinned events to determine if the window was
+ * pinned or not. If trusted flag is non-zero, the app can prevent users
+ * from exiting the pinned mode.
+ */
+static inline void
+zwp_remote_surface_v1_pin_with_trusted_flag(struct zwp_remote_surface_v1 *zwp_remote_surface_v1, int32_t trusted)
+{
+ wl_proxy_marshal((struct wl_proxy *) zwp_remote_surface_v1,
+ ZWP_REMOTE_SURFACE_V1_PIN_WITH_TRUSTED_FLAG, trusted);
+}
+
#define ZWP_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