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

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: updated interface comment 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 195 matching lines...) Expand 10 before | Expand all | Expand 10 after
206 206
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 {
232 /** 232 /**
233 * destroy remote_shell 233 * destroy remote_shell
(...skipping 34 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_DISPLAY_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_DISPLAY_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 display_changed event to the client owning the resource.
333 * @param resource_ The client's resource
334 */
335 static inline void zwp_remote_shell_v1_send_display_changed(
336 struct wl_resource* resource_,
337 int32_t output_origin_x,
338 int32_t output_origin_y,
339 int32_t output_width_mm,
340 int32_t output_height_mm,
341 int32_t output_subpixel_layout,
342 int32_t output_transform,
343 int32_t output_mode_width_pixels,
344 int32_t output_mode_height_pixels,
345 int32_t output_mode_refresh_rate_mhz,
346 wl_fixed_t display_scale_factor,
347 int32_t display_width,
348 int32_t display_height,
349 int32_t work_area_inset_left,
350 int32_t work_area_inset_top,
351 int32_t work_area_inset_right,
352 int32_t work_area_inset_bottom,
353 uint32_t layout_mode) {
354 wl_resource_post_event(
355 resource_, ZWP_REMOTE_SHELL_V1_DISPLAY_CHANGED, output_origin_x,
356 output_origin_y, output_width_mm, output_height_mm,
357 output_subpixel_layout, output_transform, output_mode_width_pixels,
358 output_mode_height_pixels, output_mode_refresh_rate_mhz,
359 display_scale_factor, display_width, display_height, work_area_inset_left,
360 work_area_inset_top, work_area_inset_right, work_area_inset_bottom,
361 layout_mode);
362 }
363
364 /**
326 * @ingroup iface_zwp_remote_surface_v1 365 * @ingroup iface_zwp_remote_surface_v1
327 * @struct zwp_remote_surface_v1_interface 366 * @struct zwp_remote_surface_v1_interface
328 */ 367 */
329 struct zwp_remote_surface_v1_interface { 368 struct zwp_remote_surface_v1_interface {
330 /** 369 /**
331 * Destroy the remote_surface 370 * Destroy the remote_surface
332 * 371 *
333 * Unmap and destroy the window. The window will be effectively 372 * Unmap and destroy the window. The window will be effectively
334 * hidden from the user's point of view, and all state will be 373 * hidden from the user's point of view, and all state will be
335 * lost. 374 * lost.
(...skipping 200 matching lines...) Expand 10 before | Expand all | Expand 10 after
536 void (*set_system_modal)(struct wl_client *client, 575 void (*set_system_modal)(struct wl_client *client,
537 struct wl_resource *resource); 576 struct wl_resource *resource);
538 /** 577 /**
539 * suggests a re-layout of remote shell input area 578 * suggests a re-layout of remote shell input area
540 * 579 *
541 * Suggests a surface should become non system modal. 580 * Suggests a surface should become non system modal.
542 * @since 8 581 * @since 8
543 */ 582 */
544 void (*unset_system_modal)(struct wl_client *client, 583 void (*unset_system_modal)(struct wl_client *client,
545 struct wl_resource *resource); 584 struct wl_resource *resource);
585 /**
586 * suggests the window's background opacity
587 *
588 * Suggests the window's background opacity.
589 * @since 9
590 */
591 void (*set_background_opacity)(struct wl_client* client,
592 struct wl_resource* resource,
593 wl_fixed_t opacity);
546 }; 594 };
547 595
548 #define ZWP_REMOTE_SURFACE_V1_SET_FULLSCREEN 0 596 #define ZWP_REMOTE_SURFACE_V1_SET_FULLSCREEN 0
549 #define ZWP_REMOTE_SURFACE_V1_UNSET_FULLSCREEN 1 597 #define ZWP_REMOTE_SURFACE_V1_UNSET_FULLSCREEN 1
550 #define ZWP_REMOTE_SURFACE_V1_CLOSE 2 598 #define ZWP_REMOTE_SURFACE_V1_CLOSE 2
551 #define ZWP_REMOTE_SURFACE_V1_SET_MAXIMIZED 3 599 #define ZWP_REMOTE_SURFACE_V1_SET_MAXIMIZED 3
552 #define ZWP_REMOTE_SURFACE_V1_UNSET_MAXIMIZED 4 600 #define ZWP_REMOTE_SURFACE_V1_UNSET_MAXIMIZED 4
553 #define ZWP_REMOTE_SURFACE_V1_SET_MINIMIZED 5 601 #define ZWP_REMOTE_SURFACE_V1_SET_MINIMIZED 5
554 #define ZWP_REMOTE_SURFACE_V1_UNSET_MINIMIZED 6 602 #define ZWP_REMOTE_SURFACE_V1_UNSET_MINIMIZED 6
555 #define ZWP_REMOTE_SURFACE_V1_SET_PINNED 7 603 #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, 768 void (*destroy)(struct wl_client *client,
721 struct wl_resource *resource); 769 struct wl_resource *resource);
722 }; 770 };
723 771
724 772
725 #ifdef __cplusplus 773 #ifdef __cplusplus
726 } 774 }
727 #endif 775 #endif
728 776
729 #endif 777 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698