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

Side by Side Diff: aura/root_window.cc

Issue 7791030: Proper MouseEvent targeting. Adds a Window method that locates a Window for a given point. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 3 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « aura/root_window.h ('k') | aura/run_all_unittests.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "aura/root_window.h" 5 #include "aura/root_window.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "aura/event.h" 8 #include "aura/event.h"
9 #include "aura/window_delegate.h" 9 #include "aura/window_delegate.h"
10 #include "ui/base/events.h" 10 #include "ui/base/events.h"
(...skipping 15 matching lines...) Expand all
26 mouse_pressed_handler_ = target; 26 mouse_pressed_handler_ = target;
27 if (target->delegate()) { 27 if (target->delegate()) {
28 MouseEvent translated_event(event, this, target); 28 MouseEvent translated_event(event, this, target);
29 return target->delegate()->OnMouseEvent(translated_event); 29 return target->delegate()->OnMouseEvent(translated_event);
30 } 30 }
31 return false; 31 return false;
32 } 32 }
33 33
34 } // namespace internal 34 } // namespace internal
35 } // namespace aura 35 } // namespace aura
OLDNEW
« no previous file with comments | « aura/root_window.h ('k') | aura/run_all_unittests.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698