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

Side by Side 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: formatting Created 4 years, 4 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 unified diff | Download patch
OLDNEW
1 /* Generated by wayland-scanner 1.11.0 */ 1 /* Generated by wayland-scanner 1.11.0 */
2 2
3 #ifndef REMOTE_SHELL_UNSTABLE_V1_CLIENT_PROTOCOL_H 3 #ifndef REMOTE_SHELL_UNSTABLE_V1_CLIENT_PROTOCOL_H
4 #define REMOTE_SHELL_UNSTABLE_V1_CLIENT_PROTOCOL_H 4 #define REMOTE_SHELL_UNSTABLE_V1_CLIENT_PROTOCOL_H
5 5
6 #include <stdint.h> 6 #include <stdint.h>
7 #include <stddef.h> 7 #include <stddef.h>
8 #include "wayland-client.h" 8 #include "wayland-client.h"
9 9
10 #ifdef __cplusplus 10 #ifdef __cplusplus
(...skipping 193 matching lines...) Expand 10 before | Expand all | Expand 10 after
204 #ifndef ZWP_REMOTE_SHELL_V1_LAYOUT_MODE_ENUM 204 #ifndef ZWP_REMOTE_SHELL_V1_LAYOUT_MODE_ENUM
205 #define ZWP_REMOTE_SHELL_V1_LAYOUT_MODE_ENUM 205 #define ZWP_REMOTE_SHELL_V1_LAYOUT_MODE_ENUM
206 /** 206 /**
207 * @ingroup iface_zwp_remote_shell_v1 207 * @ingroup iface_zwp_remote_shell_v1
208 * the layout mode 208 * the layout mode
209 * 209 *
210 * Determine how a client should layout surfaces. 210 * Determine how a client should layout surfaces.
211 */ 211 */
212 enum zwp_remote_shell_v1_layout_mode { 212 enum zwp_remote_shell_v1_layout_mode {
213 /** 213 /**
214 » * mulitple windows 214 » * multiple windows
215 */ 215 */
216 ZWP_REMOTE_SHELL_V1_LAYOUT_MODE_WINDOWED = 1, 216 ZWP_REMOTE_SHELL_V1_LAYOUT_MODE_WINDOWED = 1,
217 /** 217 /**
218 » * restricted mode for table 218 » * restricted mode for tablet
219 */ 219 */
220 ZWP_REMOTE_SHELL_V1_LAYOUT_MODE_TABLET = 2, 220 ZWP_REMOTE_SHELL_V1_LAYOUT_MODE_TABLET = 2,
221 }; 221 };
222 #endif /* ZWP_REMOTE_SHELL_V1_LAYOUT_MODE_ENUM */ 222 #endif /* ZWP_REMOTE_SHELL_V1_LAYOUT_MODE_ENUM */
223 223
224 /** 224 /**
225 * @ingroup iface_zwp_remote_shell_v1 225 * @ingroup iface_zwp_remote_shell_v1
226 * @struct zwp_remote_shell_v1_listener 226 * @struct zwp_remote_shell_v1_listener
227 */ 227 */
228 struct zwp_remote_shell_v1_listener { 228 struct zwp_remote_shell_v1_listener {
229 /** 229 /**
230 * suggests a re-layout of remote shell 230 * suggests a re-layout of remote shell
231 * 231 *
232 » * Suggests a re-layout of remote surface geometry. 232 » * Obsolete: Suggests a re-layout of remote surface geometry.
233 */ 233 */
234 void (*configure)(void *data, 234 void (*configure)(void *data,
235 struct zwp_remote_shell_v1 *zwp_remote_shell_v1, 235 struct zwp_remote_shell_v1 *zwp_remote_shell_v1,
236 int32_t width, 236 int32_t width,
237 int32_t height, 237 int32_t height,
238 int32_t work_area_inset_left, 238 int32_t work_area_inset_left,
239 int32_t work_area_inset_top, 239 int32_t work_area_inset_top,
240 int32_t work_area_inset_right, 240 int32_t work_area_inset_right,
241 int32_t work_area_inset_bottom); 241 int32_t work_area_inset_bottom);
242 /** 242 /**
243 * activated surface changed 243 * activated surface changed
244 * 244 *
245 * Notifies client that the activated surface changed. 245 * Notifies client that the activated surface changed.
246 */ 246 */
247 void (*activated)(void *data, 247 void (*activated)(void *data,
248 struct zwp_remote_shell_v1 *zwp_remote_shell_v1, 248 struct zwp_remote_shell_v1 *zwp_remote_shell_v1,
249 struct wl_surface *gained_active, 249 struct wl_surface *gained_active,
250 struct wl_surface *lost_active); 250 struct wl_surface *lost_active);
251 /** 251 /**
252 » * dlayout mode changed 252 » * layout mode changed
253 * 253 *
254 * The shell_mode_changed event is sent by the compositor when 254 * The shell_mode_changed event is sent by the compositor when
255 * the shell mode was changed. 255 * the shell mode was changed.
256 * 256 *
257 * This is an event to notify that the shell mode has switched. 257 * This is an event to notify that the shell mode has switched.
258 * @since 8 258 * @since 8
259 */ 259 */
260 void (*layout_mode_changed)(void *data, 260 void (*layout_mode_changed)(void *data,
261 struct zwp_remote_shell_v1 *zwp_remote_shell _v1, 261 struct zwp_remote_shell_v1 *zwp_remote_shell _v1,
262 uint32_t layout_mode); 262 uint32_t layout_mode);
263 /**
264 * suggests a re-configuration of remote shell
265 *
266 * Suggests a re-configuration of remote shell.
267 * @since 9
268 */
269 void (*configuration_changed)(void *data,
270 struct zwp_remote_shell_v1 *zwp_remote_she ll_v1,
271 int32_t width,
272 int32_t height,
273 int32_t transform,
274 wl_fixed_t scale_factor,
275 int32_t work_area_inset_left,
276 int32_t work_area_inset_top,
277 int32_t work_area_inset_right,
278 int32_t work_area_inset_bottom,
279 uint32_t layout_mode);
263 }; 280 };
264 281
265 /** 282 /**
266 * @ingroup zwp_remote_shell_v1_iface 283 * @ingroup zwp_remote_shell_v1_iface
267 */ 284 */
268 static inline int 285 static inline int
269 zwp_remote_shell_v1_add_listener(struct zwp_remote_shell_v1 *zwp_remote_shell_v1 , 286 zwp_remote_shell_v1_add_listener(struct zwp_remote_shell_v1 *zwp_remote_shell_v1 ,
270 const struct zwp_remote_shell_v1_listener *list ener, void *data) 287 const struct zwp_remote_shell_v1_listener *list ener, void *data)
271 { 288 {
272 return wl_proxy_add_listener((struct wl_proxy *) zwp_remote_shell_v1, 289 return wl_proxy_add_listener((struct wl_proxy *) zwp_remote_shell_v1,
(...skipping 249 matching lines...) Expand 10 before | Expand all | Expand 10 after
522 #define ZWP_REMOTE_SURFACE_V1_MINIMIZE 6 539 #define ZWP_REMOTE_SURFACE_V1_MINIMIZE 6
523 #define ZWP_REMOTE_SURFACE_V1_RESTORE 7 540 #define ZWP_REMOTE_SURFACE_V1_RESTORE 7
524 #define ZWP_REMOTE_SURFACE_V1_PIN 8 541 #define ZWP_REMOTE_SURFACE_V1_PIN 8
525 #define ZWP_REMOTE_SURFACE_V1_UNPIN 9 542 #define ZWP_REMOTE_SURFACE_V1_UNPIN 9
526 #define ZWP_REMOTE_SURFACE_V1_UNFULLSCREEN 10 543 #define ZWP_REMOTE_SURFACE_V1_UNFULLSCREEN 10
527 #define ZWP_REMOTE_SURFACE_V1_SET_RECTANGULAR_SHADOW 11 544 #define ZWP_REMOTE_SURFACE_V1_SET_RECTANGULAR_SHADOW 11
528 #define ZWP_REMOTE_SURFACE_V1_SET_TITLE 12 545 #define ZWP_REMOTE_SURFACE_V1_SET_TITLE 12
529 #define ZWP_REMOTE_SURFACE_V1_SET_TOP_INSET 13 546 #define ZWP_REMOTE_SURFACE_V1_SET_TOP_INSET 13
530 #define ZWP_REMOTE_SURFACE_V1_SET_SYSTEM_MODAL 14 547 #define ZWP_REMOTE_SURFACE_V1_SET_SYSTEM_MODAL 14
531 #define ZWP_REMOTE_SURFACE_V1_UNSET_SYSTEM_MODAL 15 548 #define ZWP_REMOTE_SURFACE_V1_UNSET_SYSTEM_MODAL 15
549 #define ZWP_REMOTE_SURFACE_V1_SET_RECTANGULAR_SHADOW_BACKGROUND_OPACITY 16
532 550
533 /** 551 /**
534 * @ingroup iface_zwp_remote_surface_v1 552 * @ingroup iface_zwp_remote_surface_v1
535 */ 553 */
536 #define ZWP_REMOTE_SURFACE_V1_DESTROY_SINCE_VERSION 1 554 #define ZWP_REMOTE_SURFACE_V1_DESTROY_SINCE_VERSION 1
537 /** 555 /**
538 * @ingroup iface_zwp_remote_surface_v1 556 * @ingroup iface_zwp_remote_surface_v1
539 */ 557 */
540 #define ZWP_REMOTE_SURFACE_V1_SET_APP_ID_SINCE_VERSION 1 558 #define ZWP_REMOTE_SURFACE_V1_SET_APP_ID_SINCE_VERSION 1
541 /** 559 /**
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
587 */ 605 */
588 #define ZWP_REMOTE_SURFACE_V1_SET_TOP_INSET_SINCE_VERSION 5 606 #define ZWP_REMOTE_SURFACE_V1_SET_TOP_INSET_SINCE_VERSION 5
589 /** 607 /**
590 * @ingroup iface_zwp_remote_surface_v1 608 * @ingroup iface_zwp_remote_surface_v1
591 */ 609 */
592 #define ZWP_REMOTE_SURFACE_V1_SET_SYSTEM_MODAL_SINCE_VERSION 8 610 #define ZWP_REMOTE_SURFACE_V1_SET_SYSTEM_MODAL_SINCE_VERSION 8
593 /** 611 /**
594 * @ingroup iface_zwp_remote_surface_v1 612 * @ingroup iface_zwp_remote_surface_v1
595 */ 613 */
596 #define ZWP_REMOTE_SURFACE_V1_UNSET_SYSTEM_MODAL_SINCE_VERSION 8 614 #define ZWP_REMOTE_SURFACE_V1_UNSET_SYSTEM_MODAL_SINCE_VERSION 8
615 /**
616 * @ingroup iface_zwp_remote_surface_v1
617 */
618 #define ZWP_REMOTE_SURFACE_V1_SET_RECTANGULAR_SHADOW_BACKGROUND_OPACITY_SINCE_VE RSION 9
597 619
598 /** @ingroup iface_zwp_remote_surface_v1 */ 620 /** @ingroup iface_zwp_remote_surface_v1 */
599 static inline void 621 static inline void
600 zwp_remote_surface_v1_set_user_data(struct zwp_remote_surface_v1 *zwp_remote_sur face_v1, void *user_data) 622 zwp_remote_surface_v1_set_user_data(struct zwp_remote_surface_v1 *zwp_remote_sur face_v1, void *user_data)
601 { 623 {
602 wl_proxy_set_user_data((struct wl_proxy *) zwp_remote_surface_v1, user_d ata); 624 wl_proxy_set_user_data((struct wl_proxy *) zwp_remote_surface_v1, user_d ata);
603 } 625 }
604 626
605 /** @ingroup iface_zwp_remote_surface_v1 */ 627 /** @ingroup iface_zwp_remote_surface_v1 */
606 static inline void * 628 static inline void *
(...skipping 269 matching lines...) Expand 10 before | Expand all | Expand 10 after
876 * 898 *
877 * Suggests a surface should become non system modal. 899 * Suggests a surface should become non system modal.
878 */ 900 */
879 static inline void 901 static inline void
880 zwp_remote_surface_v1_unset_system_modal(struct zwp_remote_surface_v1 *zwp_remot e_surface_v1) 902 zwp_remote_surface_v1_unset_system_modal(struct zwp_remote_surface_v1 *zwp_remot e_surface_v1)
881 { 903 {
882 wl_proxy_marshal((struct wl_proxy *) zwp_remote_surface_v1, 904 wl_proxy_marshal((struct wl_proxy *) zwp_remote_surface_v1,
883 ZWP_REMOTE_SURFACE_V1_UNSET_SYSTEM_MODAL); 905 ZWP_REMOTE_SURFACE_V1_UNSET_SYSTEM_MODAL);
884 } 906 }
885 907
908 /**
909 * @ingroup iface_zwp_remote_surface_v1
910 *
911 * Suggests the window's background opacity when the shadow is requested.
912 */
913 static inline void
914 zwp_remote_surface_v1_set_rectangular_shadow_background_opacity(struct zwp_remot e_surface_v1 *zwp_remote_surface_v1, wl_fixed_t opacity)
915 {
916 wl_proxy_marshal((struct wl_proxy *) zwp_remote_surface_v1,
917 ZWP_REMOTE_SURFACE_V1_SET_RECTANGULAR_SHADOW_BACKGROUND _OPACITY, opacity);
918 }
919
886 #define ZWP_NOTIFICATION_SURFACE_V1_DESTROY 0 920 #define ZWP_NOTIFICATION_SURFACE_V1_DESTROY 0
887 921
888 /** 922 /**
889 * @ingroup iface_zwp_notification_surface_v1 923 * @ingroup iface_zwp_notification_surface_v1
890 */ 924 */
891 #define ZWP_NOTIFICATION_SURFACE_V1_DESTROY_SINCE_VERSION 1 925 #define ZWP_NOTIFICATION_SURFACE_V1_DESTROY_SINCE_VERSION 1
892 926
893 /** @ingroup iface_zwp_notification_surface_v1 */ 927 /** @ingroup iface_zwp_notification_surface_v1 */
894 static inline void 928 static inline void
895 zwp_notification_surface_v1_set_user_data(struct zwp_notification_surface_v1 *zw p_notification_surface_v1, void *user_data) 929 zwp_notification_surface_v1_set_user_data(struct zwp_notification_surface_v1 *zw p_notification_surface_v1, void *user_data)
(...skipping 26 matching lines...) Expand all
922 ZWP_NOTIFICATION_SURFACE_V1_DESTROY); 956 ZWP_NOTIFICATION_SURFACE_V1_DESTROY);
923 957
924 wl_proxy_destroy((struct wl_proxy *) zwp_notification_surface_v1); 958 wl_proxy_destroy((struct wl_proxy *) zwp_notification_surface_v1);
925 } 959 }
926 960
927 #ifdef __cplusplus 961 #ifdef __cplusplus
928 } 962 }
929 #endif 963 #endif
930 964
931 #endif 965 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698