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

Side by Side Diff: third_party/wayland-protocols/include/protocol/scaler-client-protocol.h

Issue 2030023003: exo: Remove support for scaler interface from wayland bindings. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: remove auto-generated code 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
(Empty)
1 /*
2 * Copyright © 2013-2014 Collabora, Ltd.
3 *
4 * Permission is hereby granted, free of charge, to any person obtaining a
5 * copy of this software and associated documentation files (the "Software"),
6 * to deal in the Software without restriction, including without limitation
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
9 * Software is furnished to do so, subject to the following conditions:
10 *
11 * The above copyright notice and this permission notice (including the next
12 * paragraph) shall be included in all copies or substantial portions of the
13 * Software.
14 *
15 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
18 * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
20 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
21 * DEALINGS IN THE SOFTWARE.
22 */
23
24 #ifndef SCALER_CLIENT_PROTOCOL_H
25 #define SCALER_CLIENT_PROTOCOL_H
26
27 #ifdef __cplusplus
28 extern "C" {
29 #endif
30
31 #include <stdint.h>
32 #include <stddef.h>
33 #include "wayland-client.h"
34
35 struct wl_client;
36 struct wl_resource;
37
38 struct wl_scaler;
39 struct wl_surface;
40 struct wl_viewport;
41
42 extern const struct wl_interface wl_scaler_interface;
43 extern const struct wl_interface wl_viewport_interface;
44
45 #ifndef WL_SCALER_ERROR_ENUM
46 #define WL_SCALER_ERROR_ENUM
47 enum wl_scaler_error {
48 WL_SCALER_ERROR_VIEWPORT_EXISTS = 0,
49 };
50 #endif /* WL_SCALER_ERROR_ENUM */
51
52 #define WL_SCALER_DESTROY 0
53 #define WL_SCALER_GET_VIEWPORT 1
54
55 #define WL_SCALER_DESTROY_SINCE_VERSION 1
56 #define WL_SCALER_GET_VIEWPORT_SINCE_VERSION 1
57
58 static inline void
59 wl_scaler_set_user_data(struct wl_scaler *wl_scaler, void *user_data)
60 {
61 wl_proxy_set_user_data((struct wl_proxy *) wl_scaler, user_data);
62 }
63
64 static inline void *
65 wl_scaler_get_user_data(struct wl_scaler *wl_scaler)
66 {
67 return wl_proxy_get_user_data((struct wl_proxy *) wl_scaler);
68 }
69
70 static inline uint32_t
71 wl_scaler_get_version(struct wl_scaler *wl_scaler)
72 {
73 return wl_proxy_get_version((struct wl_proxy *) wl_scaler);
74 }
75
76 static inline void
77 wl_scaler_destroy(struct wl_scaler *wl_scaler)
78 {
79 wl_proxy_marshal((struct wl_proxy *) wl_scaler,
80 WL_SCALER_DESTROY);
81
82 wl_proxy_destroy((struct wl_proxy *) wl_scaler);
83 }
84
85 static inline struct wl_viewport *
86 wl_scaler_get_viewport(struct wl_scaler *wl_scaler, struct wl_surface *surface)
87 {
88 struct wl_proxy *id;
89
90 id = wl_proxy_marshal_constructor((struct wl_proxy *) wl_scaler,
91 WL_SCALER_GET_VIEWPORT, &wl_viewport_interface, NULL, s urface);
92
93 return (struct wl_viewport *) id;
94 }
95
96 #ifndef WL_VIEWPORT_ERROR_ENUM
97 #define WL_VIEWPORT_ERROR_ENUM
98 enum wl_viewport_error {
99 WL_VIEWPORT_ERROR_BAD_VALUE = 0,
100 };
101 #endif /* WL_VIEWPORT_ERROR_ENUM */
102
103 #define WL_VIEWPORT_DESTROY 0
104 #define WL_VIEWPORT_SET 1
105 #define WL_VIEWPORT_SET_SOURCE 2
106 #define WL_VIEWPORT_SET_DESTINATION 3
107
108 #define WL_VIEWPORT_DESTROY_SINCE_VERSION 1
109 #define WL_VIEWPORT_SET_SINCE_VERSION 1
110 #define WL_VIEWPORT_SET_SOURCE_SINCE_VERSION 2
111 #define WL_VIEWPORT_SET_DESTINATION_SINCE_VERSION 2
112
113 static inline void
114 wl_viewport_set_user_data(struct wl_viewport *wl_viewport, void *user_data)
115 {
116 wl_proxy_set_user_data((struct wl_proxy *) wl_viewport, user_data);
117 }
118
119 static inline void *
120 wl_viewport_get_user_data(struct wl_viewport *wl_viewport)
121 {
122 return wl_proxy_get_user_data((struct wl_proxy *) wl_viewport);
123 }
124
125 static inline uint32_t
126 wl_viewport_get_version(struct wl_viewport *wl_viewport)
127 {
128 return wl_proxy_get_version((struct wl_proxy *) wl_viewport);
129 }
130
131 static inline void
132 wl_viewport_destroy(struct wl_viewport *wl_viewport)
133 {
134 wl_proxy_marshal((struct wl_proxy *) wl_viewport,
135 WL_VIEWPORT_DESTROY);
136
137 wl_proxy_destroy((struct wl_proxy *) wl_viewport);
138 }
139
140 static inline void
141 wl_viewport_set(struct wl_viewport *wl_viewport, wl_fixed_t src_x, wl_fixed_t sr c_y, wl_fixed_t src_width, wl_fixed_t src_height, int32_t dst_width, int32_t dst _height)
142 {
143 wl_proxy_marshal((struct wl_proxy *) wl_viewport,
144 WL_VIEWPORT_SET, src_x, src_y, src_width, src_height, d st_width, dst_height);
145 }
146
147 static inline void
148 wl_viewport_set_source(struct wl_viewport *wl_viewport, wl_fixed_t x, wl_fixed_t y, wl_fixed_t width, wl_fixed_t height)
149 {
150 wl_proxy_marshal((struct wl_proxy *) wl_viewport,
151 WL_VIEWPORT_SET_SOURCE, x, y, width, height);
152 }
153
154 static inline void
155 wl_viewport_set_destination(struct wl_viewport *wl_viewport, int32_t width, int3 2_t height)
156 {
157 wl_proxy_marshal((struct wl_proxy *) wl_viewport,
158 WL_VIEWPORT_SET_DESTINATION, width, height);
159 }
160
161 #ifdef __cplusplus
162 }
163 #endif
164
165 #endif
OLDNEW
« no previous file with comments | « third_party/wayland-protocols/README.chromium ('k') | third_party/wayland-protocols/include/protocol/scaler-server-protocol.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698