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

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

Issue 2062133002: third_party: Update to version 6 of remote_shell_protocol (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: move get_notification_surface down Created 4 years, 5 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 17 matching lines...) Expand all
28 * together with the corresponding interface version bump. Backward 28 * together with the corresponding interface version bump. Backward
29 * incompatible changes are done by bumping the version number in the protocol 29 * incompatible changes are done by bumping the version number in the protocol
30 * and interface names and resetting the interface version. Once the protocol 30 * and interface names and resetting the interface version. Once the protocol
31 * is to be declared stable, the 'z' prefix and the version number in the 31 * is to be declared stable, the 'z' prefix and the version number in the
32 * protocol and interface names are removed and the interface version number is 32 * protocol and interface names are removed and the interface version number is
33 * reset. 33 * reset.
34 * 34 *
35 * @section page_ifaces_remote_shell_unstable_v1 Interfaces 35 * @section page_ifaces_remote_shell_unstable_v1 Interfaces
36 * - @subpage page_iface_zwp_remote_shell_v1 - remote_shell 36 * - @subpage page_iface_zwp_remote_shell_v1 - remote_shell
37 * - @subpage page_iface_zwp_remote_surface_v1 - A desktop window 37 * - @subpage page_iface_zwp_remote_surface_v1 - A desktop window
38 * - @subpage page_iface_zwp_notification_surface_v1 - A notification window
38 * @section page_copyright_remote_shell_unstable_v1 Copyright 39 * @section page_copyright_remote_shell_unstable_v1 Copyright
39 * <pre> 40 * <pre>
40 * 41 *
41 * Copyright 2016 The Chromium Authors. 42 * Copyright 2016 The Chromium Authors.
42 * 43 *
43 * Permission is hereby granted, free of charge, to any person obtaining a 44 * Permission is hereby granted, free of charge, to any person obtaining a
44 * copy of this software and associated documentation files (the "Software"), 45 * copy of this software and associated documentation files (the "Software"),
45 * to deal in the Software without restriction, including without limitation 46 * to deal in the Software without restriction, including without limitation
46 * the rights to use, copy, modify, merge, publish, distribute, sublicense, 47 * the rights to use, copy, modify, merge, publish, distribute, sublicense,
47 * and/or sell copies of the Software, and to permit persons to whom the 48 * and/or sell copies of the Software, and to permit persons to whom the
48 * Software is furnished to do so, subject to the following conditions: 49 * Software is furnished to do so, subject to the following conditions:
49 * 50 *
50 * The above copyright notice and this permission notice (including the next 51 * The above copyright notice and this permission notice (including the next
51 * paragraph) shall be included in all copies or substantial portions of the 52 * paragraph) shall be included in all copies or substantial portions of the
52 * Software. 53 * Software.
53 * 54 *
54 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 55 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
55 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 56 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
56 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL 57 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
57 * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 58 * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
58 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 59 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
59 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 60 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
60 * DEALINGS IN THE SOFTWARE. 61 * DEALINGS IN THE SOFTWARE.
61 * </pre> 62 * </pre>
62 */ 63 */
63 struct wl_surface; 64 struct wl_surface;
65 struct zwp_notification_surface_v1;
64 struct zwp_remote_shell_v1; 66 struct zwp_remote_shell_v1;
65 struct zwp_remote_surface_v1; 67 struct zwp_remote_surface_v1;
66 68
67 /** 69 /**
68 * @page page_iface_zwp_remote_shell_v1 zwp_remote_shell_v1 70 * @page page_iface_zwp_remote_shell_v1 zwp_remote_shell_v1
69 * @section page_iface_zwp_remote_shell_v1_desc Description 71 * @section page_iface_zwp_remote_shell_v1_desc Description
70 * 72 *
71 * The global interface that allows clients to turn a wl_surface into a 73 * The global interface that allows clients to turn a wl_surface into a
72 * "real window" which is remotely managed but can be stacked, activated 74 * "real window" which is remotely managed but can be stacked, activated
73 * and made fullscreen by the user. 75 * and made fullscreen by the user.
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
111 * It provides requests to treat surfaces like windows, allowing to set 113 * It provides requests to treat surfaces like windows, allowing to set
112 * properties like app id and geometry. 114 * properties like app id and geometry.
113 * 115 *
114 * The client must call wl_surface.commit on the corresponding wl_surface 116 * The client must call wl_surface.commit on the corresponding wl_surface
115 * for the remote_surface state to take effect. 117 * for the remote_surface state to take effect.
116 * 118 *
117 * For a surface to be mapped by the compositor the client must have 119 * For a surface to be mapped by the compositor the client must have
118 * committed both an remote_surface state and a buffer. 120 * committed both an remote_surface state and a buffer.
119 */ 121 */
120 extern const struct wl_interface zwp_remote_surface_v1_interface; 122 extern const struct wl_interface zwp_remote_surface_v1_interface;
123 /**
124 * @page page_iface_zwp_notification_surface_v1 zwp_notification_surface_v1
125 * @section page_iface_zwp_notification_surface_v1_desc Description
126 *
127 * An interface that may be implemented by a wl_surface to host
128 * notification contents.
129 * @section page_iface_zwp_notification_surface_v1_api API
130 * See @ref iface_zwp_notification_surface_v1.
131 */
132 /**
133 * @defgroup iface_zwp_notification_surface_v1 The zwp_notification_surface_v1 i nterface
134 *
135 * An interface that may be implemented by a wl_surface to host
136 * notification contents.
137 */
138 extern const struct wl_interface zwp_notification_surface_v1_interface;
121 139
122 #ifndef ZWP_REMOTE_SHELL_V1_CONTAINER_ENUM 140 #ifndef ZWP_REMOTE_SHELL_V1_CONTAINER_ENUM
123 #define ZWP_REMOTE_SHELL_V1_CONTAINER_ENUM 141 #define ZWP_REMOTE_SHELL_V1_CONTAINER_ENUM
124 /** 142 /**
125 * @ingroup iface_zwp_remote_shell_v1 143 * @ingroup iface_zwp_remote_shell_v1
126 * containers for remote surfaces 144 * containers for remote surfaces
127 * 145 *
128 * Determine how a remote surface should be stacked relative to other 146 * Determine how a remote surface should be stacked relative to other
129 * shell surfaces. 147 * shell surfaces.
130 */ 148 */
131 enum zwp_remote_shell_v1_container { 149 enum zwp_remote_shell_v1_container {
132 /** 150 /**
133 * default container 151 * default container
134 */ 152 */
135 ZWP_REMOTE_SHELL_V1_CONTAINER_DEFAULT = 1, 153 ZWP_REMOTE_SHELL_V1_CONTAINER_DEFAULT = 1,
136 /** 154 /**
137 * system modal container 155 * system modal container
138 */ 156 */
139 ZWP_REMOTE_SHELL_V1_CONTAINER_OVERLAY = 2, 157 ZWP_REMOTE_SHELL_V1_CONTAINER_OVERLAY = 2,
140 }; 158 };
141 #endif /* ZWP_REMOTE_SHELL_V1_CONTAINER_ENUM */ 159 #endif /* ZWP_REMOTE_SHELL_V1_CONTAINER_ENUM */
142 160
143 #ifndef ZWP_REMOTE_SHELL_V1_ERROR_ENUM 161 #ifndef ZWP_REMOTE_SHELL_V1_ERROR_ENUM
144 #define ZWP_REMOTE_SHELL_V1_ERROR_ENUM 162 #define ZWP_REMOTE_SHELL_V1_ERROR_ENUM
145 enum zwp_remote_shell_v1_error { 163 enum zwp_remote_shell_v1_error {
146 /** 164 /**
147 * given wl_surface has another role 165 * given wl_surface has another role
148 */ 166 */
149 ZWP_REMOTE_SHELL_V1_ERROR_ROLE = 0, 167 ZWP_REMOTE_SHELL_V1_ERROR_ROLE = 0,
168 /**
169 * invalid notification id
170 */
171 ZWP_REMOTE_SHELL_V1_ERROR_INVALID_NOTIFICATION_ID = 1,
150 }; 172 };
151 #endif /* ZWP_REMOTE_SHELL_V1_ERROR_ENUM */ 173 #endif /* ZWP_REMOTE_SHELL_V1_ERROR_ENUM */
152 174
153 /** 175 /**
154 * @ingroup iface_zwp_remote_shell_v1 176 * @ingroup iface_zwp_remote_shell_v1
155 * @struct zwp_remote_shell_v1_interface 177 * @struct zwp_remote_shell_v1_interface
156 */ 178 */
157 struct zwp_remote_shell_v1_interface { 179 struct zwp_remote_shell_v1_interface {
158 /** 180 /**
159 * destroy remote_shell 181 * destroy remote_shell
(...skipping 16 matching lines...) Expand all
176 * with it, or if it had any other role, an error is raised. 198 * with it, or if it had any other role, an error is raised.
177 * 199 *
178 * See the documentation of remote_surface for more details about 200 * See the documentation of remote_surface for more details about
179 * what an remote_surface is and how it is used. 201 * what an remote_surface is and how it is used.
180 */ 202 */
181 void (*get_remote_surface)(struct wl_client *client, 203 void (*get_remote_surface)(struct wl_client *client,
182 struct wl_resource *resource, 204 struct wl_resource *resource,
183 uint32_t id, 205 uint32_t id,
184 struct wl_resource *surface, 206 struct wl_resource *surface,
185 uint32_t container); 207 uint32_t container);
208 /**
209 * create a notification surface from a surface
210 *
211 * Creates a notification_surface for the given surface, gives it
212 * the notification_surface role and associated it with a
213 * notification id.
214 * @since 6
215 */
216 void (*get_notification_surface)(struct wl_client *client,
217 struct wl_resource *resource,
218 uint32_t id,
219 struct wl_resource *surface,
220 const char *notification_id);
186 }; 221 };
187 222
188 #define ZWP_REMOTE_SHELL_V1_CONFIGURE 0 223 #define ZWP_REMOTE_SHELL_V1_CONFIGURE 0
189 #define ZWP_REMOTE_SHELL_V1_ACTIVATED 1 224 #define ZWP_REMOTE_SHELL_V1_ACTIVATED 1
190 225
191 /** 226 /**
192 * @ingroup iface_zwp_remote_shell_v1 227 * @ingroup iface_zwp_remote_shell_v1
193 */ 228 */
194 #define ZWP_REMOTE_SHELL_V1_CONFIGURE_SINCE_VERSION 1 229 #define ZWP_REMOTE_SHELL_V1_CONFIGURE_SINCE_VERSION 1
195 /** 230 /**
(...skipping 369 matching lines...) Expand 10 before | Expand all | Expand 10 after
565 * @ingroup iface_zwp_remote_surface_v1 600 * @ingroup iface_zwp_remote_surface_v1
566 * Sends an unset_pinned event to the client owning the resource. 601 * Sends an unset_pinned event to the client owning the resource.
567 * @param resource_ The client's resource 602 * @param resource_ The client's resource
568 */ 603 */
569 static inline void 604 static inline void
570 zwp_remote_surface_v1_send_unset_pinned(struct wl_resource *resource_) 605 zwp_remote_surface_v1_send_unset_pinned(struct wl_resource *resource_)
571 { 606 {
572 wl_resource_post_event(resource_, ZWP_REMOTE_SURFACE_V1_UNSET_PINNED); 607 wl_resource_post_event(resource_, ZWP_REMOTE_SURFACE_V1_UNSET_PINNED);
573 } 608 }
574 609
610 /**
611 * @ingroup iface_zwp_notification_surface_v1
612 * @struct zwp_notification_surface_v1_interface
613 */
614 struct zwp_notification_surface_v1_interface {
615 /**
616 * Destroy the notification_surface
617 *
618 * Unmap and destroy the notification surface.
619 */
620 void (*destroy)(struct wl_client *client,
621 struct wl_resource *resource);
622 };
623
624
575 #ifdef __cplusplus 625 #ifdef __cplusplus
576 } 626 }
577 #endif 627 #endif
578 628
579 #endif 629 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698