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

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

Issue 2779823002: exo: Send DSF of internal display to ARC (Closed)
Patch Set: Send is_internal flag instead 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_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 241 matching lines...) Expand 10 before | Expand all | Expand 10 after
252 struct zcr_remote_shell_v1 *zcr_remote_she ll_v1, 252 struct zcr_remote_shell_v1 *zcr_remote_she ll_v1,
253 int32_t width, 253 int32_t width,
254 int32_t height, 254 int32_t height,
255 int32_t transform, 255 int32_t transform,
256 wl_fixed_t scale_factor, 256 wl_fixed_t scale_factor,
257 int32_t work_area_inset_left, 257 int32_t work_area_inset_left,
258 int32_t work_area_inset_top, 258 int32_t work_area_inset_top,
259 int32_t work_area_inset_right, 259 int32_t work_area_inset_right,
260 int32_t work_area_inset_bottom, 260 int32_t work_area_inset_bottom,
261 uint32_t layout_mode); 261 uint32_t layout_mode);
262 /** 262 » /**
263 * area of remote shell 263 » * area of remote shell
264 * 264 » *
265 * Defines an area of the remote shell used for layout. Each 265 » * Defines an area of the remote shell used for layout. Each
266 * series of "workspace" events must be terminated by a "configure" 266 » * series of "workspace" events must be terminated by a "configure"
267 * event. 267 » * event.
268 * @since 5 268 » * @since 5
269 */ 269 » */
270 void (*workspace)(void *data, 270 » void (*workspace)(void *data,
271 struct zcr_remote_shell_v1 *zcr_remote_shell_v1, 271 struct zcr_remote_shell_v1 *zcr_remote_shell_v1,
272 uint32_t id_hi, 272 uint32_t id_hi,
273 uint32_t id_lo, 273 uint32_t id_lo,
274 int32_t x, 274 int32_t x,
275 int32_t y, 275 int32_t y,
276 int32_t width, 276 int32_t width,
277 int32_t height, 277 int32_t height,
278 int32_t inset_left, 278 int32_t inset_left,
279 int32_t inset_top, 279 int32_t inset_top,
280 int32_t inset_right, 280 int32_t inset_right,
281 int32_t inset_bottom, 281 int32_t inset_bottom,
282 int32_t transform, 282 int32_t transform,
283 » » » wl_fixed_t scale_factor); 283 » » » wl_fixed_t scale_factor,
284 /** 284 » » » uint32_t is_internal);
285 * suggests configuration of remote shell 285 » /**
286 * 286 » * suggests configuration of remote shell
287 * Suggests a new configuration of the remote shell. Preceded by 287 » *
288 * a series of "workspace" events. 288 » * Suggests a new configuration of the remote shell. Preceded by
289 * @since 5 289 » * a series of "workspace" events.
290 */ 290 » * @since 5
291 void (*configure)(void *data, 291 » */
292 » void (*configure)(void *data,
292 struct zcr_remote_shell_v1 *zcr_remote_shell_v1, 293 struct zcr_remote_shell_v1 *zcr_remote_shell_v1,
293 uint32_t layout_mode); 294 uint32_t layout_mode);
294 }; 295 };
295 296
296 /** 297 /**
297 * @ingroup iface_zcr_remote_shell_v1 298 * @ingroup iface_zcr_remote_shell_v1
298 */ 299 */
299 static inline int 300 static inline int
300 zcr_remote_shell_v1_add_listener(struct zcr_remote_shell_v1 *zcr_remote_shell_v1 , 301 zcr_remote_shell_v1_add_listener(struct zcr_remote_shell_v1 *zcr_remote_shell_v1 ,
301 const struct zcr_remote_shell_v1_listener *list ener, void *data) 302 const struct zcr_remote_shell_v1_listener *list ener, void *data)
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after
418 419
419 #ifndef ZCR_REMOTE_SURFACE_V1_SYSTEMUI_VISIBILITY_STATE_ENUM 420 #ifndef ZCR_REMOTE_SURFACE_V1_SYSTEMUI_VISIBILITY_STATE_ENUM
420 #define ZCR_REMOTE_SURFACE_V1_SYSTEMUI_VISIBILITY_STATE_ENUM 421 #define ZCR_REMOTE_SURFACE_V1_SYSTEMUI_VISIBILITY_STATE_ENUM
421 /** 422 /**
422 * @ingroup iface_zcr_remote_surface_v1 423 * @ingroup iface_zcr_remote_surface_v1
423 * systemui visibility behavior 424 * systemui visibility behavior
424 * 425 *
425 * Determine the visibility behavior of the system UI. 426 * Determine the visibility behavior of the system UI.
426 */ 427 */
427 enum zcr_remote_surface_v1_systemui_visibility_state { 428 enum zcr_remote_surface_v1_systemui_visibility_state {
428 /** 429 » /**
429 * system ui is visible 430 » * system ui is visible
430 */ 431 » */
431 ZCR_REMOTE_SURFACE_V1_SYSTEMUI_VISIBILITY_STATE_VISIBLE = 1, 432 » ZCR_REMOTE_SURFACE_V1_SYSTEMUI_VISIBILITY_STATE_VISIBLE = 1,
432 /** 433 » /**
433 * system ui autohides and is not sticky 434 » * system ui autohides and is not sticky
434 */ 435 » */
435 ZCR_REMOTE_SURFACE_V1_SYSTEMUI_VISIBILITY_STATE_AUTOHIDE_NON_STICKY = 2, 436 » ZCR_REMOTE_SURFACE_V1_SYSTEMUI_VISIBILITY_STATE_AUTOHIDE_NON_STICKY = 2,
436 /** 437 » /**
437 * system ui autohides and is sticky 438 » * system ui autohides and is sticky
438 */ 439 » */
439 ZCR_REMOTE_SURFACE_V1_SYSTEMUI_VISIBILITY_STATE_AUTOHIDE_STICKY = 3, 440 » ZCR_REMOTE_SURFACE_V1_SYSTEMUI_VISIBILITY_STATE_AUTOHIDE_STICKY = 3,
440 }; 441 };
441 #endif /* ZCR_REMOTE_SURFACE_V1_SYSTEMUI_VISIBILITY_STATE_ENUM */ 442 #endif /* ZCR_REMOTE_SURFACE_V1_SYSTEMUI_VISIBILITY_STATE_ENUM */
442 443
443 /** 444 /**
444 * @ingroup iface_zcr_remote_surface_v1 445 * @ingroup iface_zcr_remote_surface_v1
445 * @struct zcr_remote_surface_v1_listener 446 * @struct zcr_remote_surface_v1_listener
446 */ 447 */
447 struct zcr_remote_surface_v1_listener { 448 struct zcr_remote_surface_v1_listener {
448 /** 449 /**
449 * surface wants to be closed 450 * surface wants to be closed
(...skipping 16 matching lines...) Expand all
466 * compositor when the surface state changed. 467 * compositor when the surface state changed.
467 * 468 *
468 * This is an event to notify that the window state changed in 469 * This is an event to notify that the window state changed in
469 * compositor. The state change may be triggered by a client's 470 * compositor. The state change may be triggered by a client's
470 * request, or some user action directly handled by the compositor. 471 * request, or some user action directly handled by the compositor.
471 * The client may choose to ignore this event. 472 * The client may choose to ignore this event.
472 */ 473 */
473 void (*state_type_changed)(void *data, 474 void (*state_type_changed)(void *data,
474 struct zcr_remote_surface_v1 *zcr_remote_surf ace_v1, 475 struct zcr_remote_surface_v1 *zcr_remote_surf ace_v1,
475 uint32_t state_type); 476 uint32_t state_type);
476 /** 477 » /**
477 * suggest a surface change 478 » * suggest a surface change
478 * 479 » *
479 * The configure event asks the client to change surface state. 480 » * The configure event asks the client to change surface state.
480 * 481 » *
481 * The client must apply the origin offset to window positions in 482 » * The client must apply the origin offset to window positions in
482 * set_window_geometry requests. 483 » * set_window_geometry requests.
483 * 484 » *
484 * The states listed in the event are state_type values, and might 485 » * The states listed in the event are state_type values, and might
485 * change due to a client request or an event directly handled by 486 » * change due to a client request or an event directly handled by
486 * the compositor. 487 » * the compositor.
487 * 488 » *
488 * Clients should arrange their surface for the new state, and then 489 » * Clients should arrange their surface for the new state, and then
489 * send an ack_configure request with the serial sent in this 490 » * send an ack_configure request with the serial sent in this
490 * configure event at some point before committing the new surface. 491 » * configure event at some point before committing the new surface.
491 * 492 » *
492 * If the client receives multiple configure events before it can 493 » * If the client receives multiple configure events before it can
493 * respond to one, it is free to discard all but the last event it 494 » * respond to one, it is free to discard all but the last event it
494 * received. 495 » * received.
495 * @since 5 496 » * @since 5
496 */ 497 » */
497 void (*configure)(void *data, 498 » void (*configure)(void *data,
498 struct zcr_remote_surface_v1 *zcr_remote_surface_v1, 499 struct zcr_remote_surface_v1 *zcr_remote_surface_v1,
499 int32_t origin_offset_x, 500 int32_t origin_offset_x,
500 int32_t origin_offset_y, 501 int32_t origin_offset_y,
501 struct wl_array *states, 502 struct wl_array *states,
502 uint32_t serial); 503 uint32_t serial);
503 }; 504 };
504 505
505 /** 506 /**
506 * @ingroup iface_zcr_remote_surface_v1 507 * @ingroup iface_zcr_remote_surface_v1
507 */ 508 */
(...skipping 468 matching lines...) Expand 10 before | Expand all | Expand 10 after
976 static inline void 977 static inline void
977 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) 978 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)
978 { 979 {
979 wl_proxy_marshal((struct wl_proxy *) zcr_remote_surface_v1, 980 wl_proxy_marshal((struct wl_proxy *) zcr_remote_surface_v1,
980 ZCR_REMOTE_SURFACE_V1_SET_RECTANGULAR_SURFACE_SHADOW, x , y, width, height); 981 ZCR_REMOTE_SURFACE_V1_SET_RECTANGULAR_SURFACE_SHADOW, x , y, width, height);
981 } 982 }
982 983
983 /** 984 /**
984 * @ingroup iface_zcr_remote_surface_v1 985 * @ingroup iface_zcr_remote_surface_v1
985 * 986 *
986 * Requests how the surface will change the visibility of the system UI when it 987 * Requests how the surface will change the visibility of the system UI when it is made active.
987 * is made active.
988 */ 988 */
989 static inline void zcr_remote_surface_v1_set_systemui_visibility( 989 static inline void
990 struct zcr_remote_surface_v1* zcr_remote_surface_v1, 990 zcr_remote_surface_v1_set_systemui_visibility(struct zcr_remote_surface_v1 *zcr_ remote_surface_v1, uint32_t visibility)
991 uint32_t visibility) { 991 {
992 wl_proxy_marshal((struct wl_proxy*)zcr_remote_surface_v1, 992 » wl_proxy_marshal((struct wl_proxy *) zcr_remote_surface_v1,
993 ZCR_REMOTE_SURFACE_V1_SET_SYSTEMUI_VISIBILITY, visibility); 993 » » » ZCR_REMOTE_SURFACE_V1_SET_SYSTEMUI_VISIBILITY, visibili ty);
994 } 994 }
995 995
996 /** 996 /**
997 * @ingroup iface_zcr_remote_surface_v1 997 * @ingroup iface_zcr_remote_surface_v1
998 * 998 *
999 * Request that surface is made to be always on top. 999 * Request that surface is made to be always on top.
1000 * 1000 *
1001 * This is only a request that the window should be always on top. 1001 * This is only a request that the window should be always on top.
1002 * The compositor may choose to ignore this request. 1002 * The compositor may choose to ignore this request.
1003 * 1003 *
1004 */ 1004 */
1005 static inline void zcr_remote_surface_v1_set_always_on_top( 1005 static inline void
1006 struct zcr_remote_surface_v1* zcr_remote_surface_v1) { 1006 zcr_remote_surface_v1_set_always_on_top(struct zcr_remote_surface_v1 *zcr_remote _surface_v1)
1007 wl_proxy_marshal((struct wl_proxy*)zcr_remote_surface_v1, 1007 {
1008 ZCR_REMOTE_SURFACE_V1_SET_ALWAYS_ON_TOP); 1008 » wl_proxy_marshal((struct wl_proxy *) zcr_remote_surface_v1,
1009 » » » ZCR_REMOTE_SURFACE_V1_SET_ALWAYS_ON_TOP);
1009 } 1010 }
1010 1011
1011 /** 1012 /**
1012 * @ingroup iface_zcr_remote_surface_v1 1013 * @ingroup iface_zcr_remote_surface_v1
1013 * 1014 *
1014 * Request that surface is made to be not always on top. 1015 * Request that surface is made to be not always on top.
1015 * 1016 *
1016 * This is only a request that the window should be not always on top. 1017 * This is only a request that the window should be not always on top.
1017 * The compositor may choose to ignore this request. 1018 * The compositor may choose to ignore this request.
1018 */ 1019 */
1019 static inline void zcr_remote_surface_v1_unset_always_on_top( 1020 static inline void
1020 struct zcr_remote_surface_v1* zcr_remote_surface_v1) { 1021 zcr_remote_surface_v1_unset_always_on_top(struct zcr_remote_surface_v1 *zcr_remo te_surface_v1)
1021 wl_proxy_marshal((struct wl_proxy*)zcr_remote_surface_v1, 1022 {
1022 ZCR_REMOTE_SURFACE_V1_UNSET_ALWAYS_ON_TOP); 1023 » wl_proxy_marshal((struct wl_proxy *) zcr_remote_surface_v1,
1024 » » » ZCR_REMOTE_SURFACE_V1_UNSET_ALWAYS_ON_TOP);
1023 } 1025 }
1024 1026
1025 /** 1027 /**
1026 * @ingroup iface_zcr_remote_surface_v1 1028 * @ingroup iface_zcr_remote_surface_v1
1027 * 1029 *
1028 * When a configure event is received, if a client commits the 1030 * When a configure event is received, if a client commits the
1029 * surface in response to the configure event, then the client 1031 * surface in response to the configure event, then the client
1030 * must make an ack_configure request sometime before the commit 1032 * must make an ack_configure request sometime before the commit
1031 * request, passing along the serial of the configure event. 1033 * request, passing along the serial of the configure event.
1032 * 1034 *
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
1113 ZCR_NOTIFICATION_SURFACE_V1_DESTROY); 1115 ZCR_NOTIFICATION_SURFACE_V1_DESTROY);
1114 1116
1115 wl_proxy_destroy((struct wl_proxy *) zcr_notification_surface_v1); 1117 wl_proxy_destroy((struct wl_proxy *) zcr_notification_surface_v1);
1116 } 1118 }
1117 1119
1118 #ifdef __cplusplus 1120 #ifdef __cplusplus
1119 } 1121 }
1120 #endif 1122 #endif
1121 1123
1122 #endif 1124 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698