| 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/public/cpp/shell_window_ids.h" | 7 #include "ash/public/cpp/shell_window_ids.h" |
| 8 #include "ash/wm/root_window_finder.h" | 8 #include "ash/wm/root_window_finder.h" |
| 9 #include "ash/wm_window.h" | |
| 10 #include "ui/aura/client/screen_position_client.h" | 9 #include "ui/aura/client/screen_position_client.h" |
| 11 #include "ui/aura/window.h" | 10 #include "ui/aura/window.h" |
| 12 #include "ui/aura/window_event_dispatcher.h" | 11 #include "ui/aura/window_event_dispatcher.h" |
| 13 #include "ui/wm/core/window_util.h" | 12 #include "ui/wm/core/window_util.h" |
| 14 | 13 |
| 15 namespace { | 14 namespace { |
| 16 | 15 |
| 17 gfx::NativeWindow GetLocalProcessWindowAtPointImpl( | 16 gfx::NativeWindow GetLocalProcessWindowAtPointImpl( |
| 18 const gfx::Point& screen_point, | 17 const gfx::Point& screen_point, |
| 19 const std::set<gfx::NativeWindow>& ignore, | 18 const std::set<gfx::NativeWindow>& ignore, |
| (...skipping 30 matching lines...) Expand all Loading... |
| 50 } | 49 } |
| 51 return NULL; | 50 return NULL; |
| 52 } | 51 } |
| 53 | 52 |
| 54 } // namespace | 53 } // namespace |
| 55 | 54 |
| 56 gfx::NativeWindow GetLocalProcessWindowAtPointAsh( | 55 gfx::NativeWindow GetLocalProcessWindowAtPointAsh( |
| 57 const gfx::Point& screen_point, | 56 const gfx::Point& screen_point, |
| 58 const std::set<gfx::NativeWindow>& ignore) { | 57 const std::set<gfx::NativeWindow>& ignore) { |
| 59 return GetLocalProcessWindowAtPointImpl( | 58 return GetLocalProcessWindowAtPointImpl( |
| 60 screen_point, ignore, | 59 screen_point, ignore, ash::wm::GetRootWindowAt(screen_point)); |
| 61 ash::WmWindow::GetAuraWindow(ash::wm::GetRootWindowAt(screen_point))); | |
| 62 } | 60 } |
| OLD | NEW |