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

Side by Side Diff: ui/aura/window_targeter.h

Issue 113283005: aura: Start using EventPrcessor interface for event dispatch. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 7 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « ui/aura/root_window_unittest.cc ('k') | ui/aura/window_targeter.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) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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 "ui/events/event_targeter.h" 5 #include "ui/events/event_targeter.h"
6 6
7 namespace aura { 7 namespace aura {
8 8
9 class Window;
10
9 class WindowTargeter : public ui::EventTargeter { 11 class WindowTargeter : public ui::EventTargeter {
10 public: 12 public:
11 WindowTargeter(); 13 WindowTargeter();
12 virtual ~WindowTargeter(); 14 virtual ~WindowTargeter();
13 15
14 protected: 16 protected:
15 // ui::EventTargeter: 17 // ui::EventTargeter:
16 virtual ui::EventTarget* FindTargetForEvent(ui::EventTarget* root, 18 virtual ui::EventTarget* FindTargetForEvent(ui::EventTarget* root,
17 ui::Event* event) OVERRIDE; 19 ui::Event* event) OVERRIDE;
20 virtual ui::EventTarget* FindTargetForLocatedEvent(
21 ui::EventTarget* root,
22 ui::LocatedEvent* event) OVERRIDE;
18 virtual bool SubtreeShouldBeExploredForEvent( 23 virtual bool SubtreeShouldBeExploredForEvent(
19 ui::EventTarget* target, 24 ui::EventTarget* target,
20 const ui::LocatedEvent& event) OVERRIDE; 25 const ui::LocatedEvent& event) OVERRIDE;
21 26
27 private:
28 Window* FindTargetInRootWindow(Window* root_window,
29 const ui::LocatedEvent& event);
30
22 DISALLOW_COPY_AND_ASSIGN(WindowTargeter); 31 DISALLOW_COPY_AND_ASSIGN(WindowTargeter);
23 }; 32 };
24 33
25 } // namespace aura 34 } // namespace aura
OLDNEW
« no previous file with comments | « ui/aura/root_window_unittest.cc ('k') | ui/aura/window_targeter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698