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

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

Issue 2664403004: Use pixel coordinates for shadow underlay bounds (Closed)
Patch Set: update names etc Created 3 years, 10 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 989e6e4d77cdbc5f9fd8fc7cadc4ff90e65fa762..5bb2f4f58f1081378b4f676f9295d108372dde1f 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
@@ -429,6 +429,7 @@ zcr_remote_surface_v1_add_listener(struct zcr_remote_surface_v1 *zcr_remote_surf
#define ZCR_REMOTE_SURFACE_V1_UNSET_SYSTEM_MODAL 17
#define ZCR_REMOTE_SURFACE_V1_SET_MOVING 18
#define ZCR_REMOTE_SURFACE_V1_UNSET_MOVING 19
+#define ZCR_REMOTE_SURFACE_V1_SET_RECTANGULAR_SURFACE_SHADOW 20
/**
* @ingroup iface_zcr_remote_surface_v1
@@ -510,6 +511,10 @@ zcr_remote_surface_v1_add_listener(struct zcr_remote_surface_v1 *zcr_remote_surf
* @ingroup iface_zcr_remote_surface_v1
*/
#define ZCR_REMOTE_SURFACE_V1_UNSET_MOVING_SINCE_VERSION 2
+/**
+ * @ingroup iface_zcr_remote_surface_v1
+ */
+#define ZCR_REMOTE_SURFACE_V1_SET_RECTANGULAR_SURFACE_SHADOW_SINCE_VERSION 3
/** @ingroup iface_zcr_remote_surface_v1 */
static inline void
@@ -603,7 +608,7 @@ zcr_remote_surface_v1_set_scale(struct zcr_remote_surface_v1 *zcr_remote_surface
/**
* @ingroup iface_zcr_remote_surface_v1
*
- * 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 request.
@@ -853,6 +858,29 @@ zcr_remote_surface_v1_unset_moving(struct zcr_remote_surface_v1 *zcr_remote_surf
ZCR_REMOTE_SURFACE_V1_UNSET_MOVING);
}
+/**
+ * @ingroup iface_zcr_remote_surface_v1
+ *
+ * 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. Specifying zero width and height
+ * will disable the shadow.
+ */
+static inline void zcr_remote_surface_v1_set_rectangular_surface_shadow(
+ struct zcr_remote_surface_v1* zcr_remote_surface_v1,
+ int32_t x,
+ int32_t y,
+ int32_t width,
+ int32_t height) {
+ wl_proxy_marshal((struct wl_proxy*)zcr_remote_surface_v1,
+ ZCR_REMOTE_SURFACE_V1_SET_RECTANGULAR_SURFACE_SHADOW, x, y,
+ width, height);
+}
+
#define ZCR_NOTIFICATION_SURFACE_V1_DESTROY 0
/**

Powered by Google App Engine
This is Rietveld 408576698