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

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

Powered by Google App Engine
This is Rietveld 408576698