| 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 <shobjidl.h> | 7 #include <shobjidl.h> |
| 8 | 8 |
| 9 #include "base/macros.h" | 9 #include "base/macros.h" |
| 10 #include "base/win/scoped_gdi_object.h" | 10 #include "base/win/scoped_gdi_object.h" |
| 11 #include "base/win/windows_version.h" | 11 #include "base/win/windows_version.h" |
| 12 #include "ui/aura/window.h" | 12 #include "ui/aura/window.h" |
| 13 #include "ui/display/win/screen_win.h" | 13 #include "ui/display/win/screen_win.h" |
| 14 #include "ui/gfx/screen.h" | |
| 15 #include "ui/views/widget/desktop_aura/desktop_window_tree_host_win.h" | 14 #include "ui/views/widget/desktop_aura/desktop_window_tree_host_win.h" |
| 16 #include "ui/views/win/hwnd_util.h" | 15 #include "ui/views/win/hwnd_util.h" |
| 17 | 16 |
| 18 namespace { | 17 namespace { |
| 19 | 18 |
| 20 // BaseWindowFinder ----------------------------------------------------------- | 19 // BaseWindowFinder ----------------------------------------------------------- |
| 21 | 20 |
| 22 // Base class used to locate a window. This is intended to be used with the | 21 // Base class used to locate a window. This is intended to be used with the |
| 23 // various win32 functions that iterate over windows. | 22 // various win32 functions that iterate over windows. |
| 24 // | 23 // |
| (...skipping 207 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 232 } | 231 } |
| 233 | 232 |
| 234 } // namespace | 233 } // namespace |
| 235 | 234 |
| 236 gfx::NativeWindow WindowFinder::GetLocalProcessWindowAtPoint( | 235 gfx::NativeWindow WindowFinder::GetLocalProcessWindowAtPoint( |
| 237 const gfx::Point& screen_point, | 236 const gfx::Point& screen_point, |
| 238 const std::set<gfx::NativeWindow>& ignore) { | 237 const std::set<gfx::NativeWindow>& ignore) { |
| 239 return LocalProcessWindowFinder::GetProcessWindowAtPoint( | 238 return LocalProcessWindowFinder::GetProcessWindowAtPoint( |
| 240 screen_point, RemapIgnoreSet(ignore)); | 239 screen_point, RemapIgnoreSet(ignore)); |
| 241 } | 240 } |
| OLD | NEW |