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

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

Issue 2189073003: Add configuration_changed event and set_background_opacity request. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: formatting Created 4 years, 4 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 196 matching lines...) Expand 10 before | Expand all | Expand 10 after
207 #ifndef ZWP_REMOTE_SHELL_V1_LAYOUT_MODE_ENUM 207 #ifndef ZWP_REMOTE_SHELL_V1_LAYOUT_MODE_ENUM
208 #define ZWP_REMOTE_SHELL_V1_LAYOUT_MODE_ENUM 208 #define ZWP_REMOTE_SHELL_V1_LAYOUT_MODE_ENUM
209 /** 209 /**
210 * @ingroup iface_zwp_remote_shell_v1 210 * @ingroup iface_zwp_remote_shell_v1
211 * the layout mode 211 * the layout mode
212 * 212 *
213 * Determine how a client should layout surfaces. 213 * Determine how a client should layout surfaces.
214 */ 214 */
215 enum zwp_remote_shell_v1_layout_mode { 215 enum zwp_remote_shell_v1_layout_mode {
216 /** 216 /**
217 » * mulitple windows 217 » * multiple windows
218 */ 218 */
219 ZWP_REMOTE_SHELL_V1_LAYOUT_MODE_WINDOWED = 1, 219 ZWP_REMOTE_SHELL_V1_LAYOUT_MODE_WINDOWED = 1,
220 /** 220 /**
221 » * restricted mode for table 221 » * restricted mode for tablet
222 */ 222 */
223 ZWP_REMOTE_SHELL_V1_LAYOUT_MODE_TABLET = 2, 223 ZWP_REMOTE_SHELL_V1_LAYOUT_MODE_TABLET = 2,
224 }; 224 };
225 #endif /* ZWP_REMOTE_SHELL_V1_LAYOUT_MODE_ENUM */ 225 #endif /* ZWP_REMOTE_SHELL_V1_LAYOUT_MODE_ENUM */
226 226
227 /** 227 /**
228 * @ingroup iface_zwp_remote_shell_v1 228 * @ingroup iface_zwp_remote_shell_v1
229 * @struct zwp_remote_shell_v1_interface 229 * @struct zwp_remote_shell_v1_interface
230 */ 230 */
231 struct zwp_remote_shell_v1_interface { 231 struct zwp_remote_shell_v1_interface {
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
268 void (*get_notification_surface)(struct wl_client *client, 268 void (*get_notification_surface)(struct wl_client *client,
269 struct wl_resource *resource, 269 struct wl_resource *resource,
270 uint32_t id, 270 uint32_t id,
271 struct wl_resource *surface, 271 struct wl_resource *surface,
272 const char *notification_id); 272 const char *notification_id);
273 }; 273 };
274 274
275 #define ZWP_REMOTE_SHELL_V1_CONFIGURE 0 275 #define ZWP_REMOTE_SHELL_V1_CONFIGURE 0
276 #define ZWP_REMOTE_SHELL_V1_ACTIVATED 1 276 #define ZWP_REMOTE_SHELL_V1_ACTIVATED 1
277 #define ZWP_REMOTE_SHELL_V1_LAYOUT_MODE_CHANGED 2 277 #define ZWP_REMOTE_SHELL_V1_LAYOUT_MODE_CHANGED 2
278 #define ZWP_REMOTE_SHELL_V1_CONFIGURATION_CHANGED 3
278 279
279 /** 280 /**
280 * @ingroup iface_zwp_remote_shell_v1 281 * @ingroup iface_zwp_remote_shell_v1
281 */ 282 */
282 #define ZWP_REMOTE_SHELL_V1_CONFIGURE_SINCE_VERSION 1 283 #define ZWP_REMOTE_SHELL_V1_CONFIGURE_SINCE_VERSION 1
283 /** 284 /**
284 * @ingroup iface_zwp_remote_shell_v1 285 * @ingroup iface_zwp_remote_shell_v1
285 */ 286 */
286 #define ZWP_REMOTE_SHELL_V1_ACTIVATED_SINCE_VERSION 1 287 #define ZWP_REMOTE_SHELL_V1_ACTIVATED_SINCE_VERSION 1
287 /** 288 /**
288 * @ingroup iface_zwp_remote_shell_v1 289 * @ingroup iface_zwp_remote_shell_v1
289 */ 290 */
290 #define ZWP_REMOTE_SHELL_V1_LAYOUT_MODE_CHANGED_SINCE_VERSION 8 291 #define ZWP_REMOTE_SHELL_V1_LAYOUT_MODE_CHANGED_SINCE_VERSION 8
292 /**
293 * @ingroup iface_zwp_remote_shell_v1
294 */
295 #define ZWP_REMOTE_SHELL_V1_CONFIGURATION_CHANGED_SINCE_VERSION 9
291 296
292 /** 297 /**
293 * @ingroup iface_zwp_remote_shell_v1 298 * @ingroup iface_zwp_remote_shell_v1
294 * Sends an configure event to the client owning the resource. 299 * Sends an configure event to the client owning the resource.
295 * @param resource_ The client's resource 300 * @param resource_ The client's resource
296 */ 301 */
297 static inline void 302 static inline void
298 zwp_remote_shell_v1_send_configure(struct wl_resource *resource_, int32_t width, int32_t height, int32_t work_area_inset_left, int32_t work_area_inset_top, int3 2_t work_area_inset_right, int32_t work_area_inset_bottom) 303 zwp_remote_shell_v1_send_configure(struct wl_resource *resource_, int32_t width, int32_t height, int32_t work_area_inset_left, int32_t work_area_inset_top, int3 2_t work_area_inset_right, int32_t work_area_inset_bottom)
299 { 304 {
300 wl_resource_post_event(resource_, ZWP_REMOTE_SHELL_V1_CONFIGURE, width, height, work_area_inset_left, work_area_inset_top, work_area_inset_right, work_a rea_inset_bottom); 305 wl_resource_post_event(resource_, ZWP_REMOTE_SHELL_V1_CONFIGURE, width, height, work_area_inset_left, work_area_inset_top, work_area_inset_right, work_a rea_inset_bottom);
(...skipping 15 matching lines...) Expand all
316 * Sends an layout_mode_changed event to the client owning the resource. 321 * Sends an layout_mode_changed event to the client owning the resource.
317 * @param resource_ The client's resource 322 * @param resource_ The client's resource
318 */ 323 */
319 static inline void 324 static inline void
320 zwp_remote_shell_v1_send_layout_mode_changed(struct wl_resource *resource_, uint 32_t layout_mode) 325 zwp_remote_shell_v1_send_layout_mode_changed(struct wl_resource *resource_, uint 32_t layout_mode)
321 { 326 {
322 wl_resource_post_event(resource_, ZWP_REMOTE_SHELL_V1_LAYOUT_MODE_CHANGE D, layout_mode); 327 wl_resource_post_event(resource_, ZWP_REMOTE_SHELL_V1_LAYOUT_MODE_CHANGE D, layout_mode);
323 } 328 }
324 329
325 /** 330 /**
331 * @ingroup iface_zwp_remote_shell_v1
332 * Sends an configuration_changed event to the client owning the resource.
333 * @param resource_ The client's resource
334 */
335 static inline void
336 zwp_remote_shell_v1_send_configuration_changed(struct wl_resource *resource_, in t32_t width, int32_t height, int32_t transform, wl_fixed_t scale_factor, int32_t work_area_inset_left, int32_t work_area_inset_top, int32_t work_area_inset_righ t, int32_t work_area_inset_bottom, uint32_t layout_mode)
337 {
338 wl_resource_post_event(resource_, ZWP_REMOTE_SHELL_V1_CONFIGURATION_CHAN GED, width, height, transform, scale_factor, work_area_inset_left, work_area_ins et_top, work_area_inset_right, work_area_inset_bottom, layout_mode);
339 }
340
341 /**
326 * @ingroup iface_zwp_remote_surface_v1 342 * @ingroup iface_zwp_remote_surface_v1
327 * @struct zwp_remote_surface_v1_interface 343 * @struct zwp_remote_surface_v1_interface
328 */ 344 */
329 struct zwp_remote_surface_v1_interface { 345 struct zwp_remote_surface_v1_interface {
330 /** 346 /**
331 * Destroy the remote_surface 347 * Destroy the remote_surface
332 * 348 *
333 * Unmap and destroy the window. The window will be effectively 349 * Unmap and destroy the window. The window will be effectively
334 * hidden from the user's point of view, and all state will be 350 * hidden from the user's point of view, and all state will be
335 * lost. 351 * lost.
(...skipping 200 matching lines...) Expand 10 before | Expand all | Expand 10 after
536 void (*set_system_modal)(struct wl_client *client, 552 void (*set_system_modal)(struct wl_client *client,
537 struct wl_resource *resource); 553 struct wl_resource *resource);
538 /** 554 /**
539 * suggests a re-layout of remote shell input area 555 * suggests a re-layout of remote shell input area
540 * 556 *
541 * Suggests a surface should become non system modal. 557 * Suggests a surface should become non system modal.
542 * @since 8 558 * @since 8
543 */ 559 */
544 void (*unset_system_modal)(struct wl_client *client, 560 void (*unset_system_modal)(struct wl_client *client,
545 struct wl_resource *resource); 561 struct wl_resource *resource);
562 /**
563 * suggests the window's background opacity
564 *
565 * Suggests the window's background opacity when the shadow is
566 * requested.
567 * @since 9
568 */
569 void (*set_rectangular_shadow_background_opacity)(struct wl_client *clie nt,
570 struct wl_resource *re source,
571 wl_fixed_t opacity);
546 }; 572 };
547 573
548 #define ZWP_REMOTE_SURFACE_V1_SET_FULLSCREEN 0 574 #define ZWP_REMOTE_SURFACE_V1_SET_FULLSCREEN 0
549 #define ZWP_REMOTE_SURFACE_V1_UNSET_FULLSCREEN 1 575 #define ZWP_REMOTE_SURFACE_V1_UNSET_FULLSCREEN 1
550 #define ZWP_REMOTE_SURFACE_V1_CLOSE 2 576 #define ZWP_REMOTE_SURFACE_V1_CLOSE 2
551 #define ZWP_REMOTE_SURFACE_V1_SET_MAXIMIZED 3 577 #define ZWP_REMOTE_SURFACE_V1_SET_MAXIMIZED 3
552 #define ZWP_REMOTE_SURFACE_V1_UNSET_MAXIMIZED 4 578 #define ZWP_REMOTE_SURFACE_V1_UNSET_MAXIMIZED 4
553 #define ZWP_REMOTE_SURFACE_V1_SET_MINIMIZED 5 579 #define ZWP_REMOTE_SURFACE_V1_SET_MINIMIZED 5
554 #define ZWP_REMOTE_SURFACE_V1_UNSET_MINIMIZED 6 580 #define ZWP_REMOTE_SURFACE_V1_UNSET_MINIMIZED 6
555 #define ZWP_REMOTE_SURFACE_V1_SET_PINNED 7 581 #define ZWP_REMOTE_SURFACE_V1_SET_PINNED 7
(...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after
720 void (*destroy)(struct wl_client *client, 746 void (*destroy)(struct wl_client *client,
721 struct wl_resource *resource); 747 struct wl_resource *resource);
722 }; 748 };
723 749
724 750
725 #ifdef __cplusplus 751 #ifdef __cplusplus
726 } 752 }
727 #endif 753 #endif
728 754
729 #endif 755 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698