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

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

Issue 2686533004: Use pixel coordinates for shadow underlay bounds (Closed)
Patch Set: remove unnecessary changes 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_CLIENT_PROTOCOL_H 3 #ifndef REMOTE_SHELL_UNSTABLE_V1_CLIENT_PROTOCOL_H
4 #define REMOTE_SHELL_UNSTABLE_V1_CLIENT_PROTOCOL_H 4 #define REMOTE_SHELL_UNSTABLE_V1_CLIENT_PROTOCOL_H
5 5
6 #include <stdint.h> 6 #include <stdint.h>
7 #include <stddef.h> 7 #include <stddef.h>
8 #include "wayland-client.h" 8 #include "wayland-client.h"
9 9
10 #ifdef __cplusplus 10 #ifdef __cplusplus
(...skipping 378 matching lines...) Expand 10 before | Expand all | Expand 10 after
389 * the surface state changed. 389 * the surface state changed.
390 * 390 *
391 * This is an event to notify that the window state changed in 391 * This is an event to notify that the window state changed in
392 * compositor. The state change may be triggered by a client's 392 * compositor. The state change may be triggered by a client's
393 * request, or some user action directly handled by the compositor. 393 * request, or some user action directly handled by the compositor.
394 * The client may choose to ignore this event. 394 * The client may choose to ignore this event.
395 */ 395 */
396 void (*state_type_changed)(void *data, 396 void (*state_type_changed)(void *data,
397 struct zcr_remote_surface_v1 *zcr_remote_surf ace_v1, 397 struct zcr_remote_surface_v1 *zcr_remote_surf ace_v1,
398 uint32_t state_type); 398 uint32_t state_type);
399 /**
400 * suggest a surface change
401 *
402 * The configure event asks the client to change surface state.
403 *
404 * The origin arguments specify the position, in the compositor
405 * coordinate space, of the virtual display used by the client to
406 * simulate multiple displays. The client must offset window
407 * positions in set_window_geometry requests by this origin in
408 * order to convert between coordinate spaces.
409 *
410 * Clients should arrange their surface for the new state, and then
411 * send an ack_configure request with the serial sent in this
412 * configure event at some point before committing the new surface.
413 *
414 * If the client receives multiple configure events before it can
415 * respond to one, it is free to discard all but the last event it
416 * received.
417 * @since 3
418 */
419 void (*configure)(void *data,
420 struct zcr_remote_surface_v1 *zcr_remote_surface_v1,
421 int32_t origin_x,
422 int32_t origin_y,
423 uint32_t serial);
399 }; 424 };
400 425
401 /** 426 /**
402 * @ingroup zcr_remote_surface_v1_iface 427 * @ingroup zcr_remote_surface_v1_iface
403 */ 428 */
404 static inline int 429 static inline int
405 zcr_remote_surface_v1_add_listener(struct zcr_remote_surface_v1 *zcr_remote_surf ace_v1, 430 zcr_remote_surface_v1_add_listener(struct zcr_remote_surface_v1 *zcr_remote_surf ace_v1,
406 const struct zcr_remote_surface_v1_listener * listener, void *data) 431 const struct zcr_remote_surface_v1_listener * listener, void *data)
407 { 432 {
408 return wl_proxy_add_listener((struct wl_proxy *) zcr_remote_surface_v1, 433 return wl_proxy_add_listener((struct wl_proxy *) zcr_remote_surface_v1,
(...skipping 11 matching lines...) Expand all
420 #define ZCR_REMOTE_SURFACE_V1_ACTIVATE 8 445 #define ZCR_REMOTE_SURFACE_V1_ACTIVATE 8
421 #define ZCR_REMOTE_SURFACE_V1_MAXIMIZE 9 446 #define ZCR_REMOTE_SURFACE_V1_MAXIMIZE 9
422 #define ZCR_REMOTE_SURFACE_V1_MINIMIZE 10 447 #define ZCR_REMOTE_SURFACE_V1_MINIMIZE 10
423 #define ZCR_REMOTE_SURFACE_V1_RESTORE 11 448 #define ZCR_REMOTE_SURFACE_V1_RESTORE 11
424 #define ZCR_REMOTE_SURFACE_V1_FULLSCREEN 12 449 #define ZCR_REMOTE_SURFACE_V1_FULLSCREEN 12
425 #define ZCR_REMOTE_SURFACE_V1_UNFULLSCREEN 13 450 #define ZCR_REMOTE_SURFACE_V1_UNFULLSCREEN 13
426 #define ZCR_REMOTE_SURFACE_V1_PIN 14 451 #define ZCR_REMOTE_SURFACE_V1_PIN 14
427 #define ZCR_REMOTE_SURFACE_V1_UNPIN 15 452 #define ZCR_REMOTE_SURFACE_V1_UNPIN 15
428 #define ZCR_REMOTE_SURFACE_V1_SET_SYSTEM_MODAL 16 453 #define ZCR_REMOTE_SURFACE_V1_SET_SYSTEM_MODAL 16
429 #define ZCR_REMOTE_SURFACE_V1_UNSET_SYSTEM_MODAL 17 454 #define ZCR_REMOTE_SURFACE_V1_UNSET_SYSTEM_MODAL 17
430 #define ZCR_REMOTE_SURFACE_V1_SET_MOVING» 18 455 #define ZCR_REMOTE_SURFACE_V1_SET_RECTANGULAR_SURFACE_SHADOW» 18
431 #define ZCR_REMOTE_SURFACE_V1_UNSET_MOVING» 19 456 #define ZCR_REMOTE_SURFACE_V1_ACK_CONFIGURE» 19
457 #define ZCR_REMOTE_SURFACE_V1_SET_MOVING» 20
458 #define ZCR_REMOTE_SURFACE_V1_UNSET_MOVING» 21
432 459
433 /** 460 /**
434 * @ingroup iface_zcr_remote_surface_v1 461 * @ingroup iface_zcr_remote_surface_v1
435 */ 462 */
436 #define ZCR_REMOTE_SURFACE_V1_DESTROY_SINCE_VERSION 1 463 #define ZCR_REMOTE_SURFACE_V1_DESTROY_SINCE_VERSION 1
437 /** 464 /**
438 * @ingroup iface_zcr_remote_surface_v1 465 * @ingroup iface_zcr_remote_surface_v1
439 */ 466 */
440 #define ZCR_REMOTE_SURFACE_V1_SET_APP_ID_SINCE_VERSION 1 467 #define ZCR_REMOTE_SURFACE_V1_SET_APP_ID_SINCE_VERSION 1
441 /** 468 /**
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
498 * @ingroup iface_zcr_remote_surface_v1 525 * @ingroup iface_zcr_remote_surface_v1
499 */ 526 */
500 #define ZCR_REMOTE_SURFACE_V1_SET_SYSTEM_MODAL_SINCE_VERSION 1 527 #define ZCR_REMOTE_SURFACE_V1_SET_SYSTEM_MODAL_SINCE_VERSION 1
501 /** 528 /**
502 * @ingroup iface_zcr_remote_surface_v1 529 * @ingroup iface_zcr_remote_surface_v1
503 */ 530 */
504 #define ZCR_REMOTE_SURFACE_V1_UNSET_SYSTEM_MODAL_SINCE_VERSION 1 531 #define ZCR_REMOTE_SURFACE_V1_UNSET_SYSTEM_MODAL_SINCE_VERSION 1
505 /** 532 /**
506 * @ingroup iface_zcr_remote_surface_v1 533 * @ingroup iface_zcr_remote_surface_v1
507 */ 534 */
508 #define ZCR_REMOTE_SURFACE_V1_SET_MOVING_SINCE_VERSION» 2 535 #define ZCR_REMOTE_SURFACE_V1_SET_RECTANGULAR_SURFACE_SHADOW_SINCE_VERSION» 2
509 /** 536 /**
510 * @ingroup iface_zcr_remote_surface_v1 537 * @ingroup iface_zcr_remote_surface_v1
511 */ 538 */
512 #define ZCR_REMOTE_SURFACE_V1_UNSET_MOVING_SINCE_VERSION» 2 539 #define ZCR_REMOTE_SURFACE_V1_ACK_CONFIGURE_SINCE_VERSION» 3
540 /**
541 * @ingroup iface_zcr_remote_surface_v1
542 */
543 #define ZCR_REMOTE_SURFACE_V1_SET_MOVING_SINCE_VERSION» 3
544 /**
545 * @ingroup iface_zcr_remote_surface_v1
546 */
547 #define ZCR_REMOTE_SURFACE_V1_UNSET_MOVING_SINCE_VERSION» 3
513 548
514 /** @ingroup iface_zcr_remote_surface_v1 */ 549 /** @ingroup iface_zcr_remote_surface_v1 */
515 static inline void 550 static inline void
516 zcr_remote_surface_v1_set_user_data(struct zcr_remote_surface_v1 *zcr_remote_sur face_v1, void *user_data) 551 zcr_remote_surface_v1_set_user_data(struct zcr_remote_surface_v1 *zcr_remote_sur face_v1, void *user_data)
517 { 552 {
518 wl_proxy_set_user_data((struct wl_proxy *) zcr_remote_surface_v1, user_d ata); 553 wl_proxy_set_user_data((struct wl_proxy *) zcr_remote_surface_v1, user_d ata);
519 } 554 }
520 555
521 /** @ingroup iface_zcr_remote_surface_v1 */ 556 /** @ingroup iface_zcr_remote_surface_v1 */
522 static inline void * 557 static inline void *
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
596 static inline void 631 static inline void
597 zcr_remote_surface_v1_set_scale(struct zcr_remote_surface_v1 *zcr_remote_surface _v1, wl_fixed_t scale) 632 zcr_remote_surface_v1_set_scale(struct zcr_remote_surface_v1 *zcr_remote_surface _v1, wl_fixed_t scale)
598 { 633 {
599 wl_proxy_marshal((struct wl_proxy *) zcr_remote_surface_v1, 634 wl_proxy_marshal((struct wl_proxy *) zcr_remote_surface_v1,
600 ZCR_REMOTE_SURFACE_V1_SET_SCALE, scale); 635 ZCR_REMOTE_SURFACE_V1_SET_SCALE, scale);
601 } 636 }
602 637
603 /** 638 /**
604 * @ingroup iface_zcr_remote_surface_v1 639 * @ingroup iface_zcr_remote_surface_v1
605 * 640 *
606 * Request that surface needs a rectangular shadow. 641 * [Deprecated] Request that surface needs a rectangular shadow.
607 * 642 *
608 * This is only a request that the surface should have a rectangular 643 * This is only a request that the surface should have a rectangular
609 * shadow. The compositor may choose to ignore this request. 644 * shadow. The compositor may choose to ignore this request.
610 * 645 *
611 * The arguments are given in the output coordinate space and specifies 646 * The arguments are given in the output coordinate space and specifies
612 * the inner bounds of the shadow. 647 * the inner bounds of the shadow.
613 * 648 *
614 * The arguments are given in the output coordinate space. 649 * The arguments are given in the output coordinate space.
615 * Specifying zero width and height will disable the shadow. 650 * Specifying zero width and height will disable the shadow.
616 */ 651 */
(...skipping 203 matching lines...) Expand 10 before | Expand all | Expand 10 after
820 static inline void 855 static inline void
821 zcr_remote_surface_v1_unset_system_modal(struct zcr_remote_surface_v1 *zcr_remot e_surface_v1) 856 zcr_remote_surface_v1_unset_system_modal(struct zcr_remote_surface_v1 *zcr_remot e_surface_v1)
822 { 857 {
823 wl_proxy_marshal((struct wl_proxy *) zcr_remote_surface_v1, 858 wl_proxy_marshal((struct wl_proxy *) zcr_remote_surface_v1,
824 ZCR_REMOTE_SURFACE_V1_UNSET_SYSTEM_MODAL); 859 ZCR_REMOTE_SURFACE_V1_UNSET_SYSTEM_MODAL);
825 } 860 }
826 861
827 /** 862 /**
828 * @ingroup iface_zcr_remote_surface_v1 863 * @ingroup iface_zcr_remote_surface_v1
829 * 864 *
865 * Request that surface needs a rectangular shadow.
866 *
867 * This is only a request that the surface should have a rectangular
868 * shadow. The compositor may choose to ignore this request.
869 *
870 * The arguments are given in the remote surface coordinate space and
871 * specifies inner bounds of the shadow. Specifying zero width and height
872 * will disable the shadow.
873 */
874 static inline void
875 zcr_remote_surface_v1_set_rectangular_surface_shadow(struct zcr_remote_surface_v 1 *zcr_remote_surface_v1, int32_t x, int32_t y, int32_t width, int32_t height)
876 {
877 wl_proxy_marshal((struct wl_proxy *) zcr_remote_surface_v1,
878 ZCR_REMOTE_SURFACE_V1_SET_RECTANGULAR_SURFACE_SHADOW, x , y, width, height);
879 }
880
881 /**
882 * @ingroup iface_zcr_remote_surface_v1
883 *
884 * When a configure event is received, if a client commits the
885 * surface in response to the configure event, then the client
886 * must make an ack_configure request sometime before the commit
887 * request, passing along the serial of the configure event.
888 *
889 * For instance, the compositor might use this information during display
890 * configuration to change its coordinate space for set_window_geometry
891 * requests only when the client has switched to the new coordinate space.
892 *
893 * If the client receives multiple configure events before it
894 * can respond to one, it only has to ack the last configure event.
895 *
896 * A client is not required to commit immediately after sending
897 * an ack_configure request - it may even ack_configure several times
898 * before its next surface commit.
899 *
900 * A client may send multiple ack_configure requests before committing, but
901 * only the last request sent before a commit indicates which configure
902 * event the client really is responding to.
903 */
904 static inline void
905 zcr_remote_surface_v1_ack_configure(struct zcr_remote_surface_v1 *zcr_remote_sur face_v1, uint32_t serial)
906 {
907 wl_proxy_marshal((struct wl_proxy *) zcr_remote_surface_v1,
908 ZCR_REMOTE_SURFACE_V1_ACK_CONFIGURE, serial);
909 }
910
911 /**
912 * @ingroup iface_zcr_remote_surface_v1
913 *
830 * Notifies the compositor when an interactive, user-driven move of the 914 * Notifies the compositor when an interactive, user-driven move of the
831 * surface starts. The compositor may assume that subsequent 915 * surface starts. The compositor may assume that subsequent
832 * set_window_geometry requests are position updates until it receives a 916 * set_window_geometry requests are position updates until it receives a
833 * unset_moving request. 917 * unset_moving request.
834 */ 918 */
835 static inline void 919 static inline void
836 zcr_remote_surface_v1_set_moving(struct zcr_remote_surface_v1 *zcr_remote_surfac e_v1) 920 zcr_remote_surface_v1_set_moving(struct zcr_remote_surface_v1 *zcr_remote_surfac e_v1)
837 { 921 {
838 wl_proxy_marshal((struct wl_proxy *) zcr_remote_surface_v1, 922 wl_proxy_marshal((struct wl_proxy *) zcr_remote_surface_v1,
839 ZCR_REMOTE_SURFACE_V1_SET_MOVING); 923 ZCR_REMOTE_SURFACE_V1_SET_MOVING);
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
892 ZCR_NOTIFICATION_SURFACE_V1_DESTROY); 976 ZCR_NOTIFICATION_SURFACE_V1_DESTROY);
893 977
894 wl_proxy_destroy((struct wl_proxy *) zcr_notification_surface_v1); 978 wl_proxy_destroy((struct wl_proxy *) zcr_notification_surface_v1);
895 } 979 }
896 980
897 #ifdef __cplusplus 981 #ifdef __cplusplus
898 } 982 }
899 #endif 983 #endif
900 984
901 #endif 985 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698