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

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

Issue 1807463004: Re-land: third_party: Add missing scaler.xml file. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: move scaler.xml out of src/ and update to latest version Created 4 years, 9 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 /* 1 /*
2 * Copyright © 2013-2014 Collabora, Ltd. 2 * Copyright © 2013-2014 Collabora, Ltd.
3 * 3 *
4 * 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
5 * copy of this software and associated documentation files (the "Software"), 5 * copy of this software and associated documentation files (the "Software"),
6 * to deal in the Software without restriction, including without limitation 6 * to deal in the Software without restriction, including without limitation
7 * the rights to use, copy, modify, merge, publish, distribute, sublicense, 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 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: 9 * Software is furnished to do so, subject to the following conditions:
10 * 10 *
11 * The above copyright notice and this permission notice (including the next 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 12 * paragraph) shall be included in all copies or substantial portions of the
13 * Software. 13 * Software.
14 * 14 *
15 * 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
16 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 16 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL 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 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 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 20 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
21 * DEALINGS IN THE SOFTWARE. 21 * DEALINGS IN THE SOFTWARE.
22 */ 22 */
23 23
24 #ifndef SCALER_CLIENT_PROTOCOL_H 24 #ifndef SCALER_CLIENT_PROTOCOL_H
25 #define SCALER_CLIENT_PROTOCOL_H 25 #define SCALER_CLIENT_PROTOCOL_H
26 26
27 #ifdef __cplusplus 27 #ifdef __cplusplus
28 extern "C" { 28 extern "C" {
29 #endif 29 #endif
30 30
31 #include <stdint.h> 31 #include <stdint.h>
32 #include <stddef.h> 32 #include <stddef.h>
33 #include "wayland-client.h" 33 #include "wayland-client.h"
34 34
35 struct wl_client; 35 struct wl_client;
36 struct wl_resource; 36 struct wl_resource;
37 37
38 struct wl_scaler; 38 struct wl_scaler;
39 struct wl_surface;
39 struct wl_viewport; 40 struct wl_viewport;
40 41
41 extern const struct wl_interface wl_scaler_interface; 42 extern const struct wl_interface wl_scaler_interface;
42 extern const struct wl_interface wl_viewport_interface; 43 extern const struct wl_interface wl_viewport_interface;
43 44
44 #ifndef WL_SCALER_ERROR_ENUM 45 #ifndef WL_SCALER_ERROR_ENUM
45 #define WL_SCALER_ERROR_ENUM 46 #define WL_SCALER_ERROR_ENUM
46 enum wl_scaler_error { 47 enum wl_scaler_error {
47 WL_SCALER_ERROR_VIEWPORT_EXISTS = 0, 48 WL_SCALER_ERROR_VIEWPORT_EXISTS = 0,
48 }; 49 };
49 #endif /* WL_SCALER_ERROR_ENUM */ 50 #endif /* WL_SCALER_ERROR_ENUM */
50 51
51 #define WL_SCALER_DESTROY 0 52 #define WL_SCALER_DESTROY 0
52 #define WL_SCALER_GET_VIEWPORT 1 53 #define WL_SCALER_GET_VIEWPORT 1
53 54
55 #define WL_SCALER_DESTROY_SINCE_VERSION 1
56 #define WL_SCALER_GET_VIEWPORT_SINCE_VERSION 1
57
54 static inline void 58 static inline void
55 wl_scaler_set_user_data(struct wl_scaler *wl_scaler, void *user_data) 59 wl_scaler_set_user_data(struct wl_scaler *wl_scaler, void *user_data)
56 { 60 {
57 wl_proxy_set_user_data((struct wl_proxy *) wl_scaler, user_data); 61 wl_proxy_set_user_data((struct wl_proxy *) wl_scaler, user_data);
58 } 62 }
59 63
60 static inline void * 64 static inline void *
61 wl_scaler_get_user_data(struct wl_scaler *wl_scaler) 65 wl_scaler_get_user_data(struct wl_scaler *wl_scaler)
62 { 66 {
63 return wl_proxy_get_user_data((struct wl_proxy *) wl_scaler); 67 return wl_proxy_get_user_data((struct wl_proxy *) wl_scaler);
64 } 68 }
65 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
66 static inline void 76 static inline void
67 wl_scaler_destroy(struct wl_scaler *wl_scaler) 77 wl_scaler_destroy(struct wl_scaler *wl_scaler)
68 { 78 {
69 wl_proxy_marshal((struct wl_proxy *) wl_scaler, 79 wl_proxy_marshal((struct wl_proxy *) wl_scaler,
70 WL_SCALER_DESTROY); 80 WL_SCALER_DESTROY);
71 81
72 wl_proxy_destroy((struct wl_proxy *) wl_scaler); 82 wl_proxy_destroy((struct wl_proxy *) wl_scaler);
73 } 83 }
74 84
75 static inline struct wl_viewport * 85 static inline struct wl_viewport *
(...skipping 12 matching lines...) Expand all
88 enum wl_viewport_error { 98 enum wl_viewport_error {
89 WL_VIEWPORT_ERROR_BAD_VALUE = 0, 99 WL_VIEWPORT_ERROR_BAD_VALUE = 0,
90 }; 100 };
91 #endif /* WL_VIEWPORT_ERROR_ENUM */ 101 #endif /* WL_VIEWPORT_ERROR_ENUM */
92 102
93 #define WL_VIEWPORT_DESTROY 0 103 #define WL_VIEWPORT_DESTROY 0
94 #define WL_VIEWPORT_SET 1 104 #define WL_VIEWPORT_SET 1
95 #define WL_VIEWPORT_SET_SOURCE 2 105 #define WL_VIEWPORT_SET_SOURCE 2
96 #define WL_VIEWPORT_SET_DESTINATION 3 106 #define WL_VIEWPORT_SET_DESTINATION 3
97 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
98 static inline void 113 static inline void
99 wl_viewport_set_user_data(struct wl_viewport *wl_viewport, void *user_data) 114 wl_viewport_set_user_data(struct wl_viewport *wl_viewport, void *user_data)
100 { 115 {
101 wl_proxy_set_user_data((struct wl_proxy *) wl_viewport, user_data); 116 wl_proxy_set_user_data((struct wl_proxy *) wl_viewport, user_data);
102 } 117 }
103 118
104 static inline void * 119 static inline void *
105 wl_viewport_get_user_data(struct wl_viewport *wl_viewport) 120 wl_viewport_get_user_data(struct wl_viewport *wl_viewport)
106 { 121 {
107 return wl_proxy_get_user_data((struct wl_proxy *) wl_viewport); 122 return wl_proxy_get_user_data((struct wl_proxy *) wl_viewport);
108 } 123 }
109 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
110 static inline void 131 static inline void
111 wl_viewport_destroy(struct wl_viewport *wl_viewport) 132 wl_viewport_destroy(struct wl_viewport *wl_viewport)
112 { 133 {
113 wl_proxy_marshal((struct wl_proxy *) wl_viewport, 134 wl_proxy_marshal((struct wl_proxy *) wl_viewport,
114 WL_VIEWPORT_DESTROY); 135 WL_VIEWPORT_DESTROY);
115 136
116 wl_proxy_destroy((struct wl_proxy *) wl_viewport); 137 wl_proxy_destroy((struct wl_proxy *) wl_viewport);
117 } 138 }
118 139
119 static inline void 140 static inline void
(...skipping 15 matching lines...) Expand all
135 { 156 {
136 wl_proxy_marshal((struct wl_proxy *) wl_viewport, 157 wl_proxy_marshal((struct wl_proxy *) wl_viewport,
137 WL_VIEWPORT_SET_DESTINATION, width, height); 158 WL_VIEWPORT_SET_DESTINATION, width, height);
138 } 159 }
139 160
140 #ifdef __cplusplus 161 #ifdef __cplusplus
141 } 162 }
142 #endif 163 #endif
143 164
144 #endif 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