OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 "chrome/browser/ui/views/tabs/window_finder.h" | 5 #include "chrome/browser/ui/views/tabs/window_finder.h" |
6 | 6 |
7 #include "ash/shell_window_ids.h" | 7 #include "ash/shell_window_ids.h" |
8 #include "ash/wm/coordinate_conversion.h" | 8 #include "ash/wm/coordinate_conversion.h" |
9 #include "ui/aura/root_window.h" | |
10 #include "ui/aura/window.h" | 9 #include "ui/aura/window.h" |
| 10 #include "ui/aura/window_event_dispatcher.h" |
11 | 11 |
12 namespace { | 12 namespace { |
13 | 13 |
14 aura::Window* GetLocalProcessWindowAtPointImpl( | 14 aura::Window* GetLocalProcessWindowAtPointImpl( |
15 const gfx::Point& screen_point, | 15 const gfx::Point& screen_point, |
16 const std::set<gfx::NativeView>& ignore, | 16 const std::set<gfx::NativeView>& ignore, |
17 aura::Window* window) { | 17 aura::Window* window) { |
18 if (ignore.find(window) != ignore.end()) | 18 if (ignore.find(window) != ignore.end()) |
19 return NULL; | 19 return NULL; |
20 | 20 |
(...skipping 18 matching lines...) Expand all Loading... |
39 } | 39 } |
40 | 40 |
41 } // namespace | 41 } // namespace |
42 | 42 |
43 aura::Window* GetLocalProcessWindowAtPointAsh( | 43 aura::Window* GetLocalProcessWindowAtPointAsh( |
44 const gfx::Point& screen_point, | 44 const gfx::Point& screen_point, |
45 const std::set<aura::Window*>& ignore) { | 45 const std::set<aura::Window*>& ignore) { |
46 return GetLocalProcessWindowAtPointImpl( | 46 return GetLocalProcessWindowAtPointImpl( |
47 screen_point, ignore, ::ash::wm::GetRootWindowAt(screen_point)); | 47 screen_point, ignore, ::ash::wm::GetRootWindowAt(screen_point)); |
48 } | 48 } |
OLD | NEW |