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

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 autohide systemui request 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 589 matching lines...) Expand 10 before | Expand all | Expand 10 after
600 * and specifies inner bounds of the shadow. Specifying zero width 600 * and specifies inner bounds of the shadow. Specifying zero width
601 * and height will disable the shadow. 601 * and height will disable the shadow.
602 * @since 2 602 * @since 2
603 */ 603 */
604 void (*set_rectangular_surface_shadow)(struct wl_client *client, 604 void (*set_rectangular_surface_shadow)(struct wl_client *client,
605 struct wl_resource *resource, 605 struct wl_resource *resource,
606 int32_t x, 606 int32_t x,
607 int32_t y, 607 int32_t y,
608 int32_t width, 608 int32_t width,
609 int32_t height); 609 int32_t height);
610 » /** 610
611 » * ack a configure event 611 /**
612 » * 612 * requests whether the surface should autohide the system ui
613 » * When a configure event is received, if a client commits the 613 *
614 » * surface in response to the configure event, then the client must 614 * Requests whether or not the surface will autohide the system UI when
615 » * make an ack_configure request sometime before the commit 615 * it is made active.
616 » * request, passing along the serial of the configure event. 616 *
617 » * 617 * @since 3
618 » * For instance, the compositor might use this information during 618 */
619 » * display configuration to change its coordinate space for 619 void (*set_autohide_systemui)(struct wl_client* client,
620 » * set_window_geometry requests only when the client has switched 620 struct wl_resource* resource,
621 » * to the new coordinate space. 621 int32_t autohide);
622 » * 622
623 » * If the client receives multiple configure events before it can 623 /**
624 » * respond to one, it only has to ack the last configure event. 624 * ack a configure event
625 » * 625 *
626 » * A client is not required to commit immediately after sending an 626 * When a configure event is received, if a client commits the
627 » * ack_configure request - it may even ack_configure several times 627 * surface in response to the configure event, then the client must
628 » * before its next surface commit. 628 * make an ack_configure request sometime before the commit
629 » * 629 * request, passing along the serial of the configure event.
630 » * A client may send multiple ack_configure requests before 630 *
631 » * committing, but only the last request sent before a commit 631 * For instance, the compositor might use this information during
632 » * indicates which configure event the client really is responding 632 * display configuration to change its coordinate space for
633 » * to. 633 * set_window_geometry requests only when the client has switched
634 » * @param serial the serial from the configure event 634 * to the new coordinate space.
635 » * @since 3 635 *
636 » */ 636 * If the client receives multiple configure events before it can
637 » void (*ack_configure)(struct wl_client *client, 637 * respond to one, it only has to ack the last configure event.
638 » » » struct wl_resource *resource, 638 *
639 » » » uint32_t serial); 639 * A client is not required to commit immediately after sending an
640 » /** 640 * ack_configure request - it may even ack_configure several times
641 » * start an interactive move 641 * before its next surface commit.
642 » * 642 *
643 » * Start an interactive, user-driven move of the surface. 643 * A client may send multiple ack_configure requests before
644 » * 644 * committing, but only the last request sent before a commit
645 » * The compositor responds to this request with a configure event 645 * indicates which configure event the client really is responding
646 » * that transitions to the "moving" state. The client must only 646 * to.
647 » * initiate motion after acknowledging the state change. The 647 * @param serial the serial from the configure event
648 » * compositor can assume that subsequent set_window_geometry 648 * @since 4
649 » * requests are position updates until the next state transition is 649 */
650 » * acknowledged. 650 void (*ack_configure)(struct wl_client* client,
651 » * 651 struct wl_resource* resource,
652 » * The compositor may ignore move requests depending on the state 652 uint32_t serial);
653 » * of the surface, e.g. fullscreen or maximized. 653 /**
654 » * @since 3 654 * start an interactive move
655 » */ 655 *
656 » void (*move)(struct wl_client *client, 656 * Start an interactive, user-driven move of the surface.
657 » » struct wl_resource *resource); 657 *
658 * The compositor responds to this request with a configure event
659 * that transitions to the "moving" state. The client must only
660 * initiate motion after acknowledging the state change. The
661 * compositor can assume that subsequent set_window_geometry
662 * requests are position updates until the next state transition is
663 * acknowledged.
664 *
665 * The compositor may ignore move requests depending on the state
666 * of the surface, e.g. fullscreen or maximized.
667 * @since 4
668 */
669 void (*move)(struct wl_client* client, struct wl_resource* resource);
658 }; 670 };
659 671
660 #define ZCR_REMOTE_SURFACE_V1_CLOSE 0 672 #define ZCR_REMOTE_SURFACE_V1_CLOSE 0
661 #define ZCR_REMOTE_SURFACE_V1_STATE_TYPE_CHANGED 1 673 #define ZCR_REMOTE_SURFACE_V1_STATE_TYPE_CHANGED 1
662 #define ZCR_REMOTE_SURFACE_V1_CONFIGURE 2 674 #define ZCR_REMOTE_SURFACE_V1_CONFIGURE 2
663 675
664 /** 676 /**
665 * @ingroup iface_zcr_remote_surface_v1 677 * @ingroup iface_zcr_remote_surface_v1
666 */ 678 */
667 #define ZCR_REMOTE_SURFACE_V1_CLOSE_SINCE_VERSION 1 679 #define ZCR_REMOTE_SURFACE_V1_CLOSE_SINCE_VERSION 1
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
746 * @ingroup iface_zcr_remote_surface_v1 758 * @ingroup iface_zcr_remote_surface_v1
747 */ 759 */
748 #define ZCR_REMOTE_SURFACE_V1_UNSET_SYSTEM_MODAL_SINCE_VERSION 1 760 #define ZCR_REMOTE_SURFACE_V1_UNSET_SYSTEM_MODAL_SINCE_VERSION 1
749 /** 761 /**
750 * @ingroup iface_zcr_remote_surface_v1 762 * @ingroup iface_zcr_remote_surface_v1
751 */ 763 */
752 #define ZCR_REMOTE_SURFACE_V1_SET_RECTANGULAR_SURFACE_SHADOW_SINCE_VERSION 2 764 #define ZCR_REMOTE_SURFACE_V1_SET_RECTANGULAR_SURFACE_SHADOW_SINCE_VERSION 2
753 /** 765 /**
754 * @ingroup iface_zcr_remote_surface_v1 766 * @ingroup iface_zcr_remote_surface_v1
755 */ 767 */
756 #define ZCR_REMOTE_SURFACE_V1_ACK_CONFIGURE_SINCE_VERSION 3 768 #define ZCR_REMOTE_SURFACE_V1_SET_AUTOHIDE_SYSTEMUI_SINCE_VERSION 3
757 /** 769 /**
758 * @ingroup iface_zcr_remote_surface_v1 770 * @ingroup iface_zcr_remote_surface_v1
759 */ 771 */
760 #define ZCR_REMOTE_SURFACE_V1_MOVE_SINCE_VERSION 3 772 #define ZCR_REMOTE_SURFACE_V1_ACK_CONFIGURE_SINCE_VERSION 4
773 /**
774 * @ingroup iface_zcr_remote_surface_v1
775 */
776 #define ZCR_REMOTE_SURFACE_V1_MOVE_SINCE_VERSION 4
761 777
762 /** 778 /**
763 * @ingroup iface_zcr_remote_surface_v1 779 * @ingroup iface_zcr_remote_surface_v1
764 * Sends an close event to the client owning the resource. 780 * Sends an close event to the client owning the resource.
765 * @param resource_ The client's resource 781 * @param resource_ The client's resource
766 */ 782 */
767 static inline void 783 static inline void
768 zcr_remote_surface_v1_send_close(struct wl_resource *resource_) 784 zcr_remote_surface_v1_send_close(struct wl_resource *resource_)
769 { 785 {
770 wl_resource_post_event(resource_, ZCR_REMOTE_SURFACE_V1_CLOSE); 786 wl_resource_post_event(resource_, ZCR_REMOTE_SURFACE_V1_CLOSE);
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
810 /** 826 /**
811 * @ingroup iface_zcr_notification_surface_v1 827 * @ingroup iface_zcr_notification_surface_v1
812 */ 828 */
813 #define ZCR_NOTIFICATION_SURFACE_V1_DESTROY_SINCE_VERSION 1 829 #define ZCR_NOTIFICATION_SURFACE_V1_DESTROY_SINCE_VERSION 1
814 830
815 #ifdef __cplusplus 831 #ifdef __cplusplus
816 } 832 }
817 #endif 833 #endif
818 834
819 #endif 835 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698