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

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

Issue 2033713004: third_party: Update to version 2 of remote_shell_protocol. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix typos Created 4 years, 6 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 /* 1 /*
2 * Copyright 2016 The Chromium Authors. 2 * Copyright 2016 The Chromium Authors.
3 * 3 *
4 * Permission is hereby granted, free of charge, to any person obtaining a 4 * Permission is hereby granted, free of charge, to any person obtaining a
5 * copy of this software and associated documentation files (the "Software"), 5 * copy of this software and associated documentation files (the "Software"),
6 * to deal in the Software without restriction, including without limitation 6 * to deal in the Software without restriction, including without limitation
7 * the rights to use, copy, modify, merge, publish, distribute, sublicense, 7 * the rights to use, copy, modify, merge, publish, distribute, sublicense,
8 * and/or sell copies of the Software, and to permit persons to whom the 8 * and/or sell copies of the Software, and to permit persons to whom the
9 * Software is furnished to do so, subject to the following conditions: 9 * Software is furnished to do so, subject to the following conditions:
10 * 10 *
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after
122 { 122 {
123 wl_resource_post_event(resource_, ZWP_REMOTE_SHELL_V1_ACTIVATED, gained_ active, lost_active); 123 wl_resource_post_event(resource_, ZWP_REMOTE_SHELL_V1_ACTIVATED, gained_ active, lost_active);
124 } 124 }
125 125
126 /** 126 /**
127 * zwp_remote_surface_v1 - A desktop window 127 * zwp_remote_surface_v1 - A desktop window
128 * @destroy: Destroy the remote_surface 128 * @destroy: Destroy the remote_surface
129 * @set_app_id: set application ID 129 * @set_app_id: set application ID
130 * @set_window_geometry: set the new window geometry 130 * @set_window_geometry: set the new window geometry
131 * @set_scale: set scale 131 * @set_scale: set scale
132 * @fullscreen: fullscreen
133 * @maximize: maximize
134 * @minimize: minimize
135 * @restore: restore
132 * 136 *
133 * An interface that may be implemented by a wl_surface, for 137 * An interface that may be implemented by a wl_surface, for
134 * implementations that provide a desktop-style user interface and allows 138 * implementations that provide a desktop-style user interface and allows
135 * for remotely managed windows. 139 * for remotely managed windows.
136 * 140 *
137 * It provides requests to treat surfaces like windows, allowing to set 141 * It provides requests to treat surfaces like windows, allowing to set
138 * properties like app id and geometry. 142 * properties like app id and geometry.
139 * 143 *
140 * The client must call wl_surface.commit on the corresponding wl_surface 144 * The client must call wl_surface.commit on the corresponding wl_surface
141 * for the remote_surface state to take effect. 145 * for the remote_surface state to take effect.
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
199 /** 203 /**
200 * set_scale - set scale 204 * set_scale - set scale
201 * @scale: (none) 205 * @scale: (none)
202 * 206 *
203 * Set a scale factor that will be applied to surface and all 207 * Set a scale factor that will be applied to surface and all
204 * descendants. 208 * descendants.
205 */ 209 */
206 void (*set_scale)(struct wl_client *client, 210 void (*set_scale)(struct wl_client *client,
207 struct wl_resource *resource, 211 struct wl_resource *resource,
208 wl_fixed_t scale); 212 wl_fixed_t scale);
213 /**
214 * fullscreen - fullscreen
215 *
216 * Request that surface is made fullscreen.
217 *
218 * This is only a request that the window should be made
219 * fullscreen. The compositor may choose to ignore this request.
220 * The client should listen to set_fullscreen events to determine
221 * if the window was made fullscreen or not.
222 * @since: 2
223 */
224 void (*fullscreen)(struct wl_client *client,
225 struct wl_resource *resource);
226 /**
227 * maximize - maximize
228 *
229 * Request that surface is maximized. The window geometry will be
230 * updated to whatever the compositor finds appropriate for a
231 * maximized window.
232 *
233 * This is only a request that the window should be maximized. The
234 * compositor may choose to ignore this request. The client should
235 * listen to set_maximized events to determine if the window was
236 * maximized or not.
237 * @since: 2
238 */
239 void (*maximize)(struct wl_client *client,
240 struct wl_resource *resource);
241 /**
242 * minimize - minimize
243 *
244 * Request that surface is minimized.
245 *
246 * This is only a request that the window should be minimized. The
247 * compositor may choose to ignore this request. The client should
248 * listen to set_minimized events to determine if the window was
249 * minimized or not.
250 * @since: 2
251 */
252 void (*minimize)(struct wl_client *client,
253 struct wl_resource *resource);
254 /**
255 * restore - restore
256 *
257 * Request that surface is restored. This restores the window
258 * geometry to what it was before the window was minimized,
259 * maximized or made fullscreen.
260 *
261 * This is only a request that the window should be restored. The
262 * compositor may choose to ignore this request. The client should
263 * listen to unset_maximized, unset_minimize and unset_fullscreen
264 * events to determine if the window was restored or not.
265 * @since: 2
266 */
267 void (*restore)(struct wl_client *client,
268 struct wl_resource *resource);
209 }; 269 };
210 270
211 #define ZWP_REMOTE_SURFACE_V1_SET_FULLSCREEN 0 271 #define ZWP_REMOTE_SURFACE_V1_SET_FULLSCREEN 0
212 #define ZWP_REMOTE_SURFACE_V1_UNSET_FULLSCREEN 1 272 #define ZWP_REMOTE_SURFACE_V1_UNSET_FULLSCREEN 1
213 #define ZWP_REMOTE_SURFACE_V1_CLOSE 2 273 #define ZWP_REMOTE_SURFACE_V1_CLOSE 2
274 #define ZWP_REMOTE_SURFACE_V1_SET_MAXIMIZED 3
275 #define ZWP_REMOTE_SURFACE_V1_UNSET_MAXIMIZED 4
276 #define ZWP_REMOTE_SURFACE_V1_SET_MINIMIZED 5
277 #define ZWP_REMOTE_SURFACE_V1_UNSET_MINIMIZED 6
214 278
215 static inline void 279 static inline void
216 zwp_remote_surface_v1_send_set_fullscreen(struct wl_resource *resource_) 280 zwp_remote_surface_v1_send_set_fullscreen(struct wl_resource *resource_)
217 { 281 {
218 wl_resource_post_event(resource_, ZWP_REMOTE_SURFACE_V1_SET_FULLSCREEN); 282 wl_resource_post_event(resource_, ZWP_REMOTE_SURFACE_V1_SET_FULLSCREEN);
219 } 283 }
220 284
221 static inline void 285 static inline void
222 zwp_remote_surface_v1_send_unset_fullscreen(struct wl_resource *resource_) 286 zwp_remote_surface_v1_send_unset_fullscreen(struct wl_resource *resource_)
223 { 287 {
224 wl_resource_post_event(resource_, ZWP_REMOTE_SURFACE_V1_UNSET_FULLSCREEN ); 288 wl_resource_post_event(resource_, ZWP_REMOTE_SURFACE_V1_UNSET_FULLSCREEN );
225 } 289 }
226 290
227 static inline void 291 static inline void
228 zwp_remote_surface_v1_send_close(struct wl_resource *resource_) 292 zwp_remote_surface_v1_send_close(struct wl_resource *resource_)
229 { 293 {
230 wl_resource_post_event(resource_, ZWP_REMOTE_SURFACE_V1_CLOSE); 294 wl_resource_post_event(resource_, ZWP_REMOTE_SURFACE_V1_CLOSE);
231 } 295 }
232 296
297 static inline void
298 zwp_remote_surface_v1_send_set_maximized(struct wl_resource *resource_)
299 {
300 wl_resource_post_event(resource_, ZWP_REMOTE_SURFACE_V1_SET_MAXIMIZED);
301 }
302
303 static inline void
304 zwp_remote_surface_v1_send_unset_maximized(struct wl_resource *resource_)
305 {
306 wl_resource_post_event(resource_, ZWP_REMOTE_SURFACE_V1_UNSET_MAXIMIZED) ;
307 }
308
309 static inline void
310 zwp_remote_surface_v1_send_set_minimized(struct wl_resource *resource_)
311 {
312 wl_resource_post_event(resource_, ZWP_REMOTE_SURFACE_V1_SET_MINIMIZED);
313 }
314
315 static inline void
316 zwp_remote_surface_v1_send_unset_minimized(struct wl_resource *resource_)
317 {
318 wl_resource_post_event(resource_, ZWP_REMOTE_SURFACE_V1_UNSET_MINIMIZED) ;
319 }
320
233 #ifdef __cplusplus 321 #ifdef __cplusplus
234 } 322 }
235 #endif 323 #endif
236 324
237 #endif 325 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698