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

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

Issue 2189073003: Add configuration_changed event and set_background_opacity request. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: updated interface comment 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..9ab1d78d46b512e3b6b443c445915f01f8e7ed50 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
@@ -210,14 +210,14 @@ enum zwp_remote_shell_v1_error {
* Determine how a client should layout surfaces.
*/
enum zwp_remote_shell_v1_layout_mode {
- /**
- * mulitple windows
- */
- ZWP_REMOTE_SHELL_V1_LAYOUT_MODE_WINDOWED = 1,
- /**
- * restricted mode for table
- */
- ZWP_REMOTE_SHELL_V1_LAYOUT_MODE_TABLET = 2,
+ /**
+ * multiple windows
+ */
+ ZWP_REMOTE_SHELL_V1_LAYOUT_MODE_WINDOWED = 1,
+ /**
+ * restricted mode for tablet
+ */
+ ZWP_REMOTE_SHELL_V1_LAYOUT_MODE_TABLET = 2,
};
#endif /* ZWP_REMOTE_SHELL_V1_LAYOUT_MODE_ENUM */
@@ -226,40 +226,65 @@ enum zwp_remote_shell_v1_layout_mode {
* @struct zwp_remote_shell_v1_listener
*/
struct zwp_remote_shell_v1_listener {
- /**
- * suggests a re-layout of remote shell
- *
- * Suggests a re-layout of remote surface geometry.
- */
- void (*configure)(void *data,
- struct zwp_remote_shell_v1 *zwp_remote_shell_v1,
- int32_t width,
- int32_t height,
- int32_t work_area_inset_left,
- int32_t work_area_inset_top,
- int32_t work_area_inset_right,
- int32_t work_area_inset_bottom);
- /**
- * activated surface changed
- *
- * Notifies client that the activated surface changed.
- */
- void (*activated)(void *data,
- struct zwp_remote_shell_v1 *zwp_remote_shell_v1,
- struct wl_surface *gained_active,
- struct wl_surface *lost_active);
- /**
- * dlayout mode changed
- *
- * The shell_mode_changed event is sent by the compositor when
- * the shell mode was changed.
- *
- * This is an event to notify that the shell mode has switched.
- * @since 8
- */
- void (*layout_mode_changed)(void *data,
- struct zwp_remote_shell_v1 *zwp_remote_shell_v1,
- uint32_t layout_mode);
+ /**
+ * suggests a re-layout of remote shell
+ *
+ * Obsolete: Suggests a re-layout of remote surface geometry.
+ */
+ void (*configure)(void* data,
+ struct zwp_remote_shell_v1* zwp_remote_shell_v1,
+ int32_t width,
+ int32_t height,
+ int32_t work_area_inset_left,
+ int32_t work_area_inset_top,
+ int32_t work_area_inset_right,
+ int32_t work_area_inset_bottom);
+ /**
+ * activated surface changed
+ *
+ * Notifies client that the activated surface changed.
+ */
+ void (*activated)(void* data,
+ struct zwp_remote_shell_v1* zwp_remote_shell_v1,
+ struct wl_surface* gained_active,
+ struct wl_surface* lost_active);
+ /**
+ * layout mode changed
+ *
+ * The shell_mode_changed event is sent by the compositor when
+ * the shell mode was changed.
+ *
+ * This is an event to notify that the shell mode has switched.
+ * @since 8
+ */
+ void (*layout_mode_changed)(void* data,
+ struct zwp_remote_shell_v1* zwp_remote_shell_v1,
+ uint32_t layout_mode);
+ /**
+ * suggests a re-configuration of display for remote shell
+ *
+ * Suggests a re-configuration of display for remote shell.
+ * @since 9
+ */
+ void (*display_changed)(void* data,
+ struct zwp_remote_shell_v1* zwp_remote_shell_v1,
+ int32_t output_origin_x,
+ int32_t output_origin_y,
+ int32_t output_width_mm,
+ int32_t output_height_mm,
+ int32_t output_subpixel_layout,
+ int32_t output_transform,
+ int32_t output_mode_width_pixels,
+ int32_t output_mode_height_pixels,
+ int32_t output_mode_refresh_rate_mhz,
+ wl_fixed_t display_scale_factor,
+ int32_t display_width,
+ int32_t display_height,
+ int32_t work_area_inset_left,
+ int32_t work_area_inset_top,
+ int32_t work_area_inset_right,
+ int32_t work_area_inset_bottom,
+ uint32_t layout_mode);
};
/**
@@ -529,6 +554,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_SET_BACKGROUND_OPACITY 16
/**
* @ingroup iface_zwp_remote_surface_v1
@@ -594,6 +620,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_SET_BACKGROUND_OPACITY_SINCE_VERSION 9
/** @ingroup iface_zwp_remote_surface_v1 */
static inline void
@@ -883,6 +913,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
+ *
+ * Suggests the window's background opacity.
+ */
+static inline void zwp_remote_surface_v1_set_background_opacity(
+ struct zwp_remote_surface_v1* zwp_remote_surface_v1,
+ wl_fixed_t opacity) {
+ wl_proxy_marshal((struct wl_proxy*)zwp_remote_surface_v1,
+ ZWP_REMOTE_SURFACE_V1_SET_BACKGROUND_OPACITY, opacity);
+}
+
#define ZWP_NOTIFICATION_SURFACE_V1_DESTROY 0
/**

Powered by Google App Engine
This is Rietveld 408576698