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 "ui/gfx/native_widget_types.h" | 10 #include "ui/gfx/native_widget_types.h" |
(...skipping 15 matching lines...) Expand all Loading... |
26 | 26 |
27 // Finds the topmost visible chrome window at |screen_point|. This should | 27 // Finds the topmost visible chrome window at |screen_point|. This should |
28 // return nullptr if |screen_point| is in another program's window which | 28 // return nullptr if |screen_point| is in another program's window which |
29 // occludes the topmost chrome window. Ignores the windows in |ignore|, which | 29 // occludes the topmost chrome window. Ignores the windows in |ignore|, which |
30 // contain windows such as the tab being dragged right now. | 30 // contain windows such as the tab being dragged right now. |
31 virtual gfx::NativeWindow GetLocalProcessWindowAtPoint( | 31 virtual gfx::NativeWindow GetLocalProcessWindowAtPoint( |
32 const gfx::Point& screen_point, | 32 const gfx::Point& screen_point, |
33 const std::set<gfx::NativeWindow>& ignore); | 33 const std::set<gfx::NativeWindow>& ignore); |
34 | 34 |
35 private: | 35 private: |
| 36 gfx::NativeWindow GetLocalProcessWindowAtPointImpl( |
| 37 const gfx::Point& screen_point, |
| 38 const std::set<gfx::NativeWindow>& ignore); |
| 39 |
36 DISALLOW_COPY_AND_ASSIGN(WindowFinder); | 40 DISALLOW_COPY_AND_ASSIGN(WindowFinder); |
37 }; | 41 }; |
38 | 42 |
39 #endif // CHROME_BROWSER_UI_VIEWS_TABS_WINDOW_FINDER_H_ | 43 #endif // CHROME_BROWSER_UI_VIEWS_TABS_WINDOW_FINDER_H_ |
OLD | NEW |