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 #ifndef CHROME_BROWSER_UI_VIEWS_TABS_WINDOW_FINDER_H_ | 5 #ifndef CHROME_BROWSER_UI_VIEWS_TABS_WINDOW_FINDER_H_ |
6 #define CHROME_BROWSER_UI_VIEWS_TABS_WINDOW_FINDER_H_ | 6 #define CHROME_BROWSER_UI_VIEWS_TABS_WINDOW_FINDER_H_ |
7 | 7 |
8 #include <set> | 8 #include <set> |
9 | 9 |
10 #include "chrome/browser/ui/host_desktop.h" | 10 #include "chrome/browser/ui/host_desktop.h" |
11 | 11 |
| 12 namespace aura { |
| 13 class Window; |
| 14 } |
| 15 |
12 namespace gfx { | 16 namespace gfx { |
13 class Point; | 17 class Point; |
14 } | 18 } |
15 | 19 |
16 // Returns the Window at the specified point, ignoring the windows in |ignore|. | 20 // Returns the Window at the specified point, ignoring the windows in |ignore|. |
17 // On Android, |source| is required to access root window. All other platforms | |
18 // do not use the parameter. | |
19 // TODO(bshe): Remove |source| once we have a way to get root window from | |
20 // |screen_point| on Android. See crbug.com/549735 | |
21 gfx::NativeWindow GetLocalProcessWindowAtPoint( | 21 gfx::NativeWindow GetLocalProcessWindowAtPoint( |
22 chrome::HostDesktopType host_desktop_type, | 22 chrome::HostDesktopType host_desktop_type, |
23 const gfx::Point& screen_point, | 23 const gfx::Point& screen_point, |
24 const std::set<gfx::NativeWindow>& ignore, | 24 const std::set<gfx::NativeWindow>& ignore); |
25 gfx::NativeWindow source); | |
26 | 25 |
27 #endif // CHROME_BROWSER_UI_VIEWS_TABS_WINDOW_FINDER_H_ | 26 #endif // CHROME_BROWSER_UI_VIEWS_TABS_WINDOW_FINDER_H_ |
OLD | NEW |