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

Side by Side Diff: third_party/wayland-protocols/include/protocol/remote-shell-unstable-v1-client-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_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 192 matching lines...) Expand 10 before | Expand all | Expand 10 after
203 203
204 #ifndef ZWP_REMOTE_SHELL_V1_LAYOUT_MODE_ENUM 204 #ifndef ZWP_REMOTE_SHELL_V1_LAYOUT_MODE_ENUM
205 #define ZWP_REMOTE_SHELL_V1_LAYOUT_MODE_ENUM 205 #define ZWP_REMOTE_SHELL_V1_LAYOUT_MODE_ENUM
206 /** 206 /**
207 * @ingroup iface_zwp_remote_shell_v1 207 * @ingroup iface_zwp_remote_shell_v1
208 * the layout mode 208 * the layout mode
209 * 209 *
210 * Determine how a client should layout surfaces. 210 * Determine how a client should layout surfaces.
211 */ 211 */
212 enum zwp_remote_shell_v1_layout_mode { 212 enum zwp_remote_shell_v1_layout_mode {
213 » /** 213 /**
214 » * mulitple windows 214 * multiple windows
215 » */ 215 */
216 » ZWP_REMOTE_SHELL_V1_LAYOUT_MODE_WINDOWED = 1, 216 ZWP_REMOTE_SHELL_V1_LAYOUT_MODE_WINDOWED = 1,
217 » /** 217 /**
218 » * restricted mode for table 218 * restricted mode for tablet
219 » */ 219 */
220 » ZWP_REMOTE_SHELL_V1_LAYOUT_MODE_TABLET = 2, 220 ZWP_REMOTE_SHELL_V1_LAYOUT_MODE_TABLET = 2,
221 }; 221 };
222 #endif /* ZWP_REMOTE_SHELL_V1_LAYOUT_MODE_ENUM */ 222 #endif /* ZWP_REMOTE_SHELL_V1_LAYOUT_MODE_ENUM */
223 223
224 /** 224 /**
225 * @ingroup iface_zwp_remote_shell_v1 225 * @ingroup iface_zwp_remote_shell_v1
226 * @struct zwp_remote_shell_v1_listener 226 * @struct zwp_remote_shell_v1_listener
227 */ 227 */
228 struct zwp_remote_shell_v1_listener { 228 struct zwp_remote_shell_v1_listener {
229 » /** 229 /**
230 » * suggests a re-layout of remote shell 230 * suggests a re-layout of remote shell
231 » * 231 *
232 » * Suggests a re-layout of remote surface geometry. 232 * Obsolete: Suggests a re-layout of remote surface geometry.
233 » */ 233 */
234 » void (*configure)(void *data, 234 void (*configure)(void* data,
235 » » » struct zwp_remote_shell_v1 *zwp_remote_shell_v1, 235 struct zwp_remote_shell_v1* zwp_remote_shell_v1,
236 » » » int32_t width, 236 int32_t width,
237 » » » int32_t height, 237 int32_t height,
238 » » » int32_t work_area_inset_left, 238 int32_t work_area_inset_left,
239 » » » int32_t work_area_inset_top, 239 int32_t work_area_inset_top,
240 » » » int32_t work_area_inset_right, 240 int32_t work_area_inset_right,
241 » » » int32_t work_area_inset_bottom); 241 int32_t work_area_inset_bottom);
242 » /** 242 /**
243 » * activated surface changed 243 * activated surface changed
244 » * 244 *
245 » * Notifies client that the activated surface changed. 245 * Notifies client that the activated surface changed.
246 » */ 246 */
247 » void (*activated)(void *data, 247 void (*activated)(void* data,
248 » » » struct zwp_remote_shell_v1 *zwp_remote_shell_v1, 248 struct zwp_remote_shell_v1* zwp_remote_shell_v1,
249 » » » struct wl_surface *gained_active, 249 struct wl_surface* gained_active,
250 » » » struct wl_surface *lost_active); 250 struct wl_surface* lost_active);
251 » /** 251 /**
252 » * dlayout mode changed 252 * layout mode changed
253 » * 253 *
254 » * The shell_mode_changed event is sent by the compositor when 254 * The shell_mode_changed event is sent by the compositor when
255 » * the shell mode was changed. 255 * the shell mode was changed.
256 » * 256 *
257 » * This is an event to notify that the shell mode has switched. 257 * This is an event to notify that the shell mode has switched.
258 » * @since 8 258 * @since 8
259 » */ 259 */
260 » void (*layout_mode_changed)(void *data, 260 void (*layout_mode_changed)(void* data,
261 » » » » struct zwp_remote_shell_v1 *zwp_remote_shell _v1, 261 struct zwp_remote_shell_v1* zwp_remote_shell_v1,
262 » » » » uint32_t layout_mode); 262 uint32_t layout_mode);
263 /**
264 * suggests a re-configuration of display for remote shell
265 *
266 * Suggests a re-configuration of display for remote shell.
267 * @since 9
268 */
269 void (*display_changed)(void* data,
270 struct zwp_remote_shell_v1* zwp_remote_shell_v1,
271 int32_t output_origin_x,
272 int32_t output_origin_y,
273 int32_t output_width_mm,
274 int32_t output_height_mm,
275 int32_t output_subpixel_layout,
276 int32_t output_transform,
277 int32_t output_mode_width_pixels,
278 int32_t output_mode_height_pixels,
279 int32_t output_mode_refresh_rate_mhz,
280 wl_fixed_t display_scale_factor,
281 int32_t display_width,
282 int32_t display_height,
283 int32_t work_area_inset_left,
284 int32_t work_area_inset_top,
285 int32_t work_area_inset_right,
286 int32_t work_area_inset_bottom,
287 uint32_t layout_mode);
263 }; 288 };
264 289
265 /** 290 /**
266 * @ingroup zwp_remote_shell_v1_iface 291 * @ingroup zwp_remote_shell_v1_iface
267 */ 292 */
268 static inline int 293 static inline int
269 zwp_remote_shell_v1_add_listener(struct zwp_remote_shell_v1 *zwp_remote_shell_v1 , 294 zwp_remote_shell_v1_add_listener(struct zwp_remote_shell_v1 *zwp_remote_shell_v1 ,
270 const struct zwp_remote_shell_v1_listener *list ener, void *data) 295 const struct zwp_remote_shell_v1_listener *list ener, void *data)
271 { 296 {
272 return wl_proxy_add_listener((struct wl_proxy *) zwp_remote_shell_v1, 297 return wl_proxy_add_listener((struct wl_proxy *) zwp_remote_shell_v1,
(...skipping 249 matching lines...) Expand 10 before | Expand all | Expand 10 after
522 #define ZWP_REMOTE_SURFACE_V1_MINIMIZE 6 547 #define ZWP_REMOTE_SURFACE_V1_MINIMIZE 6
523 #define ZWP_REMOTE_SURFACE_V1_RESTORE 7 548 #define ZWP_REMOTE_SURFACE_V1_RESTORE 7
524 #define ZWP_REMOTE_SURFACE_V1_PIN 8 549 #define ZWP_REMOTE_SURFACE_V1_PIN 8
525 #define ZWP_REMOTE_SURFACE_V1_UNPIN 9 550 #define ZWP_REMOTE_SURFACE_V1_UNPIN 9
526 #define ZWP_REMOTE_SURFACE_V1_UNFULLSCREEN 10 551 #define ZWP_REMOTE_SURFACE_V1_UNFULLSCREEN 10
527 #define ZWP_REMOTE_SURFACE_V1_SET_RECTANGULAR_SHADOW 11 552 #define ZWP_REMOTE_SURFACE_V1_SET_RECTANGULAR_SHADOW 11
528 #define ZWP_REMOTE_SURFACE_V1_SET_TITLE 12 553 #define ZWP_REMOTE_SURFACE_V1_SET_TITLE 12
529 #define ZWP_REMOTE_SURFACE_V1_SET_TOP_INSET 13 554 #define ZWP_REMOTE_SURFACE_V1_SET_TOP_INSET 13
530 #define ZWP_REMOTE_SURFACE_V1_SET_SYSTEM_MODAL 14 555 #define ZWP_REMOTE_SURFACE_V1_SET_SYSTEM_MODAL 14
531 #define ZWP_REMOTE_SURFACE_V1_UNSET_SYSTEM_MODAL 15 556 #define ZWP_REMOTE_SURFACE_V1_UNSET_SYSTEM_MODAL 15
557 #define ZWP_REMOTE_SURFACE_V1_SET_BACKGROUND_OPACITY 16
532 558
533 /** 559 /**
534 * @ingroup iface_zwp_remote_surface_v1 560 * @ingroup iface_zwp_remote_surface_v1
535 */ 561 */
536 #define ZWP_REMOTE_SURFACE_V1_DESTROY_SINCE_VERSION 1 562 #define ZWP_REMOTE_SURFACE_V1_DESTROY_SINCE_VERSION 1
537 /** 563 /**
538 * @ingroup iface_zwp_remote_surface_v1 564 * @ingroup iface_zwp_remote_surface_v1
539 */ 565 */
540 #define ZWP_REMOTE_SURFACE_V1_SET_APP_ID_SINCE_VERSION 1 566 #define ZWP_REMOTE_SURFACE_V1_SET_APP_ID_SINCE_VERSION 1
541 /** 567 /**
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
587 */ 613 */
588 #define ZWP_REMOTE_SURFACE_V1_SET_TOP_INSET_SINCE_VERSION 5 614 #define ZWP_REMOTE_SURFACE_V1_SET_TOP_INSET_SINCE_VERSION 5
589 /** 615 /**
590 * @ingroup iface_zwp_remote_surface_v1 616 * @ingroup iface_zwp_remote_surface_v1
591 */ 617 */
592 #define ZWP_REMOTE_SURFACE_V1_SET_SYSTEM_MODAL_SINCE_VERSION 8 618 #define ZWP_REMOTE_SURFACE_V1_SET_SYSTEM_MODAL_SINCE_VERSION 8
593 /** 619 /**
594 * @ingroup iface_zwp_remote_surface_v1 620 * @ingroup iface_zwp_remote_surface_v1
595 */ 621 */
596 #define ZWP_REMOTE_SURFACE_V1_UNSET_SYSTEM_MODAL_SINCE_VERSION 8 622 #define ZWP_REMOTE_SURFACE_V1_UNSET_SYSTEM_MODAL_SINCE_VERSION 8
623 /**
624 * @ingroup iface_zwp_remote_surface_v1
625 */
626 #define ZWP_REMOTE_SURFACE_V1_SET_BACKGROUND_OPACITY_SINCE_VERSION 9
597 627
598 /** @ingroup iface_zwp_remote_surface_v1 */ 628 /** @ingroup iface_zwp_remote_surface_v1 */
599 static inline void 629 static inline void
600 zwp_remote_surface_v1_set_user_data(struct zwp_remote_surface_v1 *zwp_remote_sur face_v1, void *user_data) 630 zwp_remote_surface_v1_set_user_data(struct zwp_remote_surface_v1 *zwp_remote_sur face_v1, void *user_data)
601 { 631 {
602 wl_proxy_set_user_data((struct wl_proxy *) zwp_remote_surface_v1, user_d ata); 632 wl_proxy_set_user_data((struct wl_proxy *) zwp_remote_surface_v1, user_d ata);
603 } 633 }
604 634
605 /** @ingroup iface_zwp_remote_surface_v1 */ 635 /** @ingroup iface_zwp_remote_surface_v1 */
606 static inline void * 636 static inline void *
(...skipping 269 matching lines...) Expand 10 before | Expand all | Expand 10 after
876 * 906 *
877 * Suggests a surface should become non system modal. 907 * Suggests a surface should become non system modal.
878 */ 908 */
879 static inline void 909 static inline void
880 zwp_remote_surface_v1_unset_system_modal(struct zwp_remote_surface_v1 *zwp_remot e_surface_v1) 910 zwp_remote_surface_v1_unset_system_modal(struct zwp_remote_surface_v1 *zwp_remot e_surface_v1)
881 { 911 {
882 wl_proxy_marshal((struct wl_proxy *) zwp_remote_surface_v1, 912 wl_proxy_marshal((struct wl_proxy *) zwp_remote_surface_v1,
883 ZWP_REMOTE_SURFACE_V1_UNSET_SYSTEM_MODAL); 913 ZWP_REMOTE_SURFACE_V1_UNSET_SYSTEM_MODAL);
884 } 914 }
885 915
916 /**
917 * @ingroup iface_zwp_remote_surface_v1
918 *
919 * Suggests the window's background opacity.
920 */
921 static inline void zwp_remote_surface_v1_set_background_opacity(
922 struct zwp_remote_surface_v1* zwp_remote_surface_v1,
923 wl_fixed_t opacity) {
924 wl_proxy_marshal((struct wl_proxy*)zwp_remote_surface_v1,
925 ZWP_REMOTE_SURFACE_V1_SET_BACKGROUND_OPACITY, opacity);
926 }
927
886 #define ZWP_NOTIFICATION_SURFACE_V1_DESTROY 0 928 #define ZWP_NOTIFICATION_SURFACE_V1_DESTROY 0
887 929
888 /** 930 /**
889 * @ingroup iface_zwp_notification_surface_v1 931 * @ingroup iface_zwp_notification_surface_v1
890 */ 932 */
891 #define ZWP_NOTIFICATION_SURFACE_V1_DESTROY_SINCE_VERSION 1 933 #define ZWP_NOTIFICATION_SURFACE_V1_DESTROY_SINCE_VERSION 1
892 934
893 /** @ingroup iface_zwp_notification_surface_v1 */ 935 /** @ingroup iface_zwp_notification_surface_v1 */
894 static inline void 936 static inline void
895 zwp_notification_surface_v1_set_user_data(struct zwp_notification_surface_v1 *zw p_notification_surface_v1, void *user_data) 937 zwp_notification_surface_v1_set_user_data(struct zwp_notification_surface_v1 *zw p_notification_surface_v1, void *user_data)
(...skipping 26 matching lines...) Expand all
922 ZWP_NOTIFICATION_SURFACE_V1_DESTROY); 964 ZWP_NOTIFICATION_SURFACE_V1_DESTROY);
923 965
924 wl_proxy_destroy((struct wl_proxy *) zwp_notification_surface_v1); 966 wl_proxy_destroy((struct wl_proxy *) zwp_notification_surface_v1);
925 } 967 }
926 968
927 #ifdef __cplusplus 969 #ifdef __cplusplus
928 } 970 }
929 #endif 971 #endif
930 972
931 #endif 973 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698