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

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

Issue 2785283003: Add set_autohide_systemui to wayland protocol (Closed)
Patch Set: 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.12.90 */
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
11 extern "C" { 11 extern "C" {
(...skipping 307 matching lines...) Expand 10 before | Expand all | Expand 10 after
319 * @ingroup iface_zcr_remote_shell_v1 319 * @ingroup iface_zcr_remote_shell_v1
320 * Sends an configuration_changed event to the client owning the resource. 320 * Sends an configuration_changed event to the client owning the resource.
321 * @param resource_ The client's resource 321 * @param resource_ The client's resource
322 */ 322 */
323 static inline void 323 static inline void
324 zcr_remote_shell_v1_send_configuration_changed(struct wl_resource *resource_, in t32_t width, int32_t height, int32_t transform, wl_fixed_t scale_factor, int32_t work_area_inset_left, int32_t work_area_inset_top, int32_t work_area_inset_righ t, int32_t work_area_inset_bottom, uint32_t layout_mode) 324 zcr_remote_shell_v1_send_configuration_changed(struct wl_resource *resource_, in t32_t width, int32_t height, int32_t transform, wl_fixed_t scale_factor, int32_t work_area_inset_left, int32_t work_area_inset_top, int32_t work_area_inset_righ t, int32_t work_area_inset_bottom, uint32_t layout_mode)
325 { 325 {
326 wl_resource_post_event(resource_, ZCR_REMOTE_SHELL_V1_CONFIGURATION_CHAN GED, width, height, transform, scale_factor, work_area_inset_left, work_area_ins et_top, work_area_inset_right, work_area_inset_bottom, layout_mode); 326 wl_resource_post_event(resource_, ZCR_REMOTE_SHELL_V1_CONFIGURATION_CHAN GED, width, height, transform, scale_factor, work_area_inset_left, work_area_ins et_top, work_area_inset_right, work_area_inset_bottom, layout_mode);
327 } 327 }
328 328
329 #ifndef ZCR_REMOTE_SURFACE_V1_SYSTEMUI_VISIBILITY_STATE_ENUM
330 #define ZCR_REMOTE_SURFACE_V1_SYSTEMUI_VISIBILITY_STATE_ENUM
331 /**
332 * @ingroup iface_zcr_remote_surface_v1
333 * systemui visibility behavior
334 *
335 * Determine the visibility behavior of the system UI.
336 */
337 enum zcr_remote_surface_v1_systemui_visibility_state {
338 /**
339 * system ui is visible
340 */
341 ZCR_REMOTE_SURFACE_V1_SYSTEMUI_VISIBILITY_STATE_VISIBLE = 1,
342 /**
343 * system ui autohides and is not sticky
344 */
345 ZCR_REMOTE_SURFACE_V1_SYSTEMUI_VISIBILITY_STATE_AUTOHIDE_NON_STICKY = 2,
346 /**
347 * system ui autohides and is sticky
348 */
349 ZCR_REMOTE_SURFACE_V1_SYSTEMUI_VISIBILITY_STATE_AUTOHIDE_STICKY = 3,
350 };
351 #endif /* ZCR_REMOTE_SURFACE_V1_SYSTEMUI_VISIBILITY_STATE_ENUM */
352
329 /** 353 /**
330 * @ingroup iface_zcr_remote_surface_v1 354 * @ingroup iface_zcr_remote_surface_v1
331 * @struct zcr_remote_surface_v1_interface 355 * @struct zcr_remote_surface_v1_interface
332 */ 356 */
333 struct zcr_remote_surface_v1_interface { 357 struct zcr_remote_surface_v1_interface {
334 /** 358 /**
335 * Destroy the remote_surface 359 * Destroy the remote_surface
336 * 360 *
337 * Unmap and destroy the window. The window will be effectively 361 * Unmap and destroy the window. The window will be effectively
338 * hidden from the user's point of view, and all state will be 362 * hidden from the user's point of view, and all state will be
(...skipping 230 matching lines...) Expand 10 before | Expand all | Expand 10 after
569 * and height will disable the shadow. 593 * and height will disable the shadow.
570 * @since 2 594 * @since 2
571 */ 595 */
572 void (*set_rectangular_surface_shadow)(struct wl_client *client, 596 void (*set_rectangular_surface_shadow)(struct wl_client *client,
573 struct wl_resource *resource, 597 struct wl_resource *resource,
574 int32_t x, 598 int32_t x,
575 int32_t y, 599 int32_t y,
576 int32_t width, 600 int32_t width,
577 int32_t height); 601 int32_t height);
578 /** 602 /**
603 * requests the system ui visibility behavior for the surface
604 *
605 * Requests how the surface will change the visibility of the
606 * system UI when it is made active.
607 * @since 3
608 */
609 void (*set_systemui_visibility)(struct wl_client *client,
610 struct wl_resource *resource,
611 uint32_t visibility);
612 /**
579 * ack a configure event 613 * ack a configure event
580 * 614 *
581 * When a configure event is received, if a client commits the 615 * When a configure event is received, if a client commits the
582 * surface in response to the configure event, then the client must 616 * surface in response to the configure event, then the client must
583 * make an ack_configure request sometime before the commit 617 * make an ack_configure request sometime before the commit
584 * request, passing along the serial of the configure event. 618 * request, passing along the serial of the configure event.
585 * 619 *
586 * For instance, the compositor might use this information during 620 * For instance, the compositor might use this information during
587 * display configuration to change its coordinate space for 621 * display configuration to change its coordinate space for
588 * set_window_geometry requests only when the client has switched 622 * set_window_geometry requests only when the client has switched
589 * to the new coordinate space. 623 * to the new coordinate space.
590 * 624 *
591 * If the client receives multiple configure events before it can 625 * If the client receives multiple configure events before it can
592 * respond to one, it only has to ack the last configure event. 626 * respond to one, it only has to ack the last configure event.
593 * 627 *
594 * A client is not required to commit immediately after sending an 628 * A client is not required to commit immediately after sending an
595 * ack_configure request - it may even ack_configure several times 629 * ack_configure request - it may even ack_configure several times
596 * before its next surface commit. 630 * before its next surface commit.
597 * 631 *
598 * A client may send multiple ack_configure requests before 632 * A client may send multiple ack_configure requests before
599 * committing, but only the last request sent before a commit 633 * committing, but only the last request sent before a commit
600 * indicates which configure event the client really is responding 634 * indicates which configure event the client really is responding
601 * to. 635 * to.
602 * @param serial the serial from the configure event 636 * @param serial the serial from the configure event
603 » * @since 3 637 » * @since 4
604 */ 638 */
605 void (*ack_configure)(struct wl_client *client, 639 void (*ack_configure)(struct wl_client *client,
606 struct wl_resource *resource, 640 struct wl_resource *resource,
607 uint32_t serial); 641 uint32_t serial);
608 /** 642 /**
609 * start an interactive move 643 * start an interactive move
610 * 644 *
611 * Start an interactive, user-driven move of the surface. 645 * Start an interactive, user-driven move of the surface.
612 * 646 *
613 * The compositor responds to this request with a configure event 647 * The compositor responds to this request with a configure event
614 * that transitions to the "moving" state. The client must only 648 * that transitions to the "moving" state. The client must only
615 * initiate motion after acknowledging the state change. The 649 * initiate motion after acknowledging the state change. The
616 * compositor can assume that subsequent set_window_geometry 650 * compositor can assume that subsequent set_window_geometry
617 * requests are position updates until the next state transition is 651 * requests are position updates until the next state transition is
618 * acknowledged. 652 * acknowledged.
619 * 653 *
620 * The compositor may ignore move requests depending on the state 654 * The compositor may ignore move requests depending on the state
621 * of the surface, e.g. fullscreen or maximized. 655 * of the surface, e.g. fullscreen or maximized.
622 » * @since 3 656 » * @since 4
623 */ 657 */
624 void (*move)(struct wl_client *client, 658 void (*move)(struct wl_client *client,
625 struct wl_resource *resource); 659 struct wl_resource *resource);
626 }; 660 };
627 661
628 #define ZCR_REMOTE_SURFACE_V1_CLOSE 0 662 #define ZCR_REMOTE_SURFACE_V1_CLOSE 0
629 #define ZCR_REMOTE_SURFACE_V1_STATE_TYPE_CHANGED 1 663 #define ZCR_REMOTE_SURFACE_V1_STATE_TYPE_CHANGED 1
630 #define ZCR_REMOTE_SURFACE_V1_CONFIGURE 2 664 #define ZCR_REMOTE_SURFACE_V1_CONFIGURE 2
631 665
632 /** 666 /**
633 * @ingroup iface_zcr_remote_surface_v1 667 * @ingroup iface_zcr_remote_surface_v1
634 */ 668 */
635 #define ZCR_REMOTE_SURFACE_V1_CLOSE_SINCE_VERSION 1 669 #define ZCR_REMOTE_SURFACE_V1_CLOSE_SINCE_VERSION 1
636 /** 670 /**
637 * @ingroup iface_zcr_remote_surface_v1 671 * @ingroup iface_zcr_remote_surface_v1
638 */ 672 */
639 #define ZCR_REMOTE_SURFACE_V1_STATE_TYPE_CHANGED_SINCE_VERSION 1 673 #define ZCR_REMOTE_SURFACE_V1_STATE_TYPE_CHANGED_SINCE_VERSION 1
640 /** 674 /**
641 * @ingroup iface_zcr_remote_surface_v1 675 * @ingroup iface_zcr_remote_surface_v1
642 */ 676 */
643 #define ZCR_REMOTE_SURFACE_V1_CONFIGURE_SINCE_VERSION 3 677 #define ZCR_REMOTE_SURFACE_V1_CONFIGURE_SINCE_VERSION 4
644 678
645 /** 679 /**
646 * @ingroup iface_zcr_remote_surface_v1 680 * @ingroup iface_zcr_remote_surface_v1
647 */ 681 */
648 #define ZCR_REMOTE_SURFACE_V1_DESTROY_SINCE_VERSION 1 682 #define ZCR_REMOTE_SURFACE_V1_DESTROY_SINCE_VERSION 1
649 /** 683 /**
650 * @ingroup iface_zcr_remote_surface_v1 684 * @ingroup iface_zcr_remote_surface_v1
651 */ 685 */
652 #define ZCR_REMOTE_SURFACE_V1_SET_APP_ID_SINCE_VERSION 1 686 #define ZCR_REMOTE_SURFACE_V1_SET_APP_ID_SINCE_VERSION 1
653 /** 687 /**
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
714 * @ingroup iface_zcr_remote_surface_v1 748 * @ingroup iface_zcr_remote_surface_v1
715 */ 749 */
716 #define ZCR_REMOTE_SURFACE_V1_UNSET_SYSTEM_MODAL_SINCE_VERSION 1 750 #define ZCR_REMOTE_SURFACE_V1_UNSET_SYSTEM_MODAL_SINCE_VERSION 1
717 /** 751 /**
718 * @ingroup iface_zcr_remote_surface_v1 752 * @ingroup iface_zcr_remote_surface_v1
719 */ 753 */
720 #define ZCR_REMOTE_SURFACE_V1_SET_RECTANGULAR_SURFACE_SHADOW_SINCE_VERSION 2 754 #define ZCR_REMOTE_SURFACE_V1_SET_RECTANGULAR_SURFACE_SHADOW_SINCE_VERSION 2
721 /** 755 /**
722 * @ingroup iface_zcr_remote_surface_v1 756 * @ingroup iface_zcr_remote_surface_v1
723 */ 757 */
724 #define ZCR_REMOTE_SURFACE_V1_ACK_CONFIGURE_SINCE_VERSION 3 758 #define ZCR_REMOTE_SURFACE_V1_SET_SYSTEMUI_VISIBILITY_SINCE_VERSION 3
725 /** 759 /**
726 * @ingroup iface_zcr_remote_surface_v1 760 * @ingroup iface_zcr_remote_surface_v1
727 */ 761 */
728 #define ZCR_REMOTE_SURFACE_V1_MOVE_SINCE_VERSION 3 762 #define ZCR_REMOTE_SURFACE_V1_ACK_CONFIGURE_SINCE_VERSION 4
763 /**
764 * @ingroup iface_zcr_remote_surface_v1
765 */
766 #define ZCR_REMOTE_SURFACE_V1_MOVE_SINCE_VERSION 4
729 767
730 /** 768 /**
731 * @ingroup iface_zcr_remote_surface_v1 769 * @ingroup iface_zcr_remote_surface_v1
732 * Sends an close event to the client owning the resource. 770 * Sends an close event to the client owning the resource.
733 * @param resource_ The client's resource 771 * @param resource_ The client's resource
734 */ 772 */
735 static inline void 773 static inline void
736 zcr_remote_surface_v1_send_close(struct wl_resource *resource_) 774 zcr_remote_surface_v1_send_close(struct wl_resource *resource_)
737 { 775 {
738 wl_resource_post_event(resource_, ZCR_REMOTE_SURFACE_V1_CLOSE); 776 wl_resource_post_event(resource_, ZCR_REMOTE_SURFACE_V1_CLOSE);
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
778 /** 816 /**
779 * @ingroup iface_zcr_notification_surface_v1 817 * @ingroup iface_zcr_notification_surface_v1
780 */ 818 */
781 #define ZCR_NOTIFICATION_SURFACE_V1_DESTROY_SINCE_VERSION 1 819 #define ZCR_NOTIFICATION_SURFACE_V1_DESTROY_SINCE_VERSION 1
782 820
783 #ifdef __cplusplus 821 #ifdef __cplusplus
784 } 822 }
785 #endif 823 #endif
786 824
787 #endif 825 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698