| Index: third_party/wayland-protocols/protocol/secure-contents-protocol.c
|
| diff --git a/third_party/wayland-protocols/protocol/scaler-protocol.c b/third_party/wayland-protocols/protocol/secure-contents-protocol.c
|
| similarity index 68%
|
| copy from third_party/wayland-protocols/protocol/scaler-protocol.c
|
| copy to third_party/wayland-protocols/protocol/secure-contents-protocol.c
|
| index 54473261b5cc128898ff822f31a003659a296dae..d87ee4cd26cb098bf21df3dd8e9d6f4fe524bb69 100644
|
| --- a/third_party/wayland-protocols/protocol/scaler-protocol.c
|
| +++ b/third_party/wayland-protocols/protocol/secure-contents-protocol.c
|
| @@ -1,5 +1,5 @@
|
| /*
|
| - * Copyright © 2013-2014 Collabora, Ltd.
|
| + * 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"),
|
| @@ -25,41 +25,33 @@
|
| #include <stdint.h>
|
| #include "wayland-util.h"
|
|
|
| -extern const struct wl_interface wl_viewport_interface;
|
| +extern const struct wl_interface zwp_secure_v1_interface;
|
| extern const struct wl_interface wl_surface_interface;
|
|
|
| static const struct wl_interface *types[] = {
|
| - NULL,
|
| - NULL,
|
| - NULL,
|
| - NULL,
|
| - NULL,
|
| - NULL,
|
| - &wl_viewport_interface,
|
| + &zwp_secure_v1_interface,
|
| &wl_surface_interface,
|
| };
|
|
|
| -static const struct wl_message wl_scaler_requests[] = {
|
| +static const struct wl_message zwp_secure_contents_v1_requests[] = {
|
| { "destroy", "", types + 0 },
|
| - { "get_viewport", "no", types + 6 },
|
| + { "get_secure", "no", types + 0 },
|
| };
|
|
|
| -WL_EXPORT const struct wl_interface wl_scaler_interface = {
|
| - "wl_scaler", 2,
|
| - 2, wl_scaler_requests,
|
| +WL_EXPORT const struct wl_interface zwp_secure_contents_v1_interface = {
|
| + "zwp_secure_contents_v1", 1,
|
| + 2, zwp_secure_contents_v1_requests,
|
| 0, NULL,
|
| };
|
|
|
| -static const struct wl_message wl_viewport_requests[] = {
|
| +static const struct wl_message zwp_secure_v1_requests[] = {
|
| { "destroy", "", types + 0 },
|
| - { "set", "ffffii", types + 0 },
|
| - { "set_source", "2ffff", types + 0 },
|
| - { "set_destination", "2ii", types + 0 },
|
| + { "enable_sensitive_contents", "", types + 0 },
|
| };
|
|
|
| -WL_EXPORT const struct wl_interface wl_viewport_interface = {
|
| - "wl_viewport", 2,
|
| - 4, wl_viewport_requests,
|
| +WL_EXPORT const struct wl_interface zwp_secure_v1_interface = {
|
| + "zwp_secure_v1", 1,
|
| + 2, zwp_secure_v1_requests,
|
| 0, NULL,
|
| };
|
|
|
|
|