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

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

Issue 2777373002: Add set_autohide_systemui to wayland protocol (Closed)
Patch Set: Add set_systemui_visibility to wayland Created 3 years, 8 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 211 matching lines...) Expand 10 before | Expand all | Expand 10 after
222 * multiple windows 222 * multiple windows
223 */ 223 */
224 ZCR_REMOTE_SHELL_V1_LAYOUT_MODE_WINDOWED = 1, 224 ZCR_REMOTE_SHELL_V1_LAYOUT_MODE_WINDOWED = 1,
225 /** 225 /**
226 * restricted mode for tablet 226 * restricted mode for tablet
227 */ 227 */
228 ZCR_REMOTE_SHELL_V1_LAYOUT_MODE_TABLET = 2, 228 ZCR_REMOTE_SHELL_V1_LAYOUT_MODE_TABLET = 2,
229 }; 229 };
230 #endif /* ZCR_REMOTE_SHELL_V1_LAYOUT_MODE_ENUM */ 230 #endif /* ZCR_REMOTE_SHELL_V1_LAYOUT_MODE_ENUM */
231 231
232 #ifndef ZCR_REMOTE_SURFACE_V1_SYSTEMUI_VISIBILITY_STATE_ENUM
233 #define ZCR_REMOTE_SURFACE_V1_SYSTEMUI_VISIBILITY_STATE_ENUM
234 /**
235 * @ingroup iface_zcr_remote_surface_v1
236 * systemui visibility behavior
237 *
238 * Determine the visibility behavior of the system UI.
239 */
240 enum zcr_remote_surface_v1_systemui_visibility_state {
241 /**
242 * systemui is visible
243 */
244 ZCR_REMOTE_SURFACE_V1_SYSTEMUI_VISIBILITY_STATE_VISIBLE = 1,
245 /**
246 * systemui autohides and is not sticky
247 */
248 ZCR_REMOTE_SURFACE_V1_SYSTEMUI_VISIBILITY_STATE_AUTOHIDE_NON_STICKY = 2,
249 /**
250 * systemui autohides and is sticky
251 */
252 ZCR_REMOTE_SURFACE_V1_SYSTEMUI_VISIBILITY_STATE_AUTOHIDE_STICKY = 3,
253 };
254 #endif /* ZCR_REMOTE_SURFACE_V1_SYSTEMUI_VISIBILITY_STATE_ENUM */
255
232 /** 256 /**
233 * @ingroup iface_zcr_remote_shell_v1 257 * @ingroup iface_zcr_remote_shell_v1
234 * @struct zcr_remote_shell_v1_listener 258 * @struct zcr_remote_shell_v1_listener
235 */ 259 */
236 struct zcr_remote_shell_v1_listener { 260 struct zcr_remote_shell_v1_listener {
237 /** 261 /**
238 * activated surface changed 262 * activated surface changed
239 * 263 *
240 * Notifies client that the activated surface changed. 264 * Notifies client that the activated surface changed.
241 */ 265 */
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
312 * @ingroup iface_zcr_remote_shell_v1 336 * @ingroup iface_zcr_remote_shell_v1
313 */ 337 */
314 #define ZCR_REMOTE_SHELL_V1_ACTIVATED_SINCE_VERSION 1 338 #define ZCR_REMOTE_SHELL_V1_ACTIVATED_SINCE_VERSION 1
315 /** 339 /**
316 * @ingroup iface_zcr_remote_shell_v1 340 * @ingroup iface_zcr_remote_shell_v1
317 */ 341 */
318 #define ZCR_REMOTE_SHELL_V1_CONFIGURATION_CHANGED_SINCE_VERSION 1 342 #define ZCR_REMOTE_SHELL_V1_CONFIGURATION_CHANGED_SINCE_VERSION 1
319 /** 343 /**
320 * @ingroup iface_zcr_remote_shell_v1 344 * @ingroup iface_zcr_remote_shell_v1
321 */ 345 */
322 #define ZCR_REMOTE_SHELL_V1_WORKSPACE_SINCE_VERSION 3 346 #define ZCR_REMOTE_SHELL_V1_WORKSPACE_SINCE_VERSION 4
323 /** 347 /**
324 * @ingroup iface_zcr_remote_shell_v1 348 * @ingroup iface_zcr_remote_shell_v1
325 */ 349 */
326 #define ZCR_REMOTE_SHELL_V1_CONFIGURE_SINCE_VERSION 3 350 #define ZCR_REMOTE_SHELL_V1_CONFIGURE_SINCE_VERSION 4
327 351
328 /** 352 /**
329 * @ingroup iface_zcr_remote_shell_v1 353 * @ingroup iface_zcr_remote_shell_v1
330 */ 354 */
331 #define ZCR_REMOTE_SHELL_V1_DESTROY_SINCE_VERSION 1 355 #define ZCR_REMOTE_SHELL_V1_DESTROY_SINCE_VERSION 1
332 /** 356 /**
333 * @ingroup iface_zcr_remote_shell_v1 357 * @ingroup iface_zcr_remote_shell_v1
334 */ 358 */
335 #define ZCR_REMOTE_SHELL_V1_GET_REMOTE_SURFACE_SINCE_VERSION 1 359 #define ZCR_REMOTE_SHELL_V1_GET_REMOTE_SURFACE_SINCE_VERSION 1
336 /** 360 /**
(...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after
515 * @ingroup iface_zcr_remote_surface_v1 539 * @ingroup iface_zcr_remote_surface_v1
516 */ 540 */
517 #define ZCR_REMOTE_SURFACE_V1_CLOSE_SINCE_VERSION 1 541 #define ZCR_REMOTE_SURFACE_V1_CLOSE_SINCE_VERSION 1
518 /** 542 /**
519 * @ingroup iface_zcr_remote_surface_v1 543 * @ingroup iface_zcr_remote_surface_v1
520 */ 544 */
521 #define ZCR_REMOTE_SURFACE_V1_STATE_TYPE_CHANGED_SINCE_VERSION 1 545 #define ZCR_REMOTE_SURFACE_V1_STATE_TYPE_CHANGED_SINCE_VERSION 1
522 /** 546 /**
523 * @ingroup iface_zcr_remote_surface_v1 547 * @ingroup iface_zcr_remote_surface_v1
524 */ 548 */
525 #define ZCR_REMOTE_SURFACE_V1_CONFIGURE_SINCE_VERSION 3 549 #define ZCR_REMOTE_SURFACE_V1_CONFIGURE_SINCE_VERSION 4
526 550
527 /** 551 /**
528 * @ingroup iface_zcr_remote_surface_v1 552 * @ingroup iface_zcr_remote_surface_v1
529 */ 553 */
530 #define ZCR_REMOTE_SURFACE_V1_DESTROY_SINCE_VERSION 1 554 #define ZCR_REMOTE_SURFACE_V1_DESTROY_SINCE_VERSION 1
531 /** 555 /**
532 * @ingroup iface_zcr_remote_surface_v1 556 * @ingroup iface_zcr_remote_surface_v1
533 */ 557 */
534 #define ZCR_REMOTE_SURFACE_V1_SET_APP_ID_SINCE_VERSION 1 558 #define ZCR_REMOTE_SURFACE_V1_SET_APP_ID_SINCE_VERSION 1
535 /** 559 /**
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
596 * @ingroup iface_zcr_remote_surface_v1 620 * @ingroup iface_zcr_remote_surface_v1
597 */ 621 */
598 #define ZCR_REMOTE_SURFACE_V1_UNSET_SYSTEM_MODAL_SINCE_VERSION 1 622 #define ZCR_REMOTE_SURFACE_V1_UNSET_SYSTEM_MODAL_SINCE_VERSION 1
599 /** 623 /**
600 * @ingroup iface_zcr_remote_surface_v1 624 * @ingroup iface_zcr_remote_surface_v1
601 */ 625 */
602 #define ZCR_REMOTE_SURFACE_V1_SET_RECTANGULAR_SURFACE_SHADOW_SINCE_VERSION 2 626 #define ZCR_REMOTE_SURFACE_V1_SET_RECTANGULAR_SURFACE_SHADOW_SINCE_VERSION 2
603 /** 627 /**
604 * @ingroup iface_zcr_remote_surface_v1 628 * @ingroup iface_zcr_remote_surface_v1
605 */ 629 */
606 #define ZCR_REMOTE_SURFACE_V1_ACK_CONFIGURE_SINCE_VERSION 3 630 #define ZCR_REMOTE_SURFACE_V1_SET_SYSTEMUI_VISIBILITY_SINCE_VERSION 3
607 /** 631 /**
608 * @ingroup iface_zcr_remote_surface_v1 632 * @ingroup iface_zcr_remote_surface_v1
609 */ 633 */
610 #define ZCR_REMOTE_SURFACE_V1_MOVE_SINCE_VERSION 3 634 #define ZCR_REMOTE_SURFACE_V1_ACK_CONFIGURE_SINCE_VERSION 4
635 /**
636 * @ingroup iface_zcr_remote_surface_v1
637 */
638 #define ZCR_REMOTE_SURFACE_V1_MOVE_SINCE_VERSION 4
611 639
612 /** @ingroup iface_zcr_remote_surface_v1 */ 640 /** @ingroup iface_zcr_remote_surface_v1 */
613 static inline void 641 static inline void
614 zcr_remote_surface_v1_set_user_data(struct zcr_remote_surface_v1 *zcr_remote_sur face_v1, void *user_data) 642 zcr_remote_surface_v1_set_user_data(struct zcr_remote_surface_v1 *zcr_remote_sur face_v1, void *user_data)
615 { 643 {
616 wl_proxy_set_user_data((struct wl_proxy *) zcr_remote_surface_v1, user_d ata); 644 wl_proxy_set_user_data((struct wl_proxy *) zcr_remote_surface_v1, user_d ata);
617 } 645 }
618 646
619 /** @ingroup iface_zcr_remote_surface_v1 */ 647 /** @ingroup iface_zcr_remote_surface_v1 */
620 static inline void * 648 static inline void *
(...skipping 316 matching lines...) Expand 10 before | Expand all | Expand 10 after
937 static inline void 965 static inline void
938 zcr_remote_surface_v1_set_rectangular_surface_shadow(struct zcr_remote_surface_v 1 *zcr_remote_surface_v1, int32_t x, int32_t y, int32_t width, int32_t height) 966 zcr_remote_surface_v1_set_rectangular_surface_shadow(struct zcr_remote_surface_v 1 *zcr_remote_surface_v1, int32_t x, int32_t y, int32_t width, int32_t height)
939 { 967 {
940 wl_proxy_marshal((struct wl_proxy *) zcr_remote_surface_v1, 968 wl_proxy_marshal((struct wl_proxy *) zcr_remote_surface_v1,
941 ZCR_REMOTE_SURFACE_V1_SET_RECTANGULAR_SURFACE_SHADOW, x , y, width, height); 969 ZCR_REMOTE_SURFACE_V1_SET_RECTANGULAR_SURFACE_SHADOW, x , y, width, height);
942 } 970 }
943 971
944 /** 972 /**
945 * @ingroup iface_zcr_remote_surface_v1 973 * @ingroup iface_zcr_remote_surface_v1
946 * 974 *
975 * Requests how the surface will change the system UI visibility when it is made
976 * active.
977 *
978 static inline void
979 zcr_remote_surface_v1_set_systemui_visibility(struct zcr_remote_surface_v1
980 *zcr_remote_surface_v1, uint32_t visibility)
981 {
982 wl_proxy_marshal((struct wl_proxy *) zcr_remote_surface_v1,
983 ZCR_REMOTE_SURFACE_V1_SET_SYSTEM_UI_VISIBILITY, visibility);
984 }
985
986 /**
987 * @ingroup iface_zcr_remote_surface_v1
988 *
947 * When a configure event is received, if a client commits the 989 * When a configure event is received, if a client commits the
948 * surface in response to the configure event, then the client 990 * surface in response to the configure event, then the client
949 * must make an ack_configure request sometime before the commit 991 * must make an ack_configure request sometime before the commit
950 * request, passing along the serial of the configure event. 992 * request, passing along the serial of the configure event.
951 * 993 *
952 * For instance, the compositor might use this information during display 994 * For instance, the compositor might use this information during display
953 * configuration to change its coordinate space for set_window_geometry 995 * configuration to change its coordinate space for set_window_geometry
954 * requests only when the client has switched to the new coordinate space. 996 * requests only when the client has switched to the new coordinate space.
955 * 997 *
956 * If the client receives multiple configure events before it 998 * If the client receives multiple configure events before it
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
1032 ZCR_NOTIFICATION_SURFACE_V1_DESTROY); 1074 ZCR_NOTIFICATION_SURFACE_V1_DESTROY);
1033 1075
1034 wl_proxy_destroy((struct wl_proxy *) zcr_notification_surface_v1); 1076 wl_proxy_destroy((struct wl_proxy *) zcr_notification_surface_v1);
1035 } 1077 }
1036 1078
1037 #ifdef __cplusplus 1079 #ifdef __cplusplus
1038 } 1080 }
1039 #endif 1081 #endif
1040 1082
1041 #endif 1083 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698