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

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

Issue 2684073003: third_party: Amend version 3 of remote shell protocol (Closed)
Patch Set: Fix compilation error Created 3 years, 10 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 173 matching lines...) Expand 10 before | Expand all | Expand 10 after
184 */ 184 */
185 ZCR_REMOTE_SHELL_V1_STATE_TYPE_FULLSCREEN = 4, 185 ZCR_REMOTE_SHELL_V1_STATE_TYPE_FULLSCREEN = 4,
186 /** 186 /**
187 * pinned window state 187 * pinned window state
188 */ 188 */
189 ZCR_REMOTE_SHELL_V1_STATE_TYPE_PINNED = 5, 189 ZCR_REMOTE_SHELL_V1_STATE_TYPE_PINNED = 5,
190 /** 190 /**
191 * trusted pinned window state 191 * trusted pinned window state
192 */ 192 */
193 ZCR_REMOTE_SHELL_V1_STATE_TYPE_TRUSTED_PINNED = 6, 193 ZCR_REMOTE_SHELL_V1_STATE_TYPE_TRUSTED_PINNED = 6,
194 /**
195 * moving window state
196 */
197 ZCR_REMOTE_SHELL_V1_STATE_TYPE_MOVING = 7,
194 }; 198 };
195 #endif /* ZCR_REMOTE_SHELL_V1_STATE_TYPE_ENUM */ 199 #endif /* ZCR_REMOTE_SHELL_V1_STATE_TYPE_ENUM */
196 200
197 #ifndef ZCR_REMOTE_SHELL_V1_ERROR_ENUM 201 #ifndef ZCR_REMOTE_SHELL_V1_ERROR_ENUM
198 #define ZCR_REMOTE_SHELL_V1_ERROR_ENUM 202 #define ZCR_REMOTE_SHELL_V1_ERROR_ENUM
199 enum zcr_remote_shell_v1_error { 203 enum zcr_remote_shell_v1_error {
200 /** 204 /**
201 * given wl_surface has another role 205 * given wl_surface has another role
202 */ 206 */
203 ZCR_REMOTE_SHELL_V1_ERROR_ROLE = 0, 207 ZCR_REMOTE_SHELL_V1_ERROR_ROLE = 0,
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
268 * the notification_surface role and associated it with a 272 * the notification_surface role and associated it with a
269 * notification id. 273 * notification id.
270 */ 274 */
271 void (*get_notification_surface)(struct wl_client *client, 275 void (*get_notification_surface)(struct wl_client *client,
272 struct wl_resource *resource, 276 struct wl_resource *resource,
273 uint32_t id, 277 uint32_t id,
274 struct wl_resource *surface, 278 struct wl_resource *surface,
275 const char *notification_id); 279 const char *notification_id);
276 }; 280 };
277 281
278 #define ZCR_REMOTE_SHELL_V1_ACTIVATED» 0 282 #define ZCR_REMOTE_SHELL_V1_ACTIVATED 0
279 #define ZCR_REMOTE_SHELL_V1_CONFIGURATION_CHANGED» 1 283 #define ZCR_REMOTE_SHELL_V1_CONFIGURATION_CHANGED 1
280 284
281 /** 285 /**
282 * @ingroup iface_zcr_remote_shell_v1 286 * @ingroup iface_zcr_remote_shell_v1
283 */ 287 */
284 #define ZCR_REMOTE_SHELL_V1_ACTIVATED_SINCE_VERSION» 1 288 #define ZCR_REMOTE_SHELL_V1_ACTIVATED_SINCE_VERSION 1
285 /** 289 /**
286 * @ingroup iface_zcr_remote_shell_v1 290 * @ingroup iface_zcr_remote_shell_v1
287 */ 291 */
288 #define ZCR_REMOTE_SHELL_V1_CONFIGURATION_CHANGED_SINCE_VERSION»1 292 #define ZCR_REMOTE_SHELL_V1_CONFIGURATION_CHANGED_SINCE_VERSION 1
289 293
290 /** 294 /**
291 * @ingroup iface_zcr_remote_shell_v1 295 * @ingroup iface_zcr_remote_shell_v1
296 */
297 #define ZCR_REMOTE_SHELL_V1_DESTROY_SINCE_VERSION 1
298 /**
299 * @ingroup iface_zcr_remote_shell_v1
300 */
301 #define ZCR_REMOTE_SHELL_V1_GET_REMOTE_SURFACE_SINCE_VERSION 1
302 /**
303 * @ingroup iface_zcr_remote_shell_v1
304 */
305 #define ZCR_REMOTE_SHELL_V1_GET_NOTIFICATION_SURFACE_SINCE_VERSION 1
306
307 /**
308 * @ingroup iface_zcr_remote_shell_v1
292 * Sends an activated event to the client owning the resource. 309 * Sends an activated event to the client owning the resource.
293 * @param resource_ The client's resource 310 * @param resource_ The client's resource
294 */ 311 */
295 static inline void 312 static inline void
296 zcr_remote_shell_v1_send_activated(struct wl_resource *resource_, struct wl_reso urce *gained_active, struct wl_resource *lost_active) 313 zcr_remote_shell_v1_send_activated(struct wl_resource *resource_, struct wl_reso urce *gained_active, struct wl_resource *lost_active)
297 { 314 {
298 wl_resource_post_event(resource_, ZCR_REMOTE_SHELL_V1_ACTIVATED, gained_ active, lost_active); 315 wl_resource_post_event(resource_, ZCR_REMOTE_SHELL_V1_ACTIVATED, gained_ active, lost_active);
299 } 316 }
300 317
301 /** 318 /**
(...skipping 280 matching lines...) Expand 10 before | Expand all | Expand 10 after
582 * committing, but only the last request sent before a commit 599 * committing, but only the last request sent before a commit
583 * indicates which configure event the client really is responding 600 * indicates which configure event the client really is responding
584 * to. 601 * to.
585 * @param serial the serial from the configure event 602 * @param serial the serial from the configure event
586 * @since 3 603 * @since 3
587 */ 604 */
588 void (*ack_configure)(struct wl_client *client, 605 void (*ack_configure)(struct wl_client *client,
589 struct wl_resource *resource, 606 struct wl_resource *resource,
590 uint32_t serial); 607 uint32_t serial);
591 /** 608 /**
592 » * interactive move started 609 » * start an interactive move
593 * 610 *
594 » * Notifies the compositor when an interactive, user-driven move 611 » * Start an interactive, user-driven move of the surface.
595 » * of the surface starts. The compositor may assume that subsequent 612 » *
596 » * set_window_geometry requests are position updates until it 613 » * The compositor responds to this request with a configure event
597 » * receives a unset_moving request. 614 » * that transitions to the "moving" state. The client must only
615 » * initiate motion after acknowledging the state change. The
616 » * compositor can assume that subsequent set_window_geometry
617 » * requests are position updates until the next state transition is
618 » * acknowledged.
619 » *
620 » * The compositor may ignore move requests depending on the state
621 » * of the surface, e.g. fullscreen or maximized.
598 * @since 3 622 * @since 3
599 */ 623 */
600 » void (*set_moving)(struct wl_client *client, 624 » void (*move)(struct wl_client *client,
601 » » » struct wl_resource *resource); 625 » » struct wl_resource *resource);
602 » /**
603 » * interactive move stopped
604 » *
605 » * Notifies the compositor when an interactive, user-driven move
606 » * of the surface stops. The compositor may choose to stop the move
607 » * regardless of this request.
608 » * @since 3
609 » */
610 » void (*unset_moving)(struct wl_client *client,
611 » » » struct wl_resource *resource);
612 }; 626 };
613 627
614 #define ZCR_REMOTE_SURFACE_V1_CLOSE» 0 628 #define ZCR_REMOTE_SURFACE_V1_CLOSE 0
615 #define ZCR_REMOTE_SURFACE_V1_STATE_TYPE_CHANGED» 1 629 #define ZCR_REMOTE_SURFACE_V1_STATE_TYPE_CHANGED 1
616 #define ZCR_REMOTE_SURFACE_V1_CONFIGURE»2 630 #define ZCR_REMOTE_SURFACE_V1_CONFIGURE 2
617 631
618 /** 632 /**
619 * @ingroup iface_zcr_remote_surface_v1 633 * @ingroup iface_zcr_remote_surface_v1
620 */ 634 */
621 #define ZCR_REMOTE_SURFACE_V1_CLOSE_SINCE_VERSION» 1 635 #define ZCR_REMOTE_SURFACE_V1_CLOSE_SINCE_VERSION 1
622 /** 636 /**
623 * @ingroup iface_zcr_remote_surface_v1 637 * @ingroup iface_zcr_remote_surface_v1
624 */ 638 */
625 #define ZCR_REMOTE_SURFACE_V1_STATE_TYPE_CHANGED_SINCE_VERSION» 1 639 #define ZCR_REMOTE_SURFACE_V1_STATE_TYPE_CHANGED_SINCE_VERSION 1
626 /** 640 /**
627 * @ingroup iface_zcr_remote_surface_v1 641 * @ingroup iface_zcr_remote_surface_v1
628 */ 642 */
629 #define ZCR_REMOTE_SURFACE_V1_CONFIGURE_SINCE_VERSION» 3 643 #define ZCR_REMOTE_SURFACE_V1_CONFIGURE_SINCE_VERSION 3
630 644
631 /** 645 /**
632 * @ingroup iface_zcr_remote_surface_v1 646 * @ingroup iface_zcr_remote_surface_v1
647 */
648 #define ZCR_REMOTE_SURFACE_V1_DESTROY_SINCE_VERSION 1
649 /**
650 * @ingroup iface_zcr_remote_surface_v1
651 */
652 #define ZCR_REMOTE_SURFACE_V1_SET_APP_ID_SINCE_VERSION 1
653 /**
654 * @ingroup iface_zcr_remote_surface_v1
655 */
656 #define ZCR_REMOTE_SURFACE_V1_SET_WINDOW_GEOMETRY_SINCE_VERSION 1
657 /**
658 * @ingroup iface_zcr_remote_surface_v1
659 */
660 #define ZCR_REMOTE_SURFACE_V1_SET_SCALE_SINCE_VERSION 1
661 /**
662 * @ingroup iface_zcr_remote_surface_v1
663 */
664 #define ZCR_REMOTE_SURFACE_V1_SET_RECTANGULAR_SHADOW_SINCE_VERSION 1
665 /**
666 * @ingroup iface_zcr_remote_surface_v1
667 */
668 #define ZCR_REMOTE_SURFACE_V1_SET_RECTANGULAR_SHADOW_BACKGROUND_OPACITY_SINCE_VE RSION 1
669 /**
670 * @ingroup iface_zcr_remote_surface_v1
671 */
672 #define ZCR_REMOTE_SURFACE_V1_SET_TITLE_SINCE_VERSION 1
673 /**
674 * @ingroup iface_zcr_remote_surface_v1
675 */
676 #define ZCR_REMOTE_SURFACE_V1_SET_TOP_INSET_SINCE_VERSION 1
677 /**
678 * @ingroup iface_zcr_remote_surface_v1
679 */
680 #define ZCR_REMOTE_SURFACE_V1_ACTIVATE_SINCE_VERSION 1
681 /**
682 * @ingroup iface_zcr_remote_surface_v1
683 */
684 #define ZCR_REMOTE_SURFACE_V1_MAXIMIZE_SINCE_VERSION 1
685 /**
686 * @ingroup iface_zcr_remote_surface_v1
687 */
688 #define ZCR_REMOTE_SURFACE_V1_MINIMIZE_SINCE_VERSION 1
689 /**
690 * @ingroup iface_zcr_remote_surface_v1
691 */
692 #define ZCR_REMOTE_SURFACE_V1_RESTORE_SINCE_VERSION 1
693 /**
694 * @ingroup iface_zcr_remote_surface_v1
695 */
696 #define ZCR_REMOTE_SURFACE_V1_FULLSCREEN_SINCE_VERSION 1
697 /**
698 * @ingroup iface_zcr_remote_surface_v1
699 */
700 #define ZCR_REMOTE_SURFACE_V1_UNFULLSCREEN_SINCE_VERSION 1
701 /**
702 * @ingroup iface_zcr_remote_surface_v1
703 */
704 #define ZCR_REMOTE_SURFACE_V1_PIN_SINCE_VERSION 1
705 /**
706 * @ingroup iface_zcr_remote_surface_v1
707 */
708 #define ZCR_REMOTE_SURFACE_V1_UNPIN_SINCE_VERSION 1
709 /**
710 * @ingroup iface_zcr_remote_surface_v1
711 */
712 #define ZCR_REMOTE_SURFACE_V1_SET_SYSTEM_MODAL_SINCE_VERSION 1
713 /**
714 * @ingroup iface_zcr_remote_surface_v1
715 */
716 #define ZCR_REMOTE_SURFACE_V1_UNSET_SYSTEM_MODAL_SINCE_VERSION 1
717 /**
718 * @ingroup iface_zcr_remote_surface_v1
719 */
720 #define ZCR_REMOTE_SURFACE_V1_SET_RECTANGULAR_SURFACE_SHADOW_SINCE_VERSION 2
721 /**
722 * @ingroup iface_zcr_remote_surface_v1
723 */
724 #define ZCR_REMOTE_SURFACE_V1_ACK_CONFIGURE_SINCE_VERSION 3
725 /**
726 * @ingroup iface_zcr_remote_surface_v1
727 */
728 #define ZCR_REMOTE_SURFACE_V1_MOVE_SINCE_VERSION 3
729
730 /**
731 * @ingroup iface_zcr_remote_surface_v1
633 * Sends an close event to the client owning the resource. 732 * Sends an close event to the client owning the resource.
634 * @param resource_ The client's resource 733 * @param resource_ The client's resource
635 */ 734 */
636 static inline void 735 static inline void
637 zcr_remote_surface_v1_send_close(struct wl_resource *resource_) 736 zcr_remote_surface_v1_send_close(struct wl_resource *resource_)
638 { 737 {
639 wl_resource_post_event(resource_, ZCR_REMOTE_SURFACE_V1_CLOSE); 738 wl_resource_post_event(resource_, ZCR_REMOTE_SURFACE_V1_CLOSE);
640 } 739 }
641 740
642 /** 741 /**
643 * @ingroup iface_zcr_remote_surface_v1 742 * @ingroup iface_zcr_remote_surface_v1
644 * Sends an state_type_changed event to the client owning the resource. 743 * Sends an state_type_changed event to the client owning the resource.
645 * @param resource_ The client's resource 744 * @param resource_ The client's resource
646 */ 745 */
647 static inline void 746 static inline void
648 zcr_remote_surface_v1_send_state_type_changed(struct wl_resource *resource_, uin t32_t state_type) 747 zcr_remote_surface_v1_send_state_type_changed(struct wl_resource *resource_, uin t32_t state_type)
649 { 748 {
650 wl_resource_post_event(resource_, ZCR_REMOTE_SURFACE_V1_STATE_TYPE_CHANG ED, state_type); 749 wl_resource_post_event(resource_, ZCR_REMOTE_SURFACE_V1_STATE_TYPE_CHANG ED, state_type);
651 } 750 }
652 751
653 /** 752 /**
654 * @ingroup iface_zcr_remote_surface_v1 753 * @ingroup iface_zcr_remote_surface_v1
655 * Sends an configure event to the client owning the resource. 754 * Sends an configure event to the client owning the resource.
656 * @param resource_ The client's resource 755 * @param resource_ The client's resource
657 */ 756 */
658 static inline void 757 static inline void
659 zcr_remote_surface_v1_send_configure(struct wl_resource *resource_, int32_t orig in_x, int32_t origin_y, uint32_t serial) 758 zcr_remote_surface_v1_send_configure(struct wl_resource *resource_, int32_t orig in_x, int32_t origin_y, struct wl_array *states, uint32_t serial)
660 { 759 {
661 » wl_resource_post_event(resource_, ZCR_REMOTE_SURFACE_V1_CONFIGURE, origi n_x, origin_y, serial); 760 » wl_resource_post_event(resource_, ZCR_REMOTE_SURFACE_V1_CONFIGURE, origi n_x, origin_y, states, serial);
662 } 761 }
663 762
664 /** 763 /**
665 * @ingroup iface_zcr_notification_surface_v1 764 * @ingroup iface_zcr_notification_surface_v1
666 * @struct zcr_notification_surface_v1_interface 765 * @struct zcr_notification_surface_v1_interface
667 */ 766 */
668 struct zcr_notification_surface_v1_interface { 767 struct zcr_notification_surface_v1_interface {
669 /** 768 /**
670 * Destroy the notification_surface 769 * Destroy the notification_surface
671 * 770 *
672 * Unmap and destroy the notification surface. 771 * Unmap and destroy the notification surface.
673 */ 772 */
674 void (*destroy)(struct wl_client *client, 773 void (*destroy)(struct wl_client *client,
675 struct wl_resource *resource); 774 struct wl_resource *resource);
676 }; 775 };
677 776
678 777
778 /**
779 * @ingroup iface_zcr_notification_surface_v1
780 */
781 #define ZCR_NOTIFICATION_SURFACE_V1_DESTROY_SINCE_VERSION 1
782
679 #ifdef __cplusplus 783 #ifdef __cplusplus
680 } 784 }
681 #endif 785 #endif
682 786
683 #endif 787 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698