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

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: Created 4 years, 1 month 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 259 matching lines...) Expand 10 before | Expand all | Expand 10 after
270 */ 270 */
271 void (*get_notification_surface)(struct wl_client *client, 271 void (*get_notification_surface)(struct wl_client *client,
272 struct wl_resource *resource, 272 struct wl_resource *resource,
273 uint32_t id, 273 uint32_t id,
274 struct wl_resource *surface, 274 struct wl_resource *surface,
275 const char *notification_id); 275 const char *notification_id);
276 }; 276 };
277 277
278 #define ZCR_REMOTE_SHELL_V1_ACTIVATED 0 278 #define ZCR_REMOTE_SHELL_V1_ACTIVATED 0
279 #define ZCR_REMOTE_SHELL_V1_CONFIGURATION_CHANGED 1 279 #define ZCR_REMOTE_SHELL_V1_CONFIGURATION_CHANGED 1
280 #define ZCR_REMOTE_SHELL_V1_WORKSPACE 2
281 #define ZCR_REMOTE_SHELL_V1_CONFIGURE 3
280 282
281 /** 283 /**
282 * @ingroup iface_zcr_remote_shell_v1 284 * @ingroup iface_zcr_remote_shell_v1
283 */ 285 */
284 #define ZCR_REMOTE_SHELL_V1_ACTIVATED_SINCE_VERSION 1 286 #define ZCR_REMOTE_SHELL_V1_ACTIVATED_SINCE_VERSION 1
285 /** 287 /**
286 * @ingroup iface_zcr_remote_shell_v1 288 * @ingroup iface_zcr_remote_shell_v1
287 */ 289 */
288 #define ZCR_REMOTE_SHELL_V1_CONFIGURATION_CHANGED_SINCE_VERSION 1 290 #define ZCR_REMOTE_SHELL_V1_CONFIGURATION_CHANGED_SINCE_VERSION 1
291 /**
292 * @ingroup iface_zcr_remote_shell_v1
293 */
294 #define ZCR_REMOTE_SHELL_V1_WORKSPACE_SINCE_VERSION 1
295 /**
296 * @ingroup iface_zcr_remote_shell_v1
297 */
298 #define ZCR_REMOTE_SHELL_V1_CONFIGURE_SINCE_VERSION 1
289 299
290 /** 300 /**
291 * @ingroup iface_zcr_remote_shell_v1 301 * @ingroup iface_zcr_remote_shell_v1
292 * Sends an activated event to the client owning the resource. 302 * Sends an activated event to the client owning the resource.
293 * @param resource_ The client's resource 303 * @param resource_ The client's resource
294 */ 304 */
295 static inline void 305 static inline void
296 zcr_remote_shell_v1_send_activated(struct wl_resource *resource_, struct wl_reso urce *gained_active, struct wl_resource *lost_active) 306 zcr_remote_shell_v1_send_activated(struct wl_resource *resource_, struct wl_reso urce *gained_active, struct wl_resource *lost_active)
297 { 307 {
298 wl_resource_post_event(resource_, ZCR_REMOTE_SHELL_V1_ACTIVATED, gained_ active, lost_active); 308 wl_resource_post_event(resource_, ZCR_REMOTE_SHELL_V1_ACTIVATED, gained_ active, lost_active);
299 } 309 }
300 310
301 /** 311 /**
302 * @ingroup iface_zcr_remote_shell_v1 312 * @ingroup iface_zcr_remote_shell_v1
303 * Sends an configuration_changed event to the client owning the resource. 313 * Sends an configuration_changed event to the client owning the resource.
304 * @param resource_ The client's resource 314 * @param resource_ The client's resource
305 */ 315 */
306 static inline void 316 static inline void
307 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) 317 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)
308 { 318 {
309 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); 319 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);
310 } 320 }
311 321
312 /** 322 /**
323 * @ingroup iface_zcr_remote_shell_v1
324 * Sends an workspace event to the client owning the resource.
325 * @param resource_ The client's resource
326 */
327 static inline void
328 zcr_remote_shell_v1_send_workspace(struct wl_resource *resource_, uint32_t id, i nt32_t x, int32_t y, int32_t width, int32_t height, int32_t inset_left, int32_t inset_top, int32_t inset_right, int32_t inset_bottom)
329 {
330 wl_resource_post_event(resource_, ZCR_REMOTE_SHELL_V1_WORKSPACE, id, x, y, width, height, inset_left, inset_top, inset_right, inset_bottom);
331 }
332
333 /**
334 * @ingroup iface_zcr_remote_shell_v1
335 * Sends an configure event to the client owning the resource.
336 * @param resource_ The client's resource
337 */
338 static inline void
339 zcr_remote_shell_v1_send_configure(struct wl_resource *resource_, int32_t width, int32_t height, int32_t transform, wl_fixed_t scale_factor, uint32_t layout_mod e)
340 {
341 wl_resource_post_event(resource_, ZCR_REMOTE_SHELL_V1_CONFIGURE, width, height, transform, scale_factor, layout_mode);
342 }
343
344 /**
313 * @ingroup iface_zcr_remote_surface_v1 345 * @ingroup iface_zcr_remote_surface_v1
314 * @struct zcr_remote_surface_v1_interface 346 * @struct zcr_remote_surface_v1_interface
315 */ 347 */
316 struct zcr_remote_surface_v1_interface { 348 struct zcr_remote_surface_v1_interface {
317 /** 349 /**
318 * Destroy the remote_surface 350 * Destroy the remote_surface
319 * 351 *
320 * Unmap and destroy the window. The window will be effectively 352 * Unmap and destroy the window. The window will be effectively
321 * hidden from the user's point of view, and all state will be 353 * hidden from the user's point of view, and all state will be
322 * lost. 354 * lost.
(...skipping 285 matching lines...) Expand 10 before | Expand all | Expand 10 after
608 void (*destroy)(struct wl_client *client, 640 void (*destroy)(struct wl_client *client,
609 struct wl_resource *resource); 641 struct wl_resource *resource);
610 }; 642 };
611 643
612 644
613 #ifdef __cplusplus 645 #ifdef __cplusplus
614 } 646 }
615 #endif 647 #endif
616 648
617 #endif 649 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698