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

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

Issue 2664403004: Use pixel coordinates for shadow underlay bounds (Closed)
Patch Set: update Created 3 years, 11 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 06cc4db23069f926c7a85b630542c549130cb8c5..2b19dd133529ac7b974352b3f48814c2220dc1a8 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
@@ -373,7 +373,7 @@ struct zcr_remote_surface_v1_interface {
/**
* set a rectangular shadow
*
- * Request that surface needs a rectangular shadow.
+ * [Deprecated] Request that surface needs a rectangular shadow.
*
* This is only a request that the surface should have a
* rectangular shadow. The compositor may choose to ignore this
@@ -559,6 +559,28 @@ struct zcr_remote_surface_v1_interface {
*/
void (*unset_moving)(struct wl_client *client,
struct wl_resource *resource);
+ /**
+ * set a rectangular shadow
+ *
+ * Request that surface needs a rectangular shadow.
+ *
+ * This is only a request that the surface should have a
+ * rectangular shadow. The compositor may choose to ignore this
+ * request.
+ *
+ * The arguments are given in the remote surface coordinate space
+ * and specifies inner bounds of the shadow.
+ *
+ * The arguments are given in the remote surface coordinate space.
+ * Specifying zero width and height will disable the shadow.
+ * @since 3
+ */
+ void (*set_rectangular_surface_shadow)(struct wl_client *client,
+ struct wl_resource *resource,
+ int32_t x,
+ int32_t y,
+ int32_t width,
+ int32_t height);
};
#define ZCR_REMOTE_SURFACE_V1_CLOSE 0

Powered by Google App Engine
This is Rietveld 408576698