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

Unified Diff: ui/aura/window.cc

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
Index: ui/aura/window.cc
diff --git a/ui/aura/window.cc b/ui/aura/window.cc
index d1caa0416e6eab3ea3e35464644793eef6d29341..3df1786df526fcc47780f96afec9f104ce84b13b 100644
--- a/ui/aura/window.cc
+++ b/ui/aura/window.cc
@@ -466,6 +466,9 @@ Window* Window::GetWindowForPoint(const gfx::Point& local_point,
(!for_event_handling && !ContainsPoint(local_point)))
return NULL;
+ if (for_event_handling && delegate_ && !delegate_->ShouldAcceptEvents())
+ return NULL;
+
if (!return_tightest && delegate_)
return this;

Powered by Google App Engine
This is Rietveld 408576698