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

Unified Diff: components/exo/surface.h

Issue 1802993003: exo: Add support for secure_output interface to wayland bindings. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@wayland-protocols-secure-contents
Patch Set: improve unit test 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « components/exo/buffer_unittest.cc ('k') | components/exo/surface.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/exo/surface.h
diff --git a/components/exo/surface.h b/components/exo/surface.h
index 846d12be7754858e8b650ed275f7ee1b31835990..69fe280bf4dd1d2223a9e6250acac9f6d8c6c237 100644
--- a/components/exo/surface.h
+++ b/components/exo/surface.h
@@ -83,6 +83,10 @@ class Surface : public aura::Window,
// This sets the surface viewport for scaling.
void SetViewport(const gfx::Size& viewport);
+ // This sets the only visible on secure output flag, preventing it from
+ // appearing in screenshots or from being viewed on non-secure displays.
+ void SetOnlyVisibleOnSecureOutput(bool only_visible_on_secure_output);
+
// Surface state (damage regions, attached buffers, etc.) is double-buffered.
// A Commit() call atomically applies all pending state, replacing the
// current state. Commit() is not guaranteed to be synchronous. See
@@ -190,6 +194,9 @@ class Surface : public aura::Window,
// The viewport to take effect when Commit() is called.
gfx::Size pending_viewport_;
+ // The secure output visibility state to take effect when Commit() is called.
+ bool pending_only_visible_on_secure_output_;
+
// The buffer that is currently set as content of surface.
base::WeakPtr<Buffer> current_buffer_;
« no previous file with comments | « components/exo/buffer_unittest.cc ('k') | components/exo/surface.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698