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

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

Issue 2184103003: arc: Implement proper Arc window activation for task moving to front. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: wayland based Created 4 years, 5 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-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 06e17c2b7b82a4b23b114c1ce8e59b2ece0e4c91..b714c210497ca268ea95927b311b754d8f4342c9 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
@@ -211,11 +211,11 @@ enum zwp_remote_shell_v1_error {
*/
enum zwp_remote_shell_v1_layout_mode {
/**
- * mulitple windows
+ * multiple windows
*/
ZWP_REMOTE_SHELL_V1_LAYOUT_MODE_WINDOWED = 1,
/**
- * restricted mode for table
+ * restricted mode for tablet
*/
ZWP_REMOTE_SHELL_V1_LAYOUT_MODE_TABLET = 2,
};
@@ -249,7 +249,7 @@ struct zwp_remote_shell_v1_listener {
struct wl_surface *gained_active,
struct wl_surface *lost_active);
/**
- * dlayout mode changed
+ * layout mode changed
*
* The shell_mode_changed event is sent by the compositor when
* the shell mode was changed.
@@ -529,6 +529,7 @@ zwp_remote_surface_v1_add_listener(struct zwp_remote_surface_v1 *zwp_remote_surf
#define ZWP_REMOTE_SURFACE_V1_SET_TOP_INSET 13
#define ZWP_REMOTE_SURFACE_V1_SET_SYSTEM_MODAL 14
#define ZWP_REMOTE_SURFACE_V1_UNSET_SYSTEM_MODAL 15
+#define ZWP_REMOTE_SURFACE_V1_ACTIVATE 16
/**
* @ingroup iface_zwp_remote_surface_v1
@@ -594,6 +595,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_UNSET_SYSTEM_MODAL_SINCE_VERSION 8
+/**
+ * @ingroup iface_zwp_remote_surface_v1
+ */
+#define ZWP_REMOTE_SURFACE_V1_ACTIVATE_SINCE_VERSION 9
/** @ingroup iface_zwp_remote_surface_v1 */
static inline void
@@ -883,6 +888,18 @@ zwp_remote_surface_v1_unset_system_modal(struct zwp_remote_surface_v1 *zwp_remot
ZWP_REMOTE_SURFACE_V1_UNSET_SYSTEM_MODAL);
}
+/**
+ * @ingroup iface_zwp_remote_surface_v1
+ *
+ * Make the surface active and bring it to the front.
+ */
+static inline void
+zwp_remote_surface_v1_activate(struct zwp_remote_surface_v1 *zwp_remote_surface_v1)
+{
+ wl_proxy_marshal((struct wl_proxy *) zwp_remote_surface_v1,
+ ZWP_REMOTE_SURFACE_V1_ACTIVATE);
+}
+
#define ZWP_NOTIFICATION_SURFACE_V1_DESTROY 0
/**

Powered by Google App Engine
This is Rietveld 408576698