| 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 "base/win/scoped_gdi_object.h" | 7 #include "base/win/scoped_gdi_object.h" |
| 8 #include "base/win/windows_version.h" | 8 #include "base/win/windows_version.h" |
| 9 #include "ui/aura/window.h" | 9 #include "ui/aura/window.h" |
| 10 #include "ui/gfx/screen.h" | 10 #include "ui/gfx/screen.h" |
| (...skipping 244 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 255 hwnd_set.insert(w); | 255 hwnd_set.insert(w); |
| 256 } | 256 } |
| 257 return hwnd_set; | 257 return hwnd_set; |
| 258 } | 258 } |
| 259 | 259 |
| 260 } // namespace | 260 } // namespace |
| 261 | 261 |
| 262 gfx::NativeWindow GetLocalProcessWindowAtPoint( | 262 gfx::NativeWindow GetLocalProcessWindowAtPoint( |
| 263 chrome::HostDesktopType host_desktop_type, | 263 chrome::HostDesktopType host_desktop_type, |
| 264 const gfx::Point& screen_point, | 264 const gfx::Point& screen_point, |
| 265 const std::set<gfx::NativeWindow>& ignore) { | 265 const std::set<gfx::NativeWindow>& ignore, |
| 266 gfx::NativeWindow source) { |
| 266 #if defined(USE_ASH) | 267 #if defined(USE_ASH) |
| 267 if (host_desktop_type == chrome::HOST_DESKTOP_TYPE_ASH) | 268 if (host_desktop_type == chrome::HOST_DESKTOP_TYPE_ASH) |
| 268 return GetLocalProcessWindowAtPointAsh(screen_point, ignore); | 269 return GetLocalProcessWindowAtPointAsh(screen_point, ignore); |
| 269 #endif | 270 #endif |
| 270 return LocalProcessWindowFinder::GetProcessWindowAtPoint( | 271 return LocalProcessWindowFinder::GetProcessWindowAtPoint( |
| 271 screen_point, RemapIgnoreSet(ignore)); | 272 screen_point, RemapIgnoreSet(ignore)); |
| 272 } | 273 } |
| OLD | NEW |