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

Unified Diff: ui/aura/window_delegate.h

Issue 8570011: Aura: windows in aura should honor Widget::InitParams::accept_events (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: minor changes Created 9 years, 1 month 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/window.cc ('k') | ui/aura/window_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/aura/window_delegate.h
diff --git a/ui/aura/window_delegate.h b/ui/aura/window_delegate.h
index 9a7253b74c8138b24ada71decef72ac12eb158a3..8d3defc984c5d1498be4979921373b347337167b 100644
--- a/ui/aura/window_delegate.h
+++ b/ui/aura/window_delegate.h
@@ -54,6 +54,10 @@ class AURA_EXPORT WindowDelegate {
// attempted for another reason.
virtual bool ShouldActivate(Event* event) = 0;
+ // Returns true if this window should accept events, false if it should
+ // ignore all events and make them pass to the window behind it.
+ virtual bool ShouldAcceptEvents() { return true; }
Ben Goodger (Google) 2011/11/15 22:10:53 Everything else on this interface is pure virtual.
+
// Sent when the window is activated.
virtual void OnActivated() = 0;
« no previous file with comments | « ui/aura/window.cc ('k') | ui/aura/window_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698