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

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

Issue 2350633002: third_party: Switch to zcr prefix for downstream wayland interfaces. (Closed)
Patch Set: Created 4 years, 3 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 /* 3 /*
4 * Copyright 2016 The Chromium Authors. 4 * Copyright 2016 The Chromium Authors.
5 * 5 *
6 * Permission is hereby granted, free of charge, to any person obtaining a 6 * Permission is hereby granted, free of charge, to any person obtaining a
7 * copy of this software and associated documentation files (the "Software"), 7 * copy of this software and associated documentation files (the "Software"),
8 * to deal in the Software without restriction, including without limitation 8 * to deal in the Software without restriction, including without limitation
9 * the rights to use, copy, modify, merge, publish, distribute, sublicense, 9 * 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 10 * and/or sell copies of the Software, and to permit persons to whom the
(...skipping 10 matching lines...) Expand all
21 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 21 * 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 22 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
23 * DEALINGS IN THE SOFTWARE. 23 * DEALINGS IN THE SOFTWARE.
24 */ 24 */
25 25
26 #include <stdlib.h> 26 #include <stdlib.h>
27 #include <stdint.h> 27 #include <stdint.h>
28 #include "wayland-util.h" 28 #include "wayland-util.h"
29 29
30 extern const struct wl_interface wl_surface_interface; 30 extern const struct wl_interface wl_surface_interface;
31 extern const struct wl_interface zcr_notification_surface_v1_interface;
32 extern const struct wl_interface zcr_remote_surface_v1_interface;
31 extern const struct wl_interface zwp_notification_surface_v1_interface; 33 extern const struct wl_interface zwp_notification_surface_v1_interface;
32 extern const struct wl_interface zwp_remote_surface_v1_interface; 34 extern const struct wl_interface zwp_remote_surface_v1_interface;
33 35
34 static const struct wl_interface *types[] = { 36 static const struct wl_interface *types[] = {
35 NULL, 37 NULL,
36 NULL, 38 NULL,
37 NULL, 39 NULL,
38 NULL, 40 NULL,
39 NULL, 41 NULL,
40 NULL, 42 NULL,
41 NULL, 43 NULL,
42 NULL, 44 NULL,
43 NULL, 45 NULL,
46 &zcr_remote_surface_v1_interface,
47 &wl_surface_interface,
48 NULL,
49 &zcr_notification_surface_v1_interface,
50 &wl_surface_interface,
51 NULL,
52 &wl_surface_interface,
53 &wl_surface_interface,
44 &zwp_remote_surface_v1_interface, 54 &zwp_remote_surface_v1_interface,
45 &wl_surface_interface, 55 &wl_surface_interface,
46 NULL, 56 NULL,
47 &zwp_notification_surface_v1_interface, 57 &zwp_notification_surface_v1_interface,
48 &wl_surface_interface, 58 &wl_surface_interface,
49 NULL, 59 NULL,
50 &wl_surface_interface, 60 &wl_surface_interface,
51 &wl_surface_interface, 61 &wl_surface_interface,
52 }; 62 };
53 63
64 static const struct wl_message zcr_remote_shell_v1_requests[] = {
65 { "destroy", "", types + 0 },
66 { "get_remote_surface", "nou", types + 9 },
67 { "get_notification_surface", "nos", types + 12 },
68 };
69
70 static const struct wl_message zcr_remote_shell_v1_events[] = {
71 { "activated", "?o?o", types + 15 },
72 { "configuration_changed", "iiifiiiiu", types + 0 },
73 };
74
75 WL_EXPORT const struct wl_interface zcr_remote_shell_v1_interface = {
76 "zcr_remote_shell_v1", 1,
77 3, zcr_remote_shell_v1_requests,
78 2, zcr_remote_shell_v1_events,
79 };
80
81 static const struct wl_message zcr_remote_surface_v1_requests[] = {
82 { "destroy", "", types + 0 },
83 { "set_app_id", "s", types + 0 },
84 { "set_window_geometry", "iiii", types + 0 },
85 { "set_scale", "f", types + 0 },
86 { "set_rectangular_shadow", "iiii", types + 0 },
87 { "set_rectangular_shadow_background_opacity", "f", types + 0 },
88 { "set_title", "s", types + 0 },
89 { "set_top_inset", "i", types + 0 },
90 { "activate", "u", types + 0 },
91 { "maximize", "", types + 0 },
92 { "minimize", "", types + 0 },
93 { "restore", "", types + 0 },
94 { "fullscreen", "", types + 0 },
95 { "unfullscreen", "", types + 0 },
96 { "pin", "i", types + 0 },
97 { "unpin", "", types + 0 },
98 { "set_system_modal", "", types + 0 },
99 { "unset_system_modal", "", types + 0 },
100 };
101
102 static const struct wl_message zcr_remote_surface_v1_events[] = {
103 { "close", "", types + 0 },
104 { "state_type_changed", "u", types + 0 },
105 };
106
107 WL_EXPORT const struct wl_interface zcr_remote_surface_v1_interface = {
108 "zcr_remote_surface_v1", 1,
109 18, zcr_remote_surface_v1_requests,
110 2, zcr_remote_surface_v1_events,
111 };
112
113 static const struct wl_message zcr_notification_surface_v1_requests[] = {
114 { "destroy", "", types + 0 },
115 };
116
117 WL_EXPORT const struct wl_interface zcr_notification_surface_v1_interface = {
118 "zcr_notification_surface_v1", 1,
119 1, zcr_notification_surface_v1_requests,
120 0, NULL,
121 };
122
54 static const struct wl_message zwp_remote_shell_v1_requests[] = { 123 static const struct wl_message zwp_remote_shell_v1_requests[] = {
55 { "destroy", "", types + 0 }, 124 { "destroy", "", types + 0 },
56 » { "get_remote_surface", "nou", types + 9 }, 125 » { "get_remote_surface", "nou", types + 17 },
57 » { "get_notification_surface", "6nos", types + 12 }, 126 » { "get_notification_surface", "6nos", types + 20 },
58 }; 127 };
59 128
60 static const struct wl_message zwp_remote_shell_v1_events[] = { 129 static const struct wl_message zwp_remote_shell_v1_events[] = {
61 { "configure", "iiiiii", types + 0 }, 130 { "configure", "iiiiii", types + 0 },
62 » { "activated", "?o?o", types + 15 }, 131 » { "activated", "?o?o", types + 23 },
63 { "layout_mode_changed", "8u", types + 0 }, 132 { "layout_mode_changed", "8u", types + 0 },
64 { "configuration_changed", "9iiifiiiiu", types + 0 }, 133 { "configuration_changed", "9iiifiiiiu", types + 0 },
65 }; 134 };
66 135
67 WL_EXPORT const struct wl_interface zwp_remote_shell_v1_interface = { 136 WL_EXPORT const struct wl_interface zwp_remote_shell_v1_interface = {
68 "zwp_remote_shell_v1", 11, 137 "zwp_remote_shell_v1", 11,
69 3, zwp_remote_shell_v1_requests, 138 3, zwp_remote_shell_v1_requests,
70 4, zwp_remote_shell_v1_events, 139 4, zwp_remote_shell_v1_events,
71 }; 140 };
72 141
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
114 static const struct wl_message zwp_notification_surface_v1_requests[] = { 183 static const struct wl_message zwp_notification_surface_v1_requests[] = {
115 { "destroy", "", types + 0 }, 184 { "destroy", "", types + 0 },
116 }; 185 };
117 186
118 WL_EXPORT const struct wl_interface zwp_notification_surface_v1_interface = { 187 WL_EXPORT const struct wl_interface zwp_notification_surface_v1_interface = {
119 "zwp_notification_surface_v1", 6, 188 "zwp_notification_surface_v1", 6,
120 1, zwp_notification_surface_v1_requests, 189 1, zwp_notification_surface_v1_requests,
121 0, NULL, 190 0, NULL,
122 }; 191 };
123 192
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698