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

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

Issue 2883193002: WIP
Patch Set: git cl try Created 3 years, 7 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.12.90 */ 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
(...skipping 277 matching lines...) Expand 10 before | Expand all | Expand 10 after
288 * @ingroup iface_zcr_remote_shell_v1 288 * @ingroup iface_zcr_remote_shell_v1
289 */ 289 */
290 #define ZCR_REMOTE_SHELL_V1_ACTIVATED_SINCE_VERSION 1 290 #define ZCR_REMOTE_SHELL_V1_ACTIVATED_SINCE_VERSION 1
291 /** 291 /**
292 * @ingroup iface_zcr_remote_shell_v1 292 * @ingroup iface_zcr_remote_shell_v1
293 */ 293 */
294 #define ZCR_REMOTE_SHELL_V1_CONFIGURATION_CHANGED_SINCE_VERSION 1 294 #define ZCR_REMOTE_SHELL_V1_CONFIGURATION_CHANGED_SINCE_VERSION 1
295 /** 295 /**
296 * @ingroup iface_zcr_remote_shell_v1 296 * @ingroup iface_zcr_remote_shell_v1
297 */ 297 */
298 #define ZCR_REMOTE_SHELL_V1_WORKSPACE_SINCE_VERSION 5 298 #define ZCR_REMOTE_SHELL_V1_WORKSPACE_SINCE_VERSION 6
299 /** 299 /**
300 * @ingroup iface_zcr_remote_shell_v1 300 * @ingroup iface_zcr_remote_shell_v1
301 */ 301 */
302 #define ZCR_REMOTE_SHELL_V1_CONFIGURE_SINCE_VERSION 5 302 #define ZCR_REMOTE_SHELL_V1_CONFIGURE_SINCE_VERSION 6
303 303
304 /** 304 /**
305 * @ingroup iface_zcr_remote_shell_v1 305 * @ingroup iface_zcr_remote_shell_v1
306 */ 306 */
307 #define ZCR_REMOTE_SHELL_V1_DESTROY_SINCE_VERSION 1 307 #define ZCR_REMOTE_SHELL_V1_DESTROY_SINCE_VERSION 1
308 /** 308 /**
309 * @ingroup iface_zcr_remote_shell_v1 309 * @ingroup iface_zcr_remote_shell_v1
310 */ 310 */
311 #define ZCR_REMOTE_SHELL_V1_GET_REMOTE_SURFACE_SINCE_VERSION 1 311 #define ZCR_REMOTE_SHELL_V1_GET_REMOTE_SURFACE_SINCE_VERSION 1
312 /** 312 /**
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
360 360
361 #ifndef ZCR_REMOTE_SURFACE_V1_SYSTEMUI_VISIBILITY_STATE_ENUM 361 #ifndef ZCR_REMOTE_SURFACE_V1_SYSTEMUI_VISIBILITY_STATE_ENUM
362 #define ZCR_REMOTE_SURFACE_V1_SYSTEMUI_VISIBILITY_STATE_ENUM 362 #define ZCR_REMOTE_SURFACE_V1_SYSTEMUI_VISIBILITY_STATE_ENUM
363 /** 363 /**
364 * @ingroup iface_zcr_remote_surface_v1 364 * @ingroup iface_zcr_remote_surface_v1
365 * systemui visibility behavior 365 * systemui visibility behavior
366 * 366 *
367 * Determine the visibility behavior of the system UI. 367 * Determine the visibility behavior of the system UI.
368 */ 368 */
369 enum zcr_remote_surface_v1_systemui_visibility_state { 369 enum zcr_remote_surface_v1_systemui_visibility_state {
370 /** 370 » /**
371 * system ui is visible 371 » * system ui is visible
372 */ 372 » */
373 ZCR_REMOTE_SURFACE_V1_SYSTEMUI_VISIBILITY_STATE_VISIBLE = 1, 373 » ZCR_REMOTE_SURFACE_V1_SYSTEMUI_VISIBILITY_STATE_VISIBLE = 1,
374 /** 374 » /**
375 * system ui autohides and is not sticky 375 » * system ui autohides and is not sticky
376 */ 376 » */
377 ZCR_REMOTE_SURFACE_V1_SYSTEMUI_VISIBILITY_STATE_AUTOHIDE_NON_STICKY = 2, 377 » ZCR_REMOTE_SURFACE_V1_SYSTEMUI_VISIBILITY_STATE_AUTOHIDE_NON_STICKY = 2,
378 /** 378 » /**
379 * system ui autohides and is sticky 379 » * system ui autohides and is sticky
380 */ 380 » */
381 ZCR_REMOTE_SURFACE_V1_SYSTEMUI_VISIBILITY_STATE_AUTOHIDE_STICKY = 3, 381 » ZCR_REMOTE_SURFACE_V1_SYSTEMUI_VISIBILITY_STATE_AUTOHIDE_STICKY = 3,
382 }; 382 };
383 #endif /* ZCR_REMOTE_SURFACE_V1_SYSTEMUI_VISIBILITY_STATE_ENUM */ 383 #endif /* ZCR_REMOTE_SURFACE_V1_SYSTEMUI_VISIBILITY_STATE_ENUM */
384 384
385 /** 385 /**
386 * @ingroup iface_zcr_remote_surface_v1 386 * @ingroup iface_zcr_remote_surface_v1
387 * @struct zcr_remote_surface_v1_interface 387 * @struct zcr_remote_surface_v1_interface
388 */ 388 */
389 struct zcr_remote_surface_v1_interface { 389 struct zcr_remote_surface_v1_interface {
390 /** 390 /**
391 * Destroy the remote_surface 391 * Destroy the remote_surface
(...skipping 232 matching lines...) Expand 10 before | Expand all | Expand 10 after
624 * and specifies inner bounds of the shadow. Specifying zero width 624 * and specifies inner bounds of the shadow. Specifying zero width
625 * and height will disable the shadow. 625 * and height will disable the shadow.
626 * @since 2 626 * @since 2
627 */ 627 */
628 void (*set_rectangular_surface_shadow)(struct wl_client *client, 628 void (*set_rectangular_surface_shadow)(struct wl_client *client,
629 struct wl_resource *resource, 629 struct wl_resource *resource,
630 int32_t x, 630 int32_t x,
631 int32_t y, 631 int32_t y,
632 int32_t width, 632 int32_t width,
633 int32_t height); 633 int32_t height);
634 /** 634 » /**
635 * requests the system ui visibility behavior for the surface 635 » * requests the system ui visibility behavior for the surface
636 * 636 » *
637 * Requests how the surface will change the visibility of the 637 » * Requests how the surface will change the visibility of the
638 * system UI when it is made active. 638 » * system UI when it is made active.
639 * @since 3 639 » * @since 3
640 */ 640 » */
641 void (*set_systemui_visibility)(struct wl_client* client, 641 » void (*set_systemui_visibility)(struct wl_client *client,
642 struct wl_resource* resource, 642 » » » » » struct wl_resource *resource,
643 uint32_t visibility); 643 » » » » » uint32_t visibility);
644 /** 644 » /**
645 * set always on top 645 » * set always on top
646 * 646 » *
647 * Request that surface is made to be always on top. 647 » * Request that surface is made to be always on top.
648 * 648 » *
649 * This is only a request that the window should be always on top. 649 » * This is only a request that the window should be always on top.
650 * The compositor may choose to ignore this request. 650 » * The compositor may choose to ignore this request.
651 * @since 4 651 » * @since 4
652 */ 652 » */
653 void (*set_always_on_top)(struct wl_client* client, 653 » void (*set_always_on_top)(struct wl_client *client,
654 struct wl_resource* resource); 654 » » » » struct wl_resource *resource);
655 /** 655 » /**
656 * unset always on top 656 » * unset always on top
657 * 657 » *
658 * Request that surface is made to be not always on top. 658 » * Request that surface is made to be not always on top.
659 * 659 » *
660 * This is only a request that the window should be not always on 660 » * This is only a request that the window should be not always on
661 * top. The compositor may choose to ignore this request. 661 » * top. The compositor may choose to ignore this request.
662 * @since 4 662 » * @since 4
663 */ 663 » */
664 void (*unset_always_on_top)(struct wl_client* client, 664 » void (*unset_always_on_top)(struct wl_client *client,
665 struct wl_resource* resource); 665 » » » » struct wl_resource *resource);
666 /** 666 » /**
667 * ack a configure event 667 » * Set a chunk of surface icon
668 * 668 » *
669 * When a configure event is received, if a client commits the 669 » * Set a chunk of surface custom icon compressed in png format.
670 * surface in response to the configure event, then the client must 670 » *
671 * make an ack_configure request sometime before the commit 671 » * This icon may be used to show the task icon in a task bar.
672 * request, passing along the serial of the configure event. 672 » *
673 * 673 » * If flag contains 0x1 bit then this is the first chunk of data.
674 * For instance, the compositor might use this information during 674 » * If flag contains 0x2 bit then this is the last chunk of data.
675 * display configuration to change its coordinate space for 675 » * Both bits may be set or not set.
676 * set_window_geometry requests only when the client has switched 676 » * @since 5
677 * to the new coordinate space. 677 » */
678 * 678 » void (*set_icon_png_chunk)(struct wl_client *client,
679 * If the client receives multiple configure events before it can 679 » » » » struct wl_resource *resource,
680 * respond to one, it only has to ack the last configure event. 680 » » » » uint32_t flags,
681 * 681 » » » » struct wl_array *chunk);
682 * A client is not required to commit immediately after sending an 682 » /**
683 * ack_configure request - it may even ack_configure several times 683 » * Reset surface icon
684 * before its next surface commit. 684 » *
685 * 685 » * This reset any previosly set surface custom icon.
686 * A client may send multiple ack_configure requests before 686 » *
687 * committing, but only the last request sent before a commit 687 » * Default app icon will be used to show the task icon in a task
688 * indicates which configure event the client really is responding 688 » * bar.
689 * to. 689 » * @since 5
690 * @param serial the serial from the configure event 690 » */
691 * @since 5 691 » void (*reset_icon_png)(struct wl_client *client,
692 */ 692 » » » struct wl_resource *resource);
693 void (*ack_configure)(struct wl_client* client, 693 » /**
694 struct wl_resource* resource, 694 » * ack a configure event
695 uint32_t serial); 695 » *
696 /** 696 » * When a configure event is received, if a client commits the
697 * start an interactive move 697 » * surface in response to the configure event, then the client must
698 * 698 » * make an ack_configure request sometime before the commit
699 * Start an interactive, user-driven move of the surface. 699 » * request, passing along the serial of the configure event.
700 * 700 » *
701 * The compositor responds to this request with a configure event 701 » * For instance, the compositor might use this information during
702 * that transitions to the "moving" state. The client must only 702 » * display configuration to change its coordinate space for
703 * initiate motion after acknowledging the state change. The 703 » * set_window_geometry requests only when the client has switched
704 * compositor can assume that subsequent set_window_geometry 704 » * to the new coordinate space.
705 * requests are position updates until the next state transition is 705 » *
706 * acknowledged. 706 » * If the client receives multiple configure events before it can
707 * 707 » * respond to one, it only has to ack the last configure event.
708 * The compositor may ignore move requests depending on the state 708 » *
709 * of the surface, e.g. fullscreen or maximized. 709 » * A client is not required to commit immediately after sending an
710 * @since 5 710 » * ack_configure request - it may even ack_configure several times
711 */ 711 » * before its next surface commit.
712 void (*move)(struct wl_client* client, struct wl_resource* resource); 712 » *
713 » * A client may send multiple ack_configure requests before
714 » * committing, but only the last request sent before a commit
715 » * indicates which configure event the client really is responding
716 » * to.
717 » * @param serial the serial from the configure event
718 » * @since 6
719 » */
720 » void (*ack_configure)(struct wl_client *client,
721 » » » struct wl_resource *resource,
722 » » » uint32_t serial);
723 » /**
724 » * start an interactive move
725 » *
726 » * Start an interactive, user-driven move of the surface.
727 » *
728 » * The compositor responds to this request with a configure event
729 » * that transitions to the "moving" state. The client must only
730 » * initiate motion after acknowledging the state change. The
731 » * compositor can assume that subsequent set_window_geometry
732 » * requests are position updates until the next state transition is
733 » * acknowledged.
734 » *
735 » * The compositor may ignore move requests depending on the state
736 » * of the surface, e.g. fullscreen or maximized.
737 » * @since 6
738 » */
739 » void (*move)(struct wl_client *client,
740 » » struct wl_resource *resource);
713 }; 741 };
714 742
715 #define ZCR_REMOTE_SURFACE_V1_CLOSE 0 743 #define ZCR_REMOTE_SURFACE_V1_CLOSE 0
716 #define ZCR_REMOTE_SURFACE_V1_STATE_TYPE_CHANGED 1 744 #define ZCR_REMOTE_SURFACE_V1_STATE_TYPE_CHANGED 1
717 #define ZCR_REMOTE_SURFACE_V1_CONFIGURE 2 745 #define ZCR_REMOTE_SURFACE_V1_CONFIGURE 2
718 746
719 /** 747 /**
720 * @ingroup iface_zcr_remote_surface_v1 748 * @ingroup iface_zcr_remote_surface_v1
721 */ 749 */
722 #define ZCR_REMOTE_SURFACE_V1_CLOSE_SINCE_VERSION 1 750 #define ZCR_REMOTE_SURFACE_V1_CLOSE_SINCE_VERSION 1
723 /** 751 /**
724 * @ingroup iface_zcr_remote_surface_v1 752 * @ingroup iface_zcr_remote_surface_v1
725 */ 753 */
726 #define ZCR_REMOTE_SURFACE_V1_STATE_TYPE_CHANGED_SINCE_VERSION 1 754 #define ZCR_REMOTE_SURFACE_V1_STATE_TYPE_CHANGED_SINCE_VERSION 1
727 /** 755 /**
728 * @ingroup iface_zcr_remote_surface_v1 756 * @ingroup iface_zcr_remote_surface_v1
729 */ 757 */
730 #define ZCR_REMOTE_SURFACE_V1_CONFIGURE_SINCE_VERSION 5 758 #define ZCR_REMOTE_SURFACE_V1_CONFIGURE_SINCE_VERSION 6
731 759
732 /** 760 /**
733 * @ingroup iface_zcr_remote_surface_v1 761 * @ingroup iface_zcr_remote_surface_v1
734 */ 762 */
735 #define ZCR_REMOTE_SURFACE_V1_DESTROY_SINCE_VERSION 1 763 #define ZCR_REMOTE_SURFACE_V1_DESTROY_SINCE_VERSION 1
736 /** 764 /**
737 * @ingroup iface_zcr_remote_surface_v1 765 * @ingroup iface_zcr_remote_surface_v1
738 */ 766 */
739 #define ZCR_REMOTE_SURFACE_V1_SET_APP_ID_SINCE_VERSION 1 767 #define ZCR_REMOTE_SURFACE_V1_SET_APP_ID_SINCE_VERSION 1
740 /** 768 /**
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
813 * @ingroup iface_zcr_remote_surface_v1 841 * @ingroup iface_zcr_remote_surface_v1
814 */ 842 */
815 #define ZCR_REMOTE_SURFACE_V1_SET_ALWAYS_ON_TOP_SINCE_VERSION 4 843 #define ZCR_REMOTE_SURFACE_V1_SET_ALWAYS_ON_TOP_SINCE_VERSION 4
816 /** 844 /**
817 * @ingroup iface_zcr_remote_surface_v1 845 * @ingroup iface_zcr_remote_surface_v1
818 */ 846 */
819 #define ZCR_REMOTE_SURFACE_V1_UNSET_ALWAYS_ON_TOP_SINCE_VERSION 4 847 #define ZCR_REMOTE_SURFACE_V1_UNSET_ALWAYS_ON_TOP_SINCE_VERSION 4
820 /** 848 /**
821 * @ingroup iface_zcr_remote_surface_v1 849 * @ingroup iface_zcr_remote_surface_v1
822 */ 850 */
823 #define ZCR_REMOTE_SURFACE_V1_ACK_CONFIGURE_SINCE_VERSION 5 851 #define ZCR_REMOTE_SURFACE_V1_SET_ICON_PNG_CHUNK_SINCE_VERSION 5
824 /** 852 /**
825 * @ingroup iface_zcr_remote_surface_v1 853 * @ingroup iface_zcr_remote_surface_v1
826 */ 854 */
827 #define ZCR_REMOTE_SURFACE_V1_MOVE_SINCE_VERSION 5 855 #define ZCR_REMOTE_SURFACE_V1_RESET_ICON_PNG_SINCE_VERSION 5
856 /**
857 * @ingroup iface_zcr_remote_surface_v1
858 */
859 #define ZCR_REMOTE_SURFACE_V1_ACK_CONFIGURE_SINCE_VERSION 6
860 /**
861 * @ingroup iface_zcr_remote_surface_v1
862 */
863 #define ZCR_REMOTE_SURFACE_V1_MOVE_SINCE_VERSION 6
828 864
829 /** 865 /**
830 * @ingroup iface_zcr_remote_surface_v1 866 * @ingroup iface_zcr_remote_surface_v1
831 * Sends an close event to the client owning the resource. 867 * Sends an close event to the client owning the resource.
832 * @param resource_ The client's resource 868 * @param resource_ The client's resource
833 */ 869 */
834 static inline void 870 static inline void
835 zcr_remote_surface_v1_send_close(struct wl_resource *resource_) 871 zcr_remote_surface_v1_send_close(struct wl_resource *resource_)
836 { 872 {
837 wl_resource_post_event(resource_, ZCR_REMOTE_SURFACE_V1_CLOSE); 873 wl_resource_post_event(resource_, ZCR_REMOTE_SURFACE_V1_CLOSE);
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
877 /** 913 /**
878 * @ingroup iface_zcr_notification_surface_v1 914 * @ingroup iface_zcr_notification_surface_v1
879 */ 915 */
880 #define ZCR_NOTIFICATION_SURFACE_V1_DESTROY_SINCE_VERSION 1 916 #define ZCR_NOTIFICATION_SURFACE_V1_DESTROY_SINCE_VERSION 1
881 917
882 #ifdef __cplusplus 918 #ifdef __cplusplus
883 } 919 }
884 #endif 920 #endif
885 921
886 #endif 922 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698