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

Unified Diff: ui/aura/desktop.cc

Issue 8788002: Fixes 105886 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Different approach Created 9 years 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/desktop.cc
diff --git a/ui/aura/desktop.cc b/ui/aura/desktop.cc
index fd2e38acbe21d73ed44bd2aa4a1cced14104cbcf..afef67006a0d32fe5ed2aee06b0ee57e983b70ed 100644
--- a/ui/aura/desktop.cc
+++ b/ui/aura/desktop.cc
@@ -468,7 +468,13 @@ bool Desktop::ProcessMouseEvent(Window* target, MouseEvent* event) {
return true;
}
- return target->delegate()->OnMouseEvent(event);
+ bool handled = false;
+ for (Window* window = target; !handled && window; window = window->parent()) {
Ben Goodger (Google) 2011/12/08 19:10:26 So, after discovering how this feature is implemen
+ if (window->delegate())
+ handled = window->delegate()->OnMouseEvent(event);
+ }
+
+ return handled;
}
bool Desktop::ProcessKeyEvent(Window* target, KeyEvent* event) {

Powered by Google App Engine
This is Rietveld 408576698