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

Unified Diff: third_party/wayland-protocols/include/protocol/remote-shell-unstable-v1-server-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-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 eb574708ca0b6e43b460353cf5b12b5ea3de4ed6..b15d1f1f3fd50c74e530208c12d2512e62aeb011 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
@@ -213,14 +213,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 */
@@ -275,6 +275,7 @@ struct zwp_remote_shell_v1_interface {
#define ZWP_REMOTE_SHELL_V1_CONFIGURE 0
#define ZWP_REMOTE_SHELL_V1_ACTIVATED 1
#define ZWP_REMOTE_SHELL_V1_LAYOUT_MODE_CHANGED 2
+#define ZWP_REMOTE_SHELL_V1_DISPLAY_CHANGED 3
/**
* @ingroup iface_zwp_remote_shell_v1
@@ -288,6 +289,10 @@ struct zwp_remote_shell_v1_interface {
* @ingroup iface_zwp_remote_shell_v1
*/
#define ZWP_REMOTE_SHELL_V1_LAYOUT_MODE_CHANGED_SINCE_VERSION 8
+/**
+ * @ingroup iface_zwp_remote_shell_v1
+ */
+#define ZWP_REMOTE_SHELL_V1_DISPLAY_CHANGED_SINCE_VERSION 9
/**
* @ingroup iface_zwp_remote_shell_v1
@@ -323,6 +328,40 @@ zwp_remote_shell_v1_send_layout_mode_changed(struct wl_resource *resource_, uint
}
/**
+ * @ingroup iface_zwp_remote_shell_v1
+ * Sends an display_changed event to the client owning the resource.
+ * @param resource_ The client's resource
+ */
+static inline void zwp_remote_shell_v1_send_display_changed(
+ struct wl_resource* resource_,
+ 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) {
+ wl_resource_post_event(
+ resource_, ZWP_REMOTE_SHELL_V1_DISPLAY_CHANGED, output_origin_x,
+ output_origin_y, output_width_mm, output_height_mm,
+ output_subpixel_layout, output_transform, output_mode_width_pixels,
+ output_mode_height_pixels, output_mode_refresh_rate_mhz,
+ display_scale_factor, display_width, display_height, work_area_inset_left,
+ work_area_inset_top, work_area_inset_right, work_area_inset_bottom,
+ layout_mode);
+}
+
+/**
* @ingroup iface_zwp_remote_surface_v1
* @struct zwp_remote_surface_v1_interface
*/
@@ -543,6 +582,15 @@ struct zwp_remote_surface_v1_interface {
*/
void (*unset_system_modal)(struct wl_client *client,
struct wl_resource *resource);
+ /**
+ * suggests the window's background opacity
+ *
+ * Suggests the window's background opacity.
+ * @since 9
+ */
+ void (*set_background_opacity)(struct wl_client* client,
+ struct wl_resource* resource,
+ wl_fixed_t opacity);
};
#define ZWP_REMOTE_SURFACE_V1_SET_FULLSCREEN 0

Powered by Google App Engine
This is Rietveld 408576698