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

Side by Side Diff: third_party/wayland-protocols/protocol/remote-shell-protocol.c

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: 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 /* Generated by wayland-scanner 1.11.0 */ 1 /*
reveman 2016/06/14 17:05:35 nit: please use wayland-scanner 1.11.0 to generate
xiyuan 2016/06/14 17:27:09 Done.
2
3 /*
4 * Copyright 2016 The Chromium Authors. 2 * Copyright 2016 The Chromium Authors.
5 * 3 *
6 * 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
7 * copy of this software and associated documentation files (the "Software"), 5 * copy of this software and associated documentation files (the "Software"),
8 * to deal in the Software without restriction, including without limitation 6 * to deal in the Software without restriction, including without limitation
9 * the rights to use, copy, modify, merge, publish, distribute, sublicense, 7 * the rights to use, copy, modify, merge, publish, distribute, sublicense,
10 * 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
11 * Software is furnished to do so, subject to the following conditions: 9 * Software is furnished to do so, subject to the following conditions:
12 * 10 *
13 * The above copyright notice and this permission notice (including the next 11 * The above copyright notice and this permission notice (including the next
14 * paragraph) shall be included in all copies or substantial portions of the 12 * paragraph) shall be included in all copies or substantial portions of the
15 * Software. 13 * Software.
16 * 14 *
17 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 15 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
18 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 16 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL 17 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
20 * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 18 * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
21 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 19 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
22 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 20 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
23 * DEALINGS IN THE SOFTWARE. 21 * DEALINGS IN THE SOFTWARE.
24 */ 22 */
25 23
26 #include <stdlib.h> 24 #include <stdlib.h>
27 #include <stdint.h> 25 #include <stdint.h>
28 #include "wayland-util.h" 26 #include "wayland-util.h"
29 27
28 extern const struct wl_interface zwp_remote_surface_v1_interface;
30 extern const struct wl_interface wl_surface_interface; 29 extern const struct wl_interface wl_surface_interface;
31 extern const struct wl_interface zwp_remote_surface_v1_interface; 30 extern const struct wl_interface zwp_notification_surface_v1_interface;
31 extern const struct wl_interface wl_surface_interface;
32 extern const struct wl_interface wl_surface_interface;
33 extern const struct wl_interface wl_surface_interface;
32 34
33 static const struct wl_interface *types[] = { 35 static const struct wl_interface *types[] = {
34 NULL, 36 NULL,
35 NULL, 37 NULL,
36 NULL, 38 NULL,
37 NULL, 39 NULL,
38 NULL, 40 NULL,
39 NULL, 41 NULL,
40 &zwp_remote_surface_v1_interface, 42 &zwp_remote_surface_v1_interface,
41 &wl_surface_interface, 43 &wl_surface_interface,
42 NULL, 44 NULL,
45 &zwp_notification_surface_v1_interface,
46 &wl_surface_interface,
47 NULL,
43 &wl_surface_interface, 48 &wl_surface_interface,
44 &wl_surface_interface, 49 &wl_surface_interface,
45 }; 50 };
46 51
47 static const struct wl_message zwp_remote_shell_v1_requests[] = { 52 static const struct wl_message zwp_remote_shell_v1_requests[] = {
48 { "destroy", "", types + 0 }, 53 { "destroy", "", types + 0 },
49 { "get_remote_surface", "nou", types + 6 }, 54 { "get_remote_surface", "nou", types + 6 },
55 { "get_notification_surface", "4nos", types + 9 },
50 }; 56 };
51 57
52 static const struct wl_message zwp_remote_shell_v1_events[] = { 58 static const struct wl_message zwp_remote_shell_v1_events[] = {
53 » { "configure", "iiiiii", types + 0 }, 59 » { "configure", "4iiiiii", types + 0 },
54 » { "activated", "?o?o", types + 9 }, 60 » { "activated", "4?o?o", types + 12 },
55 }; 61 };
56 62
57 WL_EXPORT const struct wl_interface zwp_remote_shell_v1_interface = { 63 WL_EXPORT const struct wl_interface zwp_remote_shell_v1_interface = {
58 » "zwp_remote_shell_v1", 3, 64 » "zwp_remote_shell_v1", 4,
59 » 2, zwp_remote_shell_v1_requests, 65 » 3, zwp_remote_shell_v1_requests,
60 2, zwp_remote_shell_v1_events, 66 2, zwp_remote_shell_v1_events,
61 }; 67 };
62 68
63 static const struct wl_message zwp_remote_surface_v1_requests[] = { 69 static const struct wl_message zwp_remote_surface_v1_requests[] = {
64 { "destroy", "", types + 0 }, 70 { "destroy", "", types + 0 },
65 { "set_app_id", "s", types + 0 }, 71 { "set_app_id", "s", types + 0 },
66 { "set_window_geometry", "iiii", types + 0 }, 72 { "set_window_geometry", "iiii", types + 0 },
67 { "set_scale", "f", types + 0 }, 73 { "set_scale", "f", types + 0 },
68 { "fullscreen", "2", types + 0 }, 74 { "fullscreen", "2", types + 0 },
69 { "maximize", "2", types + 0 }, 75 { "maximize", "2", types + 0 },
(...skipping 17 matching lines...) Expand all
87 { "set_pinned", "3", types + 0 }, 93 { "set_pinned", "3", types + 0 },
88 { "unset_pinned", "3", types + 0 }, 94 { "unset_pinned", "3", types + 0 },
89 }; 95 };
90 96
91 WL_EXPORT const struct wl_interface zwp_remote_surface_v1_interface = { 97 WL_EXPORT const struct wl_interface zwp_remote_surface_v1_interface = {
92 "zwp_remote_surface_v1", 3, 98 "zwp_remote_surface_v1", 3,
93 11, zwp_remote_surface_v1_requests, 99 11, zwp_remote_surface_v1_requests,
94 11, zwp_remote_surface_v1_events, 100 11, zwp_remote_surface_v1_events,
95 }; 101 };
96 102
103 static const struct wl_message zwp_notification_surface_v1_requests[] = {
104 { "destroy", "", types + 0 },
105 };
106
107 WL_EXPORT const struct wl_interface zwp_notification_surface_v1_interface = {
108 "zwp_notification_surface_v1", 4,
109 1, zwp_notification_surface_v1_requests,
110 0, NULL,
111 };
112
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698