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

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

Issue 2664403004: Use pixel coordinates for shadow underlay bounds (Closed)
Patch Set: addressed comment 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 257 matching lines...) Expand 10 before | Expand all | Expand 10 after
268 * the notification_surface role and associated it with a 268 * the notification_surface role and associated it with a
269 * notification id. 269 * notification id.
270 */ 270 */
271 void (*get_notification_surface)(struct wl_client *client, 271 void (*get_notification_surface)(struct wl_client *client,
272 struct wl_resource *resource, 272 struct wl_resource *resource,
273 uint32_t id, 273 uint32_t id,
274 struct wl_resource *surface, 274 struct wl_resource *surface,
275 const char *notification_id); 275 const char *notification_id);
276 }; 276 };
277 277
278 #define ZCR_REMOTE_SHELL_V1_ACTIVATED 0 278 #define ZCR_REMOTE_SHELL_V1_ACTIVATED» 0
279 #define ZCR_REMOTE_SHELL_V1_CONFIGURATION_CHANGED 1 279 #define ZCR_REMOTE_SHELL_V1_CONFIGURATION_CHANGED» 1
280 280
281 /** 281 /**
282 * @ingroup iface_zcr_remote_shell_v1 282 * @ingroup iface_zcr_remote_shell_v1
283 */ 283 */
284 #define ZCR_REMOTE_SHELL_V1_ACTIVATED_SINCE_VERSION 1 284 #define ZCR_REMOTE_SHELL_V1_ACTIVATED_SINCE_VERSION» 1
285 /** 285 /**
286 * @ingroup iface_zcr_remote_shell_v1 286 * @ingroup iface_zcr_remote_shell_v1
287 */ 287 */
288 #define ZCR_REMOTE_SHELL_V1_CONFIGURATION_CHANGED_SINCE_VERSION 1 288 #define ZCR_REMOTE_SHELL_V1_CONFIGURATION_CHANGED_SINCE_VERSION»1
289 289
290 /** 290 /**
291 * @ingroup iface_zcr_remote_shell_v1 291 * @ingroup iface_zcr_remote_shell_v1
292 */
293 #define ZCR_REMOTE_SHELL_V1_DESTROY_SINCE_VERSION 1
294 /**
295 * @ingroup iface_zcr_remote_shell_v1
296 */
297 #define ZCR_REMOTE_SHELL_V1_GET_REMOTE_SURFACE_SINCE_VERSION 1
298 /**
299 * @ingroup iface_zcr_remote_shell_v1
300 */
301 #define ZCR_REMOTE_SHELL_V1_GET_NOTIFICATION_SURFACE_SINCE_VERSION 1
302
303 /**
304 * @ingroup iface_zcr_remote_shell_v1
305 * Sends an activated event to the client owning the resource. 292 * Sends an activated event to the client owning the resource.
306 * @param resource_ The client's resource 293 * @param resource_ The client's resource
307 */ 294 */
308 static inline void 295 static inline void
309 zcr_remote_shell_v1_send_activated(struct wl_resource *resource_, struct wl_reso urce *gained_active, struct wl_resource *lost_active) 296 zcr_remote_shell_v1_send_activated(struct wl_resource *resource_, struct wl_reso urce *gained_active, struct wl_resource *lost_active)
310 { 297 {
311 wl_resource_post_event(resource_, ZCR_REMOTE_SHELL_V1_ACTIVATED, gained_ active, lost_active); 298 wl_resource_post_event(resource_, ZCR_REMOTE_SHELL_V1_ACTIVATED, gained_ active, lost_active);
312 } 299 }
313 300
314 /** 301 /**
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
379 * 366 *
380 * Set a scale factor that will be applied to surface and all 367 * Set a scale factor that will be applied to surface and all
381 * descendants. 368 * descendants.
382 */ 369 */
383 void (*set_scale)(struct wl_client *client, 370 void (*set_scale)(struct wl_client *client,
384 struct wl_resource *resource, 371 struct wl_resource *resource,
385 wl_fixed_t scale); 372 wl_fixed_t scale);
386 /** 373 /**
387 * set a rectangular shadow 374 * set a rectangular shadow
388 * 375 *
389 » * Request that surface needs a rectangular shadow. 376 » * [Deprecated] Request that surface needs a rectangular shadow.
390 * 377 *
391 * This is only a request that the surface should have a 378 * This is only a request that the surface should have a
392 * rectangular shadow. The compositor may choose to ignore this 379 * rectangular shadow. The compositor may choose to ignore this
393 * request. 380 * request.
394 * 381 *
395 * The arguments are given in the output coordinate space and 382 * The arguments are given in the output coordinate space and
396 * specifies the inner bounds of the shadow. 383 * specifies the inner bounds of the shadow.
397 * 384 *
398 * The arguments are given in the output coordinate space. 385 * The arguments are given in the output coordinate space.
399 * Specifying zero width and height will disable the shadow. 386 * Specifying zero width and height will disable the shadow.
(...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after
545 void (*set_system_modal)(struct wl_client *client, 532 void (*set_system_modal)(struct wl_client *client,
546 struct wl_resource *resource); 533 struct wl_resource *resource);
547 /** 534 /**
548 * suggests a re-layout of remote shell input area 535 * suggests a re-layout of remote shell input area
549 * 536 *
550 * Suggests a surface should become non system modal. 537 * Suggests a surface should become non system modal.
551 */ 538 */
552 void (*unset_system_modal)(struct wl_client *client, 539 void (*unset_system_modal)(struct wl_client *client,
553 struct wl_resource *resource); 540 struct wl_resource *resource);
554 /** 541 /**
542 * set a rectangular shadow
543 *
544 * Request that surface needs a rectangular shadow.
545 *
546 * This is only a request that the surface should have a
547 * rectangular shadow. The compositor may choose to ignore this
548 * request.
549 *
550 * The arguments are given in the remote surface coordinate space
551 * and specifies inner bounds of the shadow. Specifying zero width
552 * and height will disable the shadow.
553 * @since 2
554 */
555 void (*set_rectangular_surface_shadow)(struct wl_client *client,
556 struct wl_resource *resource,
557 int32_t x,
558 int32_t y,
559 int32_t width,
560 int32_t height);
561 /**
555 * ack a configure event 562 * ack a configure event
556 * 563 *
557 * When a configure event is received, if a client commits the 564 * When a configure event is received, if a client commits the
558 * surface in response to the configure event, then the client must 565 * surface in response to the configure event, then the client must
559 * make an ack_configure request sometime before the commit 566 * make an ack_configure request sometime before the commit
560 * request, passing along the serial of the configure event. 567 * request, passing along the serial of the configure event.
561 * 568 *
562 * For instance, the compositor might use this information during 569 * For instance, the compositor might use this information during
563 * display configuration to change its coordinate space for 570 * display configuration to change its coordinate space for
564 * set_window_geometry requests only when the client has switched 571 * set_window_geometry requests only when the client has switched
565 * to the new coordinate space. 572 * to the new coordinate space.
566 * 573 *
567 * If the client receives multiple configure events before it can 574 * If the client receives multiple configure events before it can
568 * respond to one, it only has to ack the last configure event. 575 * respond to one, it only has to ack the last configure event.
569 * 576 *
570 * A client is not required to commit immediately after sending an 577 * A client is not required to commit immediately after sending an
571 * ack_configure request - it may even ack_configure several times 578 * ack_configure request - it may even ack_configure several times
572 * before its next surface commit. 579 * before its next surface commit.
573 * 580 *
574 * A client may send multiple ack_configure requests before 581 * A client may send multiple ack_configure requests before
575 * committing, but only the last request sent before a commit 582 * committing, but only the last request sent before a commit
576 * indicates which configure event the client really is responding 583 * indicates which configure event the client really is responding
577 * to. 584 * to.
578 * @param serial the serial from the configure event 585 * @param serial the serial from the configure event
579 » * @since 2 586 » * @since 3
580 */ 587 */
581 void (*ack_configure)(struct wl_client *client, 588 void (*ack_configure)(struct wl_client *client,
582 struct wl_resource *resource, 589 struct wl_resource *resource,
583 uint32_t serial); 590 uint32_t serial);
584 /** 591 /**
585 * interactive move started 592 * interactive move started
586 * 593 *
587 * Notifies the compositor when an interactive, user-driven move 594 * Notifies the compositor when an interactive, user-driven move
588 * of the surface starts. The compositor may assume that subsequent 595 * of the surface starts. The compositor may assume that subsequent
589 * set_window_geometry requests are position updates until it 596 * set_window_geometry requests are position updates until it
590 * receives a unset_moving request. 597 * receives a unset_moving request.
591 » * @since 2 598 » * @since 3
592 */ 599 */
593 void (*set_moving)(struct wl_client *client, 600 void (*set_moving)(struct wl_client *client,
594 struct wl_resource *resource); 601 struct wl_resource *resource);
595 /** 602 /**
596 * interactive move stopped 603 * interactive move stopped
597 * 604 *
598 * Notifies the compositor when an interactive, user-driven move 605 * Notifies the compositor when an interactive, user-driven move
599 * of the surface stops. The compositor may choose to stop the move 606 * of the surface stops. The compositor may choose to stop the move
600 * regardless of this request. 607 * regardless of this request.
601 » * @since 2 608 » * @since 3
602 */ 609 */
603 void (*unset_moving)(struct wl_client *client, 610 void (*unset_moving)(struct wl_client *client,
604 struct wl_resource *resource); 611 struct wl_resource *resource);
605 }; 612 };
606 613
607 #define ZCR_REMOTE_SURFACE_V1_CLOSE 0 614 #define ZCR_REMOTE_SURFACE_V1_CLOSE» 0
608 #define ZCR_REMOTE_SURFACE_V1_STATE_TYPE_CHANGED 1 615 #define ZCR_REMOTE_SURFACE_V1_STATE_TYPE_CHANGED» 1
609 #define ZCR_REMOTE_SURFACE_V1_CONFIGURE 2 616 #define ZCR_REMOTE_SURFACE_V1_CONFIGURE»2
610 617
611 /** 618 /**
612 * @ingroup iface_zcr_remote_surface_v1 619 * @ingroup iface_zcr_remote_surface_v1
613 */ 620 */
614 #define ZCR_REMOTE_SURFACE_V1_CLOSE_SINCE_VERSION 1 621 #define ZCR_REMOTE_SURFACE_V1_CLOSE_SINCE_VERSION» 1
615 /** 622 /**
616 * @ingroup iface_zcr_remote_surface_v1 623 * @ingroup iface_zcr_remote_surface_v1
617 */ 624 */
618 #define ZCR_REMOTE_SURFACE_V1_STATE_TYPE_CHANGED_SINCE_VERSION 1 625 #define ZCR_REMOTE_SURFACE_V1_STATE_TYPE_CHANGED_SINCE_VERSION» 1
619 /** 626 /**
620 * @ingroup iface_zcr_remote_surface_v1 627 * @ingroup iface_zcr_remote_surface_v1
621 */ 628 */
622 #define ZCR_REMOTE_SURFACE_V1_CONFIGURE_SINCE_VERSION 2 629 #define ZCR_REMOTE_SURFACE_V1_CONFIGURE_SINCE_VERSION» 3
623 630
624 /** 631 /**
625 * @ingroup iface_zcr_remote_surface_v1 632 * @ingroup iface_zcr_remote_surface_v1
626 */
627 #define ZCR_REMOTE_SURFACE_V1_DESTROY_SINCE_VERSION 1
628 /**
629 * @ingroup iface_zcr_remote_surface_v1
630 */
631 #define ZCR_REMOTE_SURFACE_V1_SET_APP_ID_SINCE_VERSION 1
632 /**
633 * @ingroup iface_zcr_remote_surface_v1
634 */
635 #define ZCR_REMOTE_SURFACE_V1_SET_WINDOW_GEOMETRY_SINCE_VERSION 1
636 /**
637 * @ingroup iface_zcr_remote_surface_v1
638 */
639 #define ZCR_REMOTE_SURFACE_V1_SET_SCALE_SINCE_VERSION 1
640 /**
641 * @ingroup iface_zcr_remote_surface_v1
642 */
643 #define ZCR_REMOTE_SURFACE_V1_SET_RECTANGULAR_SHADOW_SINCE_VERSION 1
644 /**
645 * @ingroup iface_zcr_remote_surface_v1
646 */
647 #define ZCR_REMOTE_SURFACE_V1_SET_RECTANGULAR_SHADOW_BACKGROUND_OPACITY_SINCE_VE RSION 1
648 /**
649 * @ingroup iface_zcr_remote_surface_v1
650 */
651 #define ZCR_REMOTE_SURFACE_V1_SET_TITLE_SINCE_VERSION 1
652 /**
653 * @ingroup iface_zcr_remote_surface_v1
654 */
655 #define ZCR_REMOTE_SURFACE_V1_SET_TOP_INSET_SINCE_VERSION 1
656 /**
657 * @ingroup iface_zcr_remote_surface_v1
658 */
659 #define ZCR_REMOTE_SURFACE_V1_ACTIVATE_SINCE_VERSION 1
660 /**
661 * @ingroup iface_zcr_remote_surface_v1
662 */
663 #define ZCR_REMOTE_SURFACE_V1_MAXIMIZE_SINCE_VERSION 1
664 /**
665 * @ingroup iface_zcr_remote_surface_v1
666 */
667 #define ZCR_REMOTE_SURFACE_V1_MINIMIZE_SINCE_VERSION 1
668 /**
669 * @ingroup iface_zcr_remote_surface_v1
670 */
671 #define ZCR_REMOTE_SURFACE_V1_RESTORE_SINCE_VERSION 1
672 /**
673 * @ingroup iface_zcr_remote_surface_v1
674 */
675 #define ZCR_REMOTE_SURFACE_V1_FULLSCREEN_SINCE_VERSION 1
676 /**
677 * @ingroup iface_zcr_remote_surface_v1
678 */
679 #define ZCR_REMOTE_SURFACE_V1_UNFULLSCREEN_SINCE_VERSION 1
680 /**
681 * @ingroup iface_zcr_remote_surface_v1
682 */
683 #define ZCR_REMOTE_SURFACE_V1_PIN_SINCE_VERSION 1
684 /**
685 * @ingroup iface_zcr_remote_surface_v1
686 */
687 #define ZCR_REMOTE_SURFACE_V1_UNPIN_SINCE_VERSION 1
688 /**
689 * @ingroup iface_zcr_remote_surface_v1
690 */
691 #define ZCR_REMOTE_SURFACE_V1_SET_SYSTEM_MODAL_SINCE_VERSION 1
692 /**
693 * @ingroup iface_zcr_remote_surface_v1
694 */
695 #define ZCR_REMOTE_SURFACE_V1_UNSET_SYSTEM_MODAL_SINCE_VERSION 1
696 /**
697 * @ingroup iface_zcr_remote_surface_v1
698 */
699 #define ZCR_REMOTE_SURFACE_V1_ACK_CONFIGURE_SINCE_VERSION 2
700 /**
701 * @ingroup iface_zcr_remote_surface_v1
702 */
703 #define ZCR_REMOTE_SURFACE_V1_SET_MOVING_SINCE_VERSION 2
704 /**
705 * @ingroup iface_zcr_remote_surface_v1
706 */
707 #define ZCR_REMOTE_SURFACE_V1_UNSET_MOVING_SINCE_VERSION 2
708
709 /**
710 * @ingroup iface_zcr_remote_surface_v1
711 * Sends an close event to the client owning the resource. 633 * Sends an close event to the client owning the resource.
712 * @param resource_ The client's resource 634 * @param resource_ The client's resource
713 */ 635 */
714 static inline void 636 static inline void
715 zcr_remote_surface_v1_send_close(struct wl_resource *resource_) 637 zcr_remote_surface_v1_send_close(struct wl_resource *resource_)
716 { 638 {
717 wl_resource_post_event(resource_, ZCR_REMOTE_SURFACE_V1_CLOSE); 639 wl_resource_post_event(resource_, ZCR_REMOTE_SURFACE_V1_CLOSE);
718 } 640 }
719 641
720 /** 642 /**
(...skipping 26 matching lines...) Expand all
747 /** 669 /**
748 * Destroy the notification_surface 670 * Destroy the notification_surface
749 * 671 *
750 * Unmap and destroy the notification surface. 672 * Unmap and destroy the notification surface.
751 */ 673 */
752 void (*destroy)(struct wl_client *client, 674 void (*destroy)(struct wl_client *client,
753 struct wl_resource *resource); 675 struct wl_resource *resource);
754 }; 676 };
755 677
756 678
757 /**
758 * @ingroup iface_zcr_notification_surface_v1
759 */
760 #define ZCR_NOTIFICATION_SURFACE_V1_DESTROY_SINCE_VERSION 1
761
762 #ifdef __cplusplus 679 #ifdef __cplusplus
763 } 680 }
764 #endif 681 #endif
765 682
766 #endif 683 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698