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

Side by Side Diff: third_party/wayland-protocols/include/protocol/remote-shell-unstable-v1-server-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_SERVER_PROTOCOL_H 3 #ifndef REMOTE_SHELL_UNSTABLE_V1_SERVER_PROTOCOL_H
4 #define REMOTE_SHELL_UNSTABLE_V1_SERVER_PROTOCOL_H 4 #define REMOTE_SHELL_UNSTABLE_V1_SERVER_PROTOCOL_H
5 5
6 #include <stdint.h> 6 #include <stdint.h>
7 #include <stddef.h> 7 #include <stddef.h>
8 #include "wayland-server.h" 8 #include "wayland-server.h"
9 9
10 #ifdef __cplusplus 10 #ifdef __cplusplus
(...skipping 214 matching lines...) Expand 10 before | Expand all | Expand 10 after
225 * multiple windows 225 * multiple windows
226 */ 226 */
227 ZCR_REMOTE_SHELL_V1_LAYOUT_MODE_WINDOWED = 1, 227 ZCR_REMOTE_SHELL_V1_LAYOUT_MODE_WINDOWED = 1,
228 /** 228 /**
229 * restricted mode for tablet 229 * restricted mode for tablet
230 */ 230 */
231 ZCR_REMOTE_SHELL_V1_LAYOUT_MODE_TABLET = 2, 231 ZCR_REMOTE_SHELL_V1_LAYOUT_MODE_TABLET = 2,
232 }; 232 };
233 #endif /* ZCR_REMOTE_SHELL_V1_LAYOUT_MODE_ENUM */ 233 #endif /* ZCR_REMOTE_SHELL_V1_LAYOUT_MODE_ENUM */
234 234
235 #ifndef ZCR_REMOTE_SURFACE_V1_SYSTEMUI_VISIBILITY_STATE_ENUM
236 #define ZCR_REMOTE_SURFACE_V1_SYSTEMUI_VISIBILITY_STATE_ENUM
237 /**
238 * @ingroup iface_zcr_remote_surface_v1
239 * systemui visibility behavior
240 *
241 * Determine the visibility of the system UI.
242 */
243 enum zcr_remote_surface_v1_systemui_visibility_state {
244 /**
245 * systemui is visible
246 */
247 ZCR_REMOTE_SURFACE_V1_SYSTEMUI_VISIBILITY_STATE_VISIBLE = 1,
248 /**
249 * systemui autohides and is not sticky
250 */
251 ZCR_REMOTE_SURFACE_V1_SYSTEMUI_VISIBILITY_STATE_AUTOHIDE_NON_STICKY = 2,
252 /**
253 * systemui autohides and is sticky
254 */
255 ZCR_REMOTE_SURFACE_V1_SYSTEMUI_VISIBILITY_STATE_AUTOHIDE_STICKY = 3,
256 };
257 #endif /* ZCR_REMOTE_SURFACE_V1_SYSTEMUI_VISIBILITY_STATE_ENUM */
258
235 /** 259 /**
236 * @ingroup iface_zcr_remote_shell_v1 260 * @ingroup iface_zcr_remote_shell_v1
237 * @struct zcr_remote_shell_v1_interface 261 * @struct zcr_remote_shell_v1_interface
238 */ 262 */
239 struct zcr_remote_shell_v1_interface { 263 struct zcr_remote_shell_v1_interface {
240 /** 264 /**
241 * destroy remote_shell 265 * destroy remote_shell
242 * 266 *
243 * Destroy this remote_shell object. 267 * Destroy this remote_shell object.
244 * 268 *
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
288 * @ingroup iface_zcr_remote_shell_v1 312 * @ingroup iface_zcr_remote_shell_v1
289 */ 313 */
290 #define ZCR_REMOTE_SHELL_V1_ACTIVATED_SINCE_VERSION 1 314 #define ZCR_REMOTE_SHELL_V1_ACTIVATED_SINCE_VERSION 1
291 /** 315 /**
292 * @ingroup iface_zcr_remote_shell_v1 316 * @ingroup iface_zcr_remote_shell_v1
293 */ 317 */
294 #define ZCR_REMOTE_SHELL_V1_CONFIGURATION_CHANGED_SINCE_VERSION 1 318 #define ZCR_REMOTE_SHELL_V1_CONFIGURATION_CHANGED_SINCE_VERSION 1
295 /** 319 /**
296 * @ingroup iface_zcr_remote_shell_v1 320 * @ingroup iface_zcr_remote_shell_v1
297 */ 321 */
298 #define ZCR_REMOTE_SHELL_V1_WORKSPACE_SINCE_VERSION 3 322 #define ZCR_REMOTE_SHELL_V1_WORKSPACE_SINCE_VERSION 4
299 /** 323 /**
300 * @ingroup iface_zcr_remote_shell_v1 324 * @ingroup iface_zcr_remote_shell_v1
301 */ 325 */
302 #define ZCR_REMOTE_SHELL_V1_CONFIGURE_SINCE_VERSION 3 326 #define ZCR_REMOTE_SHELL_V1_CONFIGURE_SINCE_VERSION 4
303 327
304 /** 328 /**
305 * @ingroup iface_zcr_remote_shell_v1 329 * @ingroup iface_zcr_remote_shell_v1
306 */ 330 */
307 #define ZCR_REMOTE_SHELL_V1_DESTROY_SINCE_VERSION 1 331 #define ZCR_REMOTE_SHELL_V1_DESTROY_SINCE_VERSION 1
308 /** 332 /**
309 * @ingroup iface_zcr_remote_shell_v1 333 * @ingroup iface_zcr_remote_shell_v1
310 */ 334 */
311 #define ZCR_REMOTE_SHELL_V1_GET_REMOTE_SURFACE_SINCE_VERSION 1 335 #define ZCR_REMOTE_SHELL_V1_GET_REMOTE_SURFACE_SINCE_VERSION 1
312 /** 336 /**
(...skipping 287 matching lines...) Expand 10 before | Expand all | Expand 10 after
600 * and specifies inner bounds of the shadow. Specifying zero width 624 * and specifies inner bounds of the shadow. Specifying zero width
601 * and height will disable the shadow. 625 * and height will disable the shadow.
602 * @since 2 626 * @since 2
603 */ 627 */
604 void (*set_rectangular_surface_shadow)(struct wl_client *client, 628 void (*set_rectangular_surface_shadow)(struct wl_client *client,
605 struct wl_resource *resource, 629 struct wl_resource *resource,
606 int32_t x, 630 int32_t x,
607 int32_t y, 631 int32_t y,
608 int32_t width, 632 int32_t width,
609 int32_t height); 633 int32_t height);
610 » /** 634
611 » * ack a configure event 635 /**
612 » * 636 * requests the system ui visibility behavior for the surface
613 » * When a configure event is received, if a client commits the 637 *
614 » * surface in response to the configure event, then the client must 638 * Requests how the surface will change the system UI visibility when it
615 » * make an ack_configure request sometime before the commit 639 * is made* active.
616 » * request, passing along the serial of the configure event. 640 *
617 » * 641 * @since 3
618 » * For instance, the compositor might use this information during 642 */
619 » * display configuration to change its coordinate space for 643 void (*set_systemui_visibility)(struct wl_client* client,
620 » * set_window_geometry requests only when the client has switched 644 struct wl_resource* resource,
621 » * to the new coordinate space. 645 uint32_t visibility);
622 » * 646
623 » * If the client receives multiple configure events before it can 647 /**
624 » * respond to one, it only has to ack the last configure event. 648 * ack a configure event
625 » * 649 *
626 » * A client is not required to commit immediately after sending an 650 * When a configure event is received, if a client commits the
627 » * ack_configure request - it may even ack_configure several times 651 * surface in response to the configure event, then the client must
628 » * before its next surface commit. 652 * make an ack_configure request sometime before the commit
629 » * 653 * request, passing along the serial of the configure event.
630 » * A client may send multiple ack_configure requests before 654 *
631 » * committing, but only the last request sent before a commit 655 * For instance, the compositor might use this information during
632 » * indicates which configure event the client really is responding 656 * display configuration to change its coordinate space for
633 » * to. 657 * set_window_geometry requests only when the client has switched
634 » * @param serial the serial from the configure event 658 * to the new coordinate space.
635 » * @since 3 659 *
636 » */ 660 * If the client receives multiple configure events before it can
637 » void (*ack_configure)(struct wl_client *client, 661 * respond to one, it only has to ack the last configure event.
638 » » » struct wl_resource *resource, 662 *
639 » » » uint32_t serial); 663 * A client is not required to commit immediately after sending an
640 » /** 664 * ack_configure request - it may even ack_configure several times
641 » * start an interactive move 665 * before its next surface commit.
642 » * 666 *
643 » * Start an interactive, user-driven move of the surface. 667 * A client may send multiple ack_configure requests before
644 » * 668 * committing, but only the last request sent before a commit
645 » * The compositor responds to this request with a configure event 669 * indicates which configure event the client really is responding
646 » * that transitions to the "moving" state. The client must only 670 * to.
647 » * initiate motion after acknowledging the state change. The 671 * @param serial the serial from the configure event
648 » * compositor can assume that subsequent set_window_geometry 672 * @since 4
649 » * requests are position updates until the next state transition is 673 */
650 » * acknowledged. 674 void (*ack_configure)(struct wl_client* client,
651 » * 675 struct wl_resource* resource,
652 » * The compositor may ignore move requests depending on the state 676 uint32_t serial);
653 » * of the surface, e.g. fullscreen or maximized. 677 /**
654 » * @since 3 678 * start an interactive move
655 » */ 679 *
656 » void (*move)(struct wl_client *client, 680 * Start an interactive, user-driven move of the surface.
657 » » struct wl_resource *resource); 681 *
682 * The compositor responds to this request with a configure event
683 * that transitions to the "moving" state. The client must only
684 * initiate motion after acknowledging the state change. The
685 * compositor can assume that subsequent set_window_geometry
686 * requests are position updates until the next state transition is
687 * acknowledged.
688 *
689 * The compositor may ignore move requests depending on the state
690 * of the surface, e.g. fullscreen or maximized.
691 * @since 4
692 */
693 void (*move)(struct wl_client* client, struct wl_resource* resource);
658 }; 694 };
659 695
660 #define ZCR_REMOTE_SURFACE_V1_CLOSE 0 696 #define ZCR_REMOTE_SURFACE_V1_CLOSE 0
661 #define ZCR_REMOTE_SURFACE_V1_STATE_TYPE_CHANGED 1 697 #define ZCR_REMOTE_SURFACE_V1_STATE_TYPE_CHANGED 1
662 #define ZCR_REMOTE_SURFACE_V1_CONFIGURE 2 698 #define ZCR_REMOTE_SURFACE_V1_CONFIGURE 2
663 699
664 /** 700 /**
665 * @ingroup iface_zcr_remote_surface_v1 701 * @ingroup iface_zcr_remote_surface_v1
666 */ 702 */
667 #define ZCR_REMOTE_SURFACE_V1_CLOSE_SINCE_VERSION 1 703 #define ZCR_REMOTE_SURFACE_V1_CLOSE_SINCE_VERSION 1
668 /** 704 /**
669 * @ingroup iface_zcr_remote_surface_v1 705 * @ingroup iface_zcr_remote_surface_v1
670 */ 706 */
671 #define ZCR_REMOTE_SURFACE_V1_STATE_TYPE_CHANGED_SINCE_VERSION 1 707 #define ZCR_REMOTE_SURFACE_V1_STATE_TYPE_CHANGED_SINCE_VERSION 1
672 /** 708 /**
673 * @ingroup iface_zcr_remote_surface_v1 709 * @ingroup iface_zcr_remote_surface_v1
674 */ 710 */
675 #define ZCR_REMOTE_SURFACE_V1_CONFIGURE_SINCE_VERSION 3 711 #define ZCR_REMOTE_SURFACE_V1_CONFIGURE_SINCE_VERSION 4
676 712
677 /** 713 /**
678 * @ingroup iface_zcr_remote_surface_v1 714 * @ingroup iface_zcr_remote_surface_v1
679 */ 715 */
680 #define ZCR_REMOTE_SURFACE_V1_DESTROY_SINCE_VERSION 1 716 #define ZCR_REMOTE_SURFACE_V1_DESTROY_SINCE_VERSION 1
681 /** 717 /**
682 * @ingroup iface_zcr_remote_surface_v1 718 * @ingroup iface_zcr_remote_surface_v1
683 */ 719 */
684 #define ZCR_REMOTE_SURFACE_V1_SET_APP_ID_SINCE_VERSION 1 720 #define ZCR_REMOTE_SURFACE_V1_SET_APP_ID_SINCE_VERSION 1
685 /** 721 /**
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
746 * @ingroup iface_zcr_remote_surface_v1 782 * @ingroup iface_zcr_remote_surface_v1
747 */ 783 */
748 #define ZCR_REMOTE_SURFACE_V1_UNSET_SYSTEM_MODAL_SINCE_VERSION 1 784 #define ZCR_REMOTE_SURFACE_V1_UNSET_SYSTEM_MODAL_SINCE_VERSION 1
749 /** 785 /**
750 * @ingroup iface_zcr_remote_surface_v1 786 * @ingroup iface_zcr_remote_surface_v1
751 */ 787 */
752 #define ZCR_REMOTE_SURFACE_V1_SET_RECTANGULAR_SURFACE_SHADOW_SINCE_VERSION 2 788 #define ZCR_REMOTE_SURFACE_V1_SET_RECTANGULAR_SURFACE_SHADOW_SINCE_VERSION 2
753 /** 789 /**
754 * @ingroup iface_zcr_remote_surface_v1 790 * @ingroup iface_zcr_remote_surface_v1
755 */ 791 */
756 #define ZCR_REMOTE_SURFACE_V1_ACK_CONFIGURE_SINCE_VERSION 3 792 #define ZCR_REMOTE_SURFACE_V1_SET_SYSTEMUI_VISIBILITY_SINCE_VERSION 3
757 /** 793 /**
758 * @ingroup iface_zcr_remote_surface_v1 794 * @ingroup iface_zcr_remote_surface_v1
759 */ 795 */
760 #define ZCR_REMOTE_SURFACE_V1_MOVE_SINCE_VERSION 3 796 #define ZCR_REMOTE_SURFACE_V1_ACK_CONFIGURE_SINCE_VERSION 4
797 /**
798 * @ingroup iface_zcr_remote_surface_v1
799 */
800 #define ZCR_REMOTE_SURFACE_V1_MOVE_SINCE_VERSION 4
761 801
762 /** 802 /**
763 * @ingroup iface_zcr_remote_surface_v1 803 * @ingroup iface_zcr_remote_surface_v1
764 * Sends an close event to the client owning the resource. 804 * Sends an close event to the client owning the resource.
765 * @param resource_ The client's resource 805 * @param resource_ The client's resource
766 */ 806 */
767 static inline void 807 static inline void
768 zcr_remote_surface_v1_send_close(struct wl_resource *resource_) 808 zcr_remote_surface_v1_send_close(struct wl_resource *resource_)
769 { 809 {
770 wl_resource_post_event(resource_, ZCR_REMOTE_SURFACE_V1_CLOSE); 810 wl_resource_post_event(resource_, ZCR_REMOTE_SURFACE_V1_CLOSE);
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
810 /** 850 /**
811 * @ingroup iface_zcr_notification_surface_v1 851 * @ingroup iface_zcr_notification_surface_v1
812 */ 852 */
813 #define ZCR_NOTIFICATION_SURFACE_V1_DESTROY_SINCE_VERSION 1 853 #define ZCR_NOTIFICATION_SURFACE_V1_DESTROY_SINCE_VERSION 1
814 854
815 #ifdef __cplusplus 855 #ifdef __cplusplus
816 } 856 }
817 #endif 857 #endif
818 858
819 #endif 859 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698