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

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

Issue 174803002: Move root_window.* to window_event_dispatcher.* (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 6 years, 10 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 | « ui/aura/window_event_dispatcher_unittest.cc ('k') | ui/aura/window_tree_host.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/aura/window_targeter.h" 5 #include "ui/aura/window_targeter.h"
6 6
7 #include "ui/aura/client/capture_client.h" 7 #include "ui/aura/client/capture_client.h"
8 #include "ui/aura/client/event_client.h" 8 #include "ui/aura/client/event_client.h"
9 #include "ui/aura/client/focus_client.h" 9 #include "ui/aura/client/focus_client.h"
10 #include "ui/aura/root_window.h"
11 #include "ui/aura/window.h" 10 #include "ui/aura/window.h"
12 #include "ui/aura/window_delegate.h" 11 #include "ui/aura/window_delegate.h"
12 #include "ui/aura/window_event_dispatcher.h"
13 #include "ui/events/event_target.h" 13 #include "ui/events/event_target.h"
14 14
15 namespace aura { 15 namespace aura {
16 16
17 WindowTargeter::WindowTargeter() {} 17 WindowTargeter::WindowTargeter() {}
18 WindowTargeter::~WindowTargeter() {} 18 WindowTargeter::~WindowTargeter() {}
19 19
20 bool WindowTargeter::WindowCanAcceptEvent(aura::Window* window, 20 bool WindowTargeter::WindowCanAcceptEvent(aura::Window* window,
21 const ui::LocatedEvent& event) const { 21 const ui::LocatedEvent& event) const {
22 if (!window->IsVisible()) 22 if (!window->IsVisible())
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after
120 120
121 // If the initial touch is outside the root window, target the root. 121 // If the initial touch is outside the root window, target the root.
122 if (!root_window->bounds().Contains(event.location())) 122 if (!root_window->bounds().Contains(event.location()))
123 return root_window; 123 return root_window;
124 } 124 }
125 125
126 return NULL; 126 return NULL;
127 } 127 }
128 128
129 } // namespace aura 129 } // namespace aura
OLDNEW
« no previous file with comments | « ui/aura/window_event_dispatcher_unittest.cc ('k') | ui/aura/window_tree_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698