| Index: third_party/wayland-protocols/include/protocol/secure-contents-unstable-v1-server-protocol.h
|
| diff --git a/third_party/wayland-protocols/include/protocol/secure-contents-unstable-v1-server-protocol.h b/third_party/wayland-protocols/include/protocol/secure-contents-unstable-v1-server-protocol.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..e64ce495d858e28d965735ec7675cab91911ae5f
|
| --- /dev/null
|
| +++ b/third_party/wayland-protocols/include/protocol/secure-contents-unstable-v1-server-protocol.h
|
| @@ -0,0 +1,129 @@
|
| +/*
|
| + * Copyright 2015 The Chromium Authors.
|
| + *
|
| + * 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
|
| + * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
| + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
| + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
| + * DEALINGS IN THE SOFTWARE.
|
| + */
|
| +
|
| +#ifndef SECURE_CONTENTS_UNSTABLE_V1_SERVER_PROTOCOL_H
|
| +#define SECURE_CONTENTS_UNSTABLE_V1_SERVER_PROTOCOL_H
|
| +
|
| +#ifdef __cplusplus
|
| +extern "C" {
|
| +#endif
|
| +
|
| +#include <stdint.h>
|
| +#include <stddef.h>
|
| +#include "wayland-util.h"
|
| +
|
| +struct wl_client;
|
| +struct wl_resource;
|
| +
|
| +struct zwp_secure_contents_v1;
|
| +struct zwp_secure_v1;
|
| +
|
| +extern const struct wl_interface zwp_secure_contents_v1_interface;
|
| +extern const struct wl_interface zwp_secure_v1_interface;
|
| +
|
| +#ifndef ZWP_SECURE_CONTENTS_V1_ERROR_ENUM
|
| +#define ZWP_SECURE_CONTENTS_V1_ERROR_ENUM
|
| +enum zwp_secure_contents_v1_error {
|
| + ZWP_SECURE_CONTENTS_V1_ERROR_SECURE_EXISTS = 0,
|
| +};
|
| +#endif /* ZWP_SECURE_CONTENTS_V1_ERROR_ENUM */
|
| +
|
| +/**
|
| + * zwp_secure_contents_v1 - secure contents
|
| + * @destroy: unbind from the secure contents interface
|
| + * @get_secure: extend surface interface for secure contents
|
| + *
|
| + * The global interface exposing secure contents capabilities is used to
|
| + * instantiate an interface extension for a wl_surface object. This
|
| + * extended interface will then allow surfaces to be marked as having
|
| + * sensitive contents, effectively preventing the surface from from
|
| + * appearing in screenshots or from being viewed on non-secure outputs.
|
| + */
|
| +struct zwp_secure_contents_v1_interface {
|
| + /**
|
| + * destroy - unbind from the secure contents interface
|
| + *
|
| + * Informs the server that the client will not be using this
|
| + * protocol object anymore. This does not affect any other objects,
|
| + * secure objects included.
|
| + */
|
| + void (*destroy)(struct wl_client *client,
|
| + struct wl_resource *resource);
|
| + /**
|
| + * get_secure - extend surface interface for secure contents
|
| + * @id: the new secure interface id
|
| + * @surface: the surface
|
| + *
|
| + * Instantiate an interface extension for the given wl_surface to
|
| + * provide securing of contents. If the given wl_surface already
|
| + * has a secure object associated, the secure_exists protocol error
|
| + * is raised.
|
| + */
|
| + void (*get_secure)(struct wl_client *client,
|
| + struct wl_resource *resource,
|
| + uint32_t id,
|
| + struct wl_resource *surface);
|
| +};
|
| +
|
| +/**
|
| + * zwp_secure_v1 - secure interface to a wl_surface
|
| + * @destroy: remove sensitive contents from the surface
|
| + * @enable_sensitive_contents: set the sensitive contents state
|
| + *
|
| + * An additional interface to a wl_surface object, which allows the
|
| + * client to specify that a surface has sensitive surface contents.
|
| + *
|
| + * If the wl_surface associated with the secure object is destroyed, the
|
| + * secure object becomes inert.
|
| + *
|
| + * If the secure object is destroyed, the sensitive contents state is
|
| + * removed from the wl_surface. The change will be applied on the next
|
| + * wl_surface.commit.
|
| + */
|
| +struct zwp_secure_v1_interface {
|
| + /**
|
| + * destroy - remove sensitive contents from the surface
|
| + *
|
| + * The associated wl_surface's senstaive contents state is
|
| + * removed. The change is applied on the next wl_surface.commit.
|
| + */
|
| + void (*destroy)(struct wl_client *client,
|
| + struct wl_resource *resource);
|
| + /**
|
| + * enable_sensitive_contents - set the sensitive contents state
|
| + *
|
| + * Enable sensitive contents for wl_surface. See
|
| + * wp_secure_contents for the description.
|
| + *
|
| + * The sensitive contents state is double-buffered state, and will
|
| + * be applied on the next wl_surface.commit.
|
| + */
|
| + void (*enable_sensitive_contents)(struct wl_client *client,
|
| + struct wl_resource *resource);
|
| +};
|
| +
|
| +#ifdef __cplusplus
|
| +}
|
| +#endif
|
| +
|
| +#endif
|
|
|