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_; |