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

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: modified according to comments 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.h ('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.cc
diff --git a/ui/aura/window.cc b/ui/aura/window.cc
index d1caa0416e6eab3ea3e35464644793eef6d29341..ce1206bf9f1d96b2a5a34214c345e0d210c7be82 100644
--- a/ui/aura/window.cc
+++ b/ui/aura/window.cc
@@ -30,7 +30,8 @@ Window::Window(WindowDelegate* delegate)
transient_parent_(NULL),
id_(-1),
user_data_(NULL),
- stops_event_propagation_(false) {
+ stops_event_propagation_(false),
+ ignore_events_(false) {
}
Window::~Window() {
@@ -472,7 +473,7 @@ Window* Window::GetWindowForPoint(const gfx::Point& local_point,
for (Windows::const_reverse_iterator it = children_.rbegin();
it != children_.rend(); ++it) {
Window* child = *it;
- if (!child->IsVisible())
+ if (!child->IsVisible() || (for_event_handling && child->ignore_events_))
continue;
gfx::Point point_in_child_coords(local_point);
« no previous file with comments | « ui/aura/window.h ('k') | ui/aura/window_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698