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

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

Issue 2448413002: third_party: Revise version 3 of remote shell protocol (Closed)
Patch Set: Squash versions 3 and 4 Created 3 years, 9 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 263 matching lines...) Expand 10 before | Expand all | Expand 10 after
274 */ 274 */
275 void (*get_notification_surface)(struct wl_client *client, 275 void (*get_notification_surface)(struct wl_client *client,
276 struct wl_resource *resource, 276 struct wl_resource *resource,
277 uint32_t id, 277 uint32_t id,
278 struct wl_resource *surface, 278 struct wl_resource *surface,
279 const char *notification_id); 279 const char *notification_id);
280 }; 280 };
281 281
282 #define ZCR_REMOTE_SHELL_V1_ACTIVATED 0 282 #define ZCR_REMOTE_SHELL_V1_ACTIVATED 0
283 #define ZCR_REMOTE_SHELL_V1_CONFIGURATION_CHANGED 1 283 #define ZCR_REMOTE_SHELL_V1_CONFIGURATION_CHANGED 1
284 #define ZCR_REMOTE_SHELL_V1_WORKSPACE 2
285 #define ZCR_REMOTE_SHELL_V1_CONFIGURE 3
284 286
285 /** 287 /**
286 * @ingroup iface_zcr_remote_shell_v1 288 * @ingroup iface_zcr_remote_shell_v1
287 */ 289 */
288 #define ZCR_REMOTE_SHELL_V1_ACTIVATED_SINCE_VERSION 1 290 #define ZCR_REMOTE_SHELL_V1_ACTIVATED_SINCE_VERSION 1
289 /** 291 /**
290 * @ingroup iface_zcr_remote_shell_v1 292 * @ingroup iface_zcr_remote_shell_v1
291 */ 293 */
292 #define ZCR_REMOTE_SHELL_V1_CONFIGURATION_CHANGED_SINCE_VERSION 1 294 #define ZCR_REMOTE_SHELL_V1_CONFIGURATION_CHANGED_SINCE_VERSION 1
295 /**
296 * @ingroup iface_zcr_remote_shell_v1
297 */
298 #define ZCR_REMOTE_SHELL_V1_WORKSPACE_SINCE_VERSION 1
299 /**
300 * @ingroup iface_zcr_remote_shell_v1
301 */
302 #define ZCR_REMOTE_SHELL_V1_CONFIGURE_SINCE_VERSION 1
293 303
294 /** 304 /**
295 * @ingroup iface_zcr_remote_shell_v1 305 * @ingroup iface_zcr_remote_shell_v1
296 */ 306 */
297 #define ZCR_REMOTE_SHELL_V1_DESTROY_SINCE_VERSION 1 307 #define ZCR_REMOTE_SHELL_V1_DESTROY_SINCE_VERSION 1
298 /** 308 /**
299 * @ingroup iface_zcr_remote_shell_v1 309 * @ingroup iface_zcr_remote_shell_v1
300 */ 310 */
301 #define ZCR_REMOTE_SHELL_V1_GET_REMOTE_SURFACE_SINCE_VERSION 1 311 #define ZCR_REMOTE_SHELL_V1_GET_REMOTE_SURFACE_SINCE_VERSION 1
302 /** 312 /**
(...skipping 17 matching lines...) Expand all
320 * Sends an configuration_changed event to the client owning the resource. 330 * Sends an configuration_changed event to the client owning the resource.
321 * @param resource_ The client's resource 331 * @param resource_ The client's resource
322 */ 332 */
323 static inline void 333 static inline void
324 zcr_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) 334 zcr_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)
325 { 335 {
326 wl_resource_post_event(resource_, ZCR_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); 336 wl_resource_post_event(resource_, ZCR_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);
327 } 337 }
328 338
329 /** 339 /**
340 * @ingroup iface_zcr_remote_shell_v1
341 * Sends an workspace event to the client owning the resource.
342 * @param resource_ The client's resource
343 */
344 static inline void
345 zcr_remote_shell_v1_send_workspace(struct wl_resource *resource_, uint32_t id_hi , uint32_t id_lo, int32_t x, int32_t y, int32_t width, int32_t height, int32_t i nset_left, int32_t inset_top, int32_t inset_right, int32_t inset_bottom)
346 {
347 wl_resource_post_event(resource_, ZCR_REMOTE_SHELL_V1_WORKSPACE, id_hi, id_lo, x, y, width, height, inset_left, inset_top, inset_right, inset_bottom);
348 }
349
350 /**
351 * @ingroup iface_zcr_remote_shell_v1
352 * Sends an configure event to the client owning the resource.
353 * @param resource_ The client's resource
354 */
355 static inline void
356 zcr_remote_shell_v1_send_configure(struct wl_resource *resource_, uint32_t prima ry_id_hi, uint32_t primary_id_lo, int32_t transform, wl_fixed_t scale_factor, ui nt32_t layout_mode)
357 {
358 wl_resource_post_event(resource_, ZCR_REMOTE_SHELL_V1_CONFIGURE, primary _id_hi, primary_id_lo, transform, scale_factor, layout_mode);
359 }
360
361 /**
330 * @ingroup iface_zcr_remote_surface_v1 362 * @ingroup iface_zcr_remote_surface_v1
331 * @struct zcr_remote_surface_v1_interface 363 * @struct zcr_remote_surface_v1_interface
332 */ 364 */
333 struct zcr_remote_surface_v1_interface { 365 struct zcr_remote_surface_v1_interface {
334 /** 366 /**
335 * Destroy the remote_surface 367 * Destroy the remote_surface
336 * 368 *
337 * Unmap and destroy the window. The window will be effectively 369 * Unmap and destroy the window. The window will be effectively
338 * hidden from the user's point of view, and all state will be 370 * hidden from the user's point of view, and all state will be
339 * lost. 371 * lost.
(...skipping 408 matching lines...) Expand 10 before | Expand all | Expand 10 after
748 { 780 {
749 wl_resource_post_event(resource_, ZCR_REMOTE_SURFACE_V1_STATE_TYPE_CHANG ED, state_type); 781 wl_resource_post_event(resource_, ZCR_REMOTE_SURFACE_V1_STATE_TYPE_CHANG ED, state_type);
750 } 782 }
751 783
752 /** 784 /**
753 * @ingroup iface_zcr_remote_surface_v1 785 * @ingroup iface_zcr_remote_surface_v1
754 * Sends an configure event to the client owning the resource. 786 * Sends an configure event to the client owning the resource.
755 * @param resource_ The client's resource 787 * @param resource_ The client's resource
756 */ 788 */
757 static inline void 789 static inline void
758 zcr_remote_surface_v1_send_configure(struct wl_resource *resource_, int32_t orig in_x, int32_t origin_y, struct wl_array *states, uint32_t serial) 790 zcr_remote_surface_v1_send_configure(struct wl_resource *resource_, int32_t orig in_offset_x, int32_t origin_offset_y, struct wl_array *states, uint32_t serial)
759 { 791 {
760 » wl_resource_post_event(resource_, ZCR_REMOTE_SURFACE_V1_CONFIGURE, origi n_x, origin_y, states, serial); 792 » wl_resource_post_event(resource_, ZCR_REMOTE_SURFACE_V1_CONFIGURE, origi n_offset_x, origin_offset_y, states, serial);
761 } 793 }
762 794
763 /** 795 /**
764 * @ingroup iface_zcr_notification_surface_v1 796 * @ingroup iface_zcr_notification_surface_v1
765 * @struct zcr_notification_surface_v1_interface 797 * @struct zcr_notification_surface_v1_interface
766 */ 798 */
767 struct zcr_notification_surface_v1_interface { 799 struct zcr_notification_surface_v1_interface {
768 /** 800 /**
769 * Destroy the notification_surface 801 * Destroy the notification_surface
770 * 802 *
771 * Unmap and destroy the notification surface. 803 * Unmap and destroy the notification surface.
772 */ 804 */
773 void (*destroy)(struct wl_client *client, 805 void (*destroy)(struct wl_client *client,
774 struct wl_resource *resource); 806 struct wl_resource *resource);
775 }; 807 };
776 808
777 809
778 /** 810 /**
779 * @ingroup iface_zcr_notification_surface_v1 811 * @ingroup iface_zcr_notification_surface_v1
780 */ 812 */
781 #define ZCR_NOTIFICATION_SURFACE_V1_DESTROY_SINCE_VERSION 1 813 #define ZCR_NOTIFICATION_SURFACE_V1_DESTROY_SINCE_VERSION 1
782 814
783 #ifdef __cplusplus 815 #ifdef __cplusplus
784 } 816 }
785 #endif 817 #endif
786 818
787 #endif 819 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698