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

Unified Diff: ui/aura/window.h

Issue 8120014: Add a lock screen example. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 2 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 | « ui/aura/root_window.cc ('k') | ui/aura/window.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/aura/window.h
===================================================================
--- ui/aura/window.h (revision 103882)
+++ ui/aura/window.h (working copy)
@@ -120,6 +120,15 @@
WindowDelegate* delegate() { return delegate_; }
+ // When set to true, this Window will consume all events targeted at it or
+ // Windows below it in the z-order, but only if this Window has children. This
+ // is used to implement lock-screen type functionality where we do not want
+ // events to be sent to running logged-in windows when the lock screen is
+ // displayed.
+ void set_consumes_events(bool consumes_events) {
+ consumes_events_ = consumes_events;
+ }
+
// Returns true if the mouse pointer at the specified |point| can trigger an
// event for this Window.
// TODO(beng):
@@ -189,6 +198,10 @@
void* user_data_;
+ // When true, events are not sent to windows behind this one in the z-order,
+ // provided this window has children. See set_consumes_events().
+ bool consumes_events_;
+
DISALLOW_COPY_AND_ASSIGN(Window);
};
« no previous file with comments | « ui/aura/root_window.cc ('k') | ui/aura/window.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698