OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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_MUS_H_ | 5 #ifndef CHROME_BROWSER_UI_VIEWS_TABS_WINDOW_FINDER_MUS_H_ |
6 #define CHROME_BROWSER_UI_VIEWS_TABS_WINDOW_FINDER_MUS_H_ | 6 #define CHROME_BROWSER_UI_VIEWS_TABS_WINDOW_FINDER_MUS_H_ |
7 | 7 |
8 #include "chrome/browser/ui/views/tabs/window_finder.h" | 8 #include "chrome/browser/ui/views/tabs/window_finder.h" |
9 | 9 |
10 class WindowFinderMus : public WindowFinder { | 10 // Used to locate the aura::Window under the specified point when in mus. |
11 public: | 11 // If running in mus true is returned and |mus_result| is set to the |
12 WindowFinderMus(); | 12 // aura::Window associated with the ui::Window under the specified point. |
13 ~WindowFinderMus() override; | 13 // It's possible for true to be returned and mus_result to be set to null. |
14 | 14 bool GetLocalProcessWindowAtPointMus( |
15 // Overridden from WindowFinder: | 15 const gfx::Point& screen_point, |
16 gfx::NativeWindow GetLocalProcessWindowAtPoint( | 16 const std::set<gfx::NativeWindow>& ignore, |
17 const gfx::Point& screen_point, | 17 gfx::NativeWindow* mus_result); |
18 const std::set<gfx::NativeWindow>& ignore) override; | |
19 | |
20 private: | |
21 DISALLOW_COPY_AND_ASSIGN(WindowFinderMus); | |
22 }; | |
23 | 18 |
24 #endif // CHROME_BROWSER_UI_VIEWS_TABS_WINDOW_FINDER_MUS_H_ | 19 #endif // CHROME_BROWSER_UI_VIEWS_TABS_WINDOW_FINDER_MUS_H_ |
OLD | NEW |