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

Side by Side Diff: third_party/wayland/protocol/wayland-protocol.c

Issue 1628333004: Update Wayland to version 1.9.91. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 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
« no previous file with comments | « third_party/wayland/include/src/wayland-version.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright © 2008-2011 Kristian Høgsberg 2 * Copyright © 2008-2011 Kristian Høgsberg
3 * Copyright © 2010-2011 Intel Corporation 3 * Copyright © 2010-2011 Intel Corporation
4 * Copyright © 2012-2013 Collabora, Ltd. 4 * Copyright © 2012-2013 Collabora, Ltd.
5 * 5 *
6 * Permission is hereby granted, free of charge, to any person 6 * Permission is hereby granted, free of charge, to any person
7 * obtaining a copy of this software and associated documentation files 7 * obtaining a copy of this software and associated documentation files
8 * (the "Software"), to deal in the Software without restriction, 8 * (the "Software"), to deal in the Software without restriction,
9 * including without limitation the rights to use, copy, modify, merge, 9 * including without limitation the rights to use, copy, modify, merge,
10 * publish, distribute, sublicense, and/or sell copies of the Software, 10 * publish, distribute, sublicense, and/or sell copies of the Software,
11 * and to permit persons to whom the Software is furnished to do so, 11 * and to permit persons to whom the Software is furnished to do so,
12 * subject to the following conditions: 12 * subject to the following conditions:
13 * 13 *
14 * The above copyright notice and this permission notice (including the 14 * The above copyright notice and this permission notice (including the
15 * next paragraph) shall be included in all copies or substantial 15 * next paragraph) shall be included in all copies or substantial
16 * portions of the Software. 16 * portions of the Software.
17 * 17 *
18 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 18 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
19 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 19 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
20 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 20 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
21 * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS 21 * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
22 * BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN 22 * BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
23 * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 23 * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
24 * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 24 * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
25 * SOFTWARE. 25 * SOFTWARE.
26 */ 26 */
27 27
(...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after
184 0, NULL, 184 0, NULL,
185 1, wl_callback_events, 185 1, wl_callback_events,
186 }; 186 };
187 187
188 static const struct wl_message wl_compositor_requests[] = { 188 static const struct wl_message wl_compositor_requests[] = {
189 { "create_surface", "n", types + 10 }, 189 { "create_surface", "n", types + 10 },
190 { "create_region", "n", types + 11 }, 190 { "create_region", "n", types + 11 },
191 }; 191 };
192 192
193 WL_EXPORT const struct wl_interface wl_compositor_interface = { 193 WL_EXPORT const struct wl_interface wl_compositor_interface = {
194 » "wl_compositor", 3, 194 » "wl_compositor", 4,
195 2, wl_compositor_requests, 195 2, wl_compositor_requests,
196 0, NULL, 196 0, NULL,
197 }; 197 };
198 198
199 static const struct wl_message wl_shm_pool_requests[] = { 199 static const struct wl_message wl_shm_pool_requests[] = {
200 { "create_buffer", "niiiiu", types + 12 }, 200 { "create_buffer", "niiiiu", types + 12 },
201 { "destroy", "", types + 0 }, 201 { "destroy", "", types + 0 },
202 { "resize", "i", types + 0 }, 202 { "resize", "i", types + 0 },
203 }; 203 };
204 204
(...skipping 28 matching lines...) Expand all
233 WL_EXPORT const struct wl_interface wl_buffer_interface = { 233 WL_EXPORT const struct wl_interface wl_buffer_interface = {
234 "wl_buffer", 1, 234 "wl_buffer", 1,
235 1, wl_buffer_requests, 235 1, wl_buffer_requests,
236 1, wl_buffer_events, 236 1, wl_buffer_events,
237 }; 237 };
238 238
239 static const struct wl_message wl_data_offer_requests[] = { 239 static const struct wl_message wl_data_offer_requests[] = {
240 { "accept", "u?s", types + 0 }, 240 { "accept", "u?s", types + 0 },
241 { "receive", "sh", types + 0 }, 241 { "receive", "sh", types + 0 },
242 { "destroy", "", types + 0 }, 242 { "destroy", "", types + 0 },
243 { "finish", "3", types + 0 },
244 { "set_actions", "3uu", types + 0 },
243 }; 245 };
244 246
245 static const struct wl_message wl_data_offer_events[] = { 247 static const struct wl_message wl_data_offer_events[] = {
246 { "offer", "s", types + 0 }, 248 { "offer", "s", types + 0 },
249 { "source_actions", "3u", types + 0 },
250 { "action", "3u", types + 0 },
247 }; 251 };
248 252
249 WL_EXPORT const struct wl_interface wl_data_offer_interface = { 253 WL_EXPORT const struct wl_interface wl_data_offer_interface = {
250 » "wl_data_offer", 1, 254 » "wl_data_offer", 3,
251 » 3, wl_data_offer_requests, 255 » 5, wl_data_offer_requests,
252 » 1, wl_data_offer_events, 256 » 3, wl_data_offer_events,
253 }; 257 };
254 258
255 static const struct wl_message wl_data_source_requests[] = { 259 static const struct wl_message wl_data_source_requests[] = {
256 { "offer", "s", types + 0 }, 260 { "offer", "s", types + 0 },
257 { "destroy", "", types + 0 }, 261 { "destroy", "", types + 0 },
262 { "set_actions", "3u", types + 0 },
258 }; 263 };
259 264
260 static const struct wl_message wl_data_source_events[] = { 265 static const struct wl_message wl_data_source_events[] = {
261 { "target", "?s", types + 0 }, 266 { "target", "?s", types + 0 },
262 { "send", "sh", types + 0 }, 267 { "send", "sh", types + 0 },
263 { "cancelled", "", types + 0 }, 268 { "cancelled", "", types + 0 },
269 { "dnd_drop_performed", "3", types + 0 },
270 { "dnd_finished", "3", types + 0 },
271 { "action", "3u", types + 0 },
264 }; 272 };
265 273
266 WL_EXPORT const struct wl_interface wl_data_source_interface = { 274 WL_EXPORT const struct wl_interface wl_data_source_interface = {
267 » "wl_data_source", 1, 275 » "wl_data_source", 3,
268 » 2, wl_data_source_requests, 276 » 3, wl_data_source_requests,
269 » 3, wl_data_source_events, 277 » 6, wl_data_source_events,
270 }; 278 };
271 279
272 static const struct wl_message wl_data_device_requests[] = { 280 static const struct wl_message wl_data_device_requests[] = {
273 { "start_drag", "?oo?ou", types + 21 }, 281 { "start_drag", "?oo?ou", types + 21 },
274 { "set_selection", "?ou", types + 25 }, 282 { "set_selection", "?ou", types + 25 },
275 { "release", "2", types + 0 }, 283 { "release", "2", types + 0 },
276 }; 284 };
277 285
278 static const struct wl_message wl_data_device_events[] = { 286 static const struct wl_message wl_data_device_events[] = {
279 { "data_offer", "n", types + 27 }, 287 { "data_offer", "n", types + 27 },
280 { "enter", "uoff?o", types + 28 }, 288 { "enter", "uoff?o", types + 28 },
281 { "leave", "", types + 0 }, 289 { "leave", "", types + 0 },
282 { "motion", "uff", types + 0 }, 290 { "motion", "uff", types + 0 },
283 { "drop", "", types + 0 }, 291 { "drop", "", types + 0 },
284 { "selection", "?o", types + 33 }, 292 { "selection", "?o", types + 33 },
285 }; 293 };
286 294
287 WL_EXPORT const struct wl_interface wl_data_device_interface = { 295 WL_EXPORT const struct wl_interface wl_data_device_interface = {
288 » "wl_data_device", 2, 296 » "wl_data_device", 3,
289 3, wl_data_device_requests, 297 3, wl_data_device_requests,
290 6, wl_data_device_events, 298 6, wl_data_device_events,
291 }; 299 };
292 300
293 static const struct wl_message wl_data_device_manager_requests[] = { 301 static const struct wl_message wl_data_device_manager_requests[] = {
294 { "create_data_source", "n", types + 34 }, 302 { "create_data_source", "n", types + 34 },
295 { "get_data_device", "no", types + 35 }, 303 { "get_data_device", "no", types + 35 },
296 }; 304 };
297 305
298 WL_EXPORT const struct wl_interface wl_data_device_manager_interface = { 306 WL_EXPORT const struct wl_interface wl_data_device_manager_interface = {
299 » "wl_data_device_manager", 2, 307 » "wl_data_device_manager", 3,
300 2, wl_data_device_manager_requests, 308 2, wl_data_device_manager_requests,
301 0, NULL, 309 0, NULL,
302 }; 310 };
303 311
304 static const struct wl_message wl_shell_requests[] = { 312 static const struct wl_message wl_shell_requests[] = {
305 { "get_shell_surface", "no", types + 37 }, 313 { "get_shell_surface", "no", types + 37 },
306 }; 314 };
307 315
308 WL_EXPORT const struct wl_interface wl_shell_interface = { 316 WL_EXPORT const struct wl_interface wl_shell_interface = {
309 "wl_shell", 1, 317 "wl_shell", 1,
(...skipping 29 matching lines...) Expand all
339 static const struct wl_message wl_surface_requests[] = { 347 static const struct wl_message wl_surface_requests[] = {
340 { "destroy", "", types + 0 }, 348 { "destroy", "", types + 0 },
341 { "attach", "?oii", types + 58 }, 349 { "attach", "?oii", types + 58 },
342 { "damage", "iiii", types + 0 }, 350 { "damage", "iiii", types + 0 },
343 { "frame", "n", types + 61 }, 351 { "frame", "n", types + 61 },
344 { "set_opaque_region", "?o", types + 62 }, 352 { "set_opaque_region", "?o", types + 62 },
345 { "set_input_region", "?o", types + 63 }, 353 { "set_input_region", "?o", types + 63 },
346 { "commit", "", types + 0 }, 354 { "commit", "", types + 0 },
347 { "set_buffer_transform", "2i", types + 0 }, 355 { "set_buffer_transform", "2i", types + 0 },
348 { "set_buffer_scale", "3i", types + 0 }, 356 { "set_buffer_scale", "3i", types + 0 },
357 { "damage_buffer", "4iiii", types + 0 },
349 }; 358 };
350 359
351 static const struct wl_message wl_surface_events[] = { 360 static const struct wl_message wl_surface_events[] = {
352 { "enter", "o", types + 64 }, 361 { "enter", "o", types + 64 },
353 { "leave", "o", types + 65 }, 362 { "leave", "o", types + 65 },
354 }; 363 };
355 364
356 WL_EXPORT const struct wl_interface wl_surface_interface = { 365 WL_EXPORT const struct wl_interface wl_surface_interface = {
357 » "wl_surface", 3, 366 » "wl_surface", 4,
358 » 9, wl_surface_requests, 367 » 10, wl_surface_requests,
359 2, wl_surface_events, 368 2, wl_surface_events,
360 }; 369 };
361 370
362 static const struct wl_message wl_seat_requests[] = { 371 static const struct wl_message wl_seat_requests[] = {
363 { "get_pointer", "n", types + 66 }, 372 { "get_pointer", "n", types + 66 },
364 { "get_keyboard", "n", types + 67 }, 373 { "get_keyboard", "n", types + 67 },
365 { "get_touch", "n", types + 68 }, 374 { "get_touch", "n", types + 68 },
375 { "release", "5", types + 0 },
366 }; 376 };
367 377
368 static const struct wl_message wl_seat_events[] = { 378 static const struct wl_message wl_seat_events[] = {
369 { "capabilities", "u", types + 0 }, 379 { "capabilities", "u", types + 0 },
370 { "name", "2s", types + 0 }, 380 { "name", "2s", types + 0 },
371 }; 381 };
372 382
373 WL_EXPORT const struct wl_interface wl_seat_interface = { 383 WL_EXPORT const struct wl_interface wl_seat_interface = {
374 » "wl_seat", 4, 384 » "wl_seat", 5,
375 » 3, wl_seat_requests, 385 » 4, wl_seat_requests,
376 2, wl_seat_events, 386 2, wl_seat_events,
377 }; 387 };
378 388
379 static const struct wl_message wl_pointer_requests[] = { 389 static const struct wl_message wl_pointer_requests[] = {
380 { "set_cursor", "u?oii", types + 69 }, 390 { "set_cursor", "u?oii", types + 69 },
381 { "release", "3", types + 0 }, 391 { "release", "3", types + 0 },
382 }; 392 };
383 393
384 static const struct wl_message wl_pointer_events[] = { 394 static const struct wl_message wl_pointer_events[] = {
385 { "enter", "uoff", types + 73 }, 395 { "enter", "uoff", types + 73 },
386 { "leave", "uo", types + 77 }, 396 { "leave", "uo", types + 77 },
387 { "motion", "uff", types + 0 }, 397 { "motion", "uff", types + 0 },
388 { "button", "uuuu", types + 0 }, 398 { "button", "uuuu", types + 0 },
389 { "axis", "uuf", types + 0 }, 399 { "axis", "uuf", types + 0 },
400 { "frame", "5", types + 0 },
401 { "axis_source", "5u", types + 0 },
402 { "axis_stop", "5uu", types + 0 },
403 { "axis_discrete", "5ui", types + 0 },
390 }; 404 };
391 405
392 WL_EXPORT const struct wl_interface wl_pointer_interface = { 406 WL_EXPORT const struct wl_interface wl_pointer_interface = {
393 » "wl_pointer", 3, 407 » "wl_pointer", 5,
394 2, wl_pointer_requests, 408 2, wl_pointer_requests,
395 » 5, wl_pointer_events, 409 » 9, wl_pointer_events,
396 }; 410 };
397 411
398 static const struct wl_message wl_keyboard_requests[] = { 412 static const struct wl_message wl_keyboard_requests[] = {
399 { "release", "3", types + 0 }, 413 { "release", "3", types + 0 },
400 }; 414 };
401 415
402 static const struct wl_message wl_keyboard_events[] = { 416 static const struct wl_message wl_keyboard_events[] = {
403 { "keymap", "uhu", types + 0 }, 417 { "keymap", "uhu", types + 0 },
404 { "enter", "uoa", types + 79 }, 418 { "enter", "uoa", types + 79 },
405 { "leave", "uo", types + 82 }, 419 { "leave", "uo", types + 82 },
406 { "key", "uuuu", types + 0 }, 420 { "key", "uuuu", types + 0 },
407 { "modifiers", "uuuuu", types + 0 }, 421 { "modifiers", "uuuuu", types + 0 },
408 { "repeat_info", "4ii", types + 0 }, 422 { "repeat_info", "4ii", types + 0 },
409 }; 423 };
410 424
411 WL_EXPORT const struct wl_interface wl_keyboard_interface = { 425 WL_EXPORT const struct wl_interface wl_keyboard_interface = {
412 » "wl_keyboard", 4, 426 » "wl_keyboard", 5,
413 1, wl_keyboard_requests, 427 1, wl_keyboard_requests,
414 6, wl_keyboard_events, 428 6, wl_keyboard_events,
415 }; 429 };
416 430
417 static const struct wl_message wl_touch_requests[] = { 431 static const struct wl_message wl_touch_requests[] = {
418 { "release", "3", types + 0 }, 432 { "release", "3", types + 0 },
419 }; 433 };
420 434
421 static const struct wl_message wl_touch_events[] = { 435 static const struct wl_message wl_touch_events[] = {
422 { "down", "uuoiff", types + 84 }, 436 { "down", "uuoiff", types + 84 },
423 { "up", "uui", types + 0 }, 437 { "up", "uui", types + 0 },
424 { "motion", "uiff", types + 0 }, 438 { "motion", "uiff", types + 0 },
425 { "frame", "", types + 0 }, 439 { "frame", "", types + 0 },
426 { "cancel", "", types + 0 }, 440 { "cancel", "", types + 0 },
427 }; 441 };
428 442
429 WL_EXPORT const struct wl_interface wl_touch_interface = { 443 WL_EXPORT const struct wl_interface wl_touch_interface = {
430 » "wl_touch", 3, 444 » "wl_touch", 5,
431 1, wl_touch_requests, 445 1, wl_touch_requests,
432 5, wl_touch_events, 446 5, wl_touch_events,
433 }; 447 };
434 448
435 static const struct wl_message wl_output_events[] = { 449 static const struct wl_message wl_output_events[] = {
436 { "geometry", "iiiiissi", types + 0 }, 450 { "geometry", "iiiiissi", types + 0 },
437 { "mode", "uiii", types + 0 }, 451 { "mode", "uiii", types + 0 },
438 { "done", "2", types + 0 }, 452 { "done", "2", types + 0 },
439 { "scale", "2i", types + 0 }, 453 { "scale", "2i", types + 0 },
440 }; 454 };
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
476 { "set_sync", "", types + 0 }, 490 { "set_sync", "", types + 0 },
477 { "set_desync", "", types + 0 }, 491 { "set_desync", "", types + 0 },
478 }; 492 };
479 493
480 WL_EXPORT const struct wl_interface wl_subsurface_interface = { 494 WL_EXPORT const struct wl_interface wl_subsurface_interface = {
481 "wl_subsurface", 1, 495 "wl_subsurface", 1,
482 6, wl_subsurface_requests, 496 6, wl_subsurface_requests,
483 0, NULL, 497 0, NULL,
484 }; 498 };
485 499
OLDNEW
« no previous file with comments | « third_party/wayland/include/src/wayland-version.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698