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" |
(...skipping 224 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
235 hwnd_set.insert(w); | 235 hwnd_set.insert(w); |
236 } | 236 } |
237 return hwnd_set; | 237 return hwnd_set; |
238 } | 238 } |
239 | 239 |
240 } // namespace | 240 } // namespace |
241 | 241 |
242 gfx::NativeWindow GetLocalProcessWindowAtPoint( | 242 gfx::NativeWindow GetLocalProcessWindowAtPoint( |
243 chrome::HostDesktopType host_desktop_type, | 243 chrome::HostDesktopType host_desktop_type, |
244 const gfx::Point& screen_point, | 244 const gfx::Point& screen_point, |
245 const std::set<gfx::NativeWindow>& ignore, | 245 const std::set<gfx::NativeWindow>& ignore) { |
246 gfx::NativeWindow source) { | |
247 #if defined(USE_ASH) | 246 #if defined(USE_ASH) |
248 if (host_desktop_type == chrome::HOST_DESKTOP_TYPE_ASH) | 247 if (host_desktop_type == chrome::HOST_DESKTOP_TYPE_ASH) |
249 return GetLocalProcessWindowAtPointAsh(screen_point, ignore); | 248 return GetLocalProcessWindowAtPointAsh(screen_point, ignore); |
250 #endif | 249 #endif |
251 return LocalProcessWindowFinder::GetProcessWindowAtPoint( | 250 return LocalProcessWindowFinder::GetProcessWindowAtPoint( |
252 screen_point, RemapIgnoreSet(ignore)); | 251 screen_point, RemapIgnoreSet(ignore)); |
253 } | 252 } |
OLD | NEW |