diff options
author | reveman <reveman@chromium.org> | 2016-03-16 11:10:12 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-03-16 18:11:47 +0000 |
commit | 96ef50fd94321c2b83bbaba040c48ade85c53805 (patch) | |
tree | 05cb7865dc5e17e1ab5cb2dbd894b3457492d1a9 /third_party/wayland-protocols/include | |
parent | 9e85a210f2ea147f2524845bb5c7fdbecc0670f5 (diff) | |
download | chromium_src-96ef50fd94321c2b83bbaba040c48ade85c53805.zip chromium_src-96ef50fd94321c2b83bbaba040c48ade85c53805.tar.gz chromium_src-96ef50fd94321c2b83bbaba040c48ade85c53805.tar.bz2 |
Re-land: third_party: Add missing scaler.xml file.
This was supposed to be included in the change that added the
auto-generated scaler files.
This also updates scaler.xml to the latest upstream version.
TBR=piman@chromium.org
BUG=549782
Review URL: https://codereview.chromium.org/1807463004
Cr-Commit-Position: refs/heads/master@{#381496}
Diffstat (limited to 'third_party/wayland-protocols/include')
-rw-r--r-- | third_party/wayland-protocols/include/protocol/scaler-client-protocol.h | 29 | ||||
-rw-r--r-- | third_party/wayland-protocols/include/protocol/scaler-server-protocol.h | 13 |
2 files changed, 33 insertions, 9 deletions
diff --git a/third_party/wayland-protocols/include/protocol/scaler-client-protocol.h b/third_party/wayland-protocols/include/protocol/scaler-client-protocol.h index 45941cf..fa0a079 100644 --- a/third_party/wayland-protocols/include/protocol/scaler-client-protocol.h +++ b/third_party/wayland-protocols/include/protocol/scaler-client-protocol.h @@ -1,17 +1,17 @@ -/* +/* * Copyright © 2013-2014 Collabora, Ltd. - * + * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Software"), * to deal in the Software without restriction, including without limitation * the rights to use, copy, modify, merge, publish, distribute, sublicense, * and/or sell copies of the Software, and to permit persons to whom the * Software is furnished to do so, subject to the following conditions: - * + * * The above copyright notice and this permission notice (including the next * paragraph) shall be included in all copies or substantial portions of the * Software. - * + * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL @@ -36,6 +36,7 @@ struct wl_client; struct wl_resource; struct wl_scaler; +struct wl_surface; struct wl_viewport; extern const struct wl_interface wl_scaler_interface; @@ -51,6 +52,9 @@ enum wl_scaler_error { #define WL_SCALER_DESTROY 0 #define WL_SCALER_GET_VIEWPORT 1 +#define WL_SCALER_DESTROY_SINCE_VERSION 1 +#define WL_SCALER_GET_VIEWPORT_SINCE_VERSION 1 + static inline void wl_scaler_set_user_data(struct wl_scaler *wl_scaler, void *user_data) { @@ -63,6 +67,12 @@ wl_scaler_get_user_data(struct wl_scaler *wl_scaler) return wl_proxy_get_user_data((struct wl_proxy *) wl_scaler); } +static inline uint32_t +wl_scaler_get_version(struct wl_scaler *wl_scaler) +{ + return wl_proxy_get_version((struct wl_proxy *) wl_scaler); +} + static inline void wl_scaler_destroy(struct wl_scaler *wl_scaler) { @@ -95,6 +105,11 @@ enum wl_viewport_error { #define WL_VIEWPORT_SET_SOURCE 2 #define WL_VIEWPORT_SET_DESTINATION 3 +#define WL_VIEWPORT_DESTROY_SINCE_VERSION 1 +#define WL_VIEWPORT_SET_SINCE_VERSION 1 +#define WL_VIEWPORT_SET_SOURCE_SINCE_VERSION 2 +#define WL_VIEWPORT_SET_DESTINATION_SINCE_VERSION 2 + static inline void wl_viewport_set_user_data(struct wl_viewport *wl_viewport, void *user_data) { @@ -107,6 +122,12 @@ wl_viewport_get_user_data(struct wl_viewport *wl_viewport) return wl_proxy_get_user_data((struct wl_proxy *) wl_viewport); } +static inline uint32_t +wl_viewport_get_version(struct wl_viewport *wl_viewport) +{ + return wl_proxy_get_version((struct wl_proxy *) wl_viewport); +} + static inline void wl_viewport_destroy(struct wl_viewport *wl_viewport) { diff --git a/third_party/wayland-protocols/include/protocol/scaler-server-protocol.h b/third_party/wayland-protocols/include/protocol/scaler-server-protocol.h index 0684fb1..8c476fe 100644 --- a/third_party/wayland-protocols/include/protocol/scaler-server-protocol.h +++ b/third_party/wayland-protocols/include/protocol/scaler-server-protocol.h @@ -1,17 +1,17 @@ -/* +/* * Copyright © 2013-2014 Collabora, Ltd. - * + * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Software"), * to deal in the Software without restriction, including without limitation * the rights to use, copy, modify, merge, publish, distribute, sublicense, * and/or sell copies of the Software, and to permit persons to whom the * Software is furnished to do so, subject to the following conditions: - * + * * The above copyright notice and this permission notice (including the next * paragraph) shall be included in all copies or substantial portions of the * Software. - * + * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL @@ -30,12 +30,13 @@ extern "C" { #include <stdint.h> #include <stddef.h> -#include "wayland-util.h" +#include "wayland-server.h" struct wl_client; struct wl_resource; struct wl_scaler; +struct wl_surface; struct wl_viewport; extern const struct wl_interface wl_scaler_interface; @@ -85,6 +86,7 @@ struct wl_scaler_interface { struct wl_resource *surface); }; + #ifndef WL_VIEWPORT_ERROR_ENUM #define WL_VIEWPORT_ERROR_ENUM enum wl_viewport_error { @@ -247,6 +249,7 @@ struct wl_viewport_interface { int32_t height); }; + #ifdef __cplusplus } #endif |