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

Unified Diff: third_party/wayland-protocols/include/protocol/remote-shell-unstable-v1-server-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
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 e442ce78dd7c1c6b0935b1b919fc86545a950564..67075749d39a18bf125e0ec382f3f4ee4107b40a 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
@@ -187,6 +187,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 */
@@ -570,15 +574,31 @@ struct zwp_remote_surface_v1_interface {
struct wl_resource *resource,
wl_fixed_t opacity);
/**
- * activate surface
- *
- * Make surface active.
+ * make the surface active
*
+ * Make the surface active and bring it to the front.
+ * @param serial the serial of the user event
* @since 10
*/
void (*activate)(struct wl_client *client,
- struct wl_resource *resource,
- uint32_t serial);
+ struct wl_resource *resource,
+ uint32_t serial);
+ /**
+ * set window mode as pinned with taking a trasted flag.
+ *
+ * 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.
+ * @param trusted whether the app can enforce users to stay in the pinned mode.
+ * @since 11
+ */
+ void (*pin_with_trusted_flag)(struct wl_client *client,
+ struct wl_resource *resource,
+ int32_t trusted);
};
#define ZWP_REMOTE_SURFACE_V1_SET_FULLSCREEN 0

Powered by Google App Engine
This is Rietveld 408576698