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 ATHENA_WM_WINDOW_OVERVIEW_MODE_H_ | 5 #ifndef ATHENA_WM_WINDOW_OVERVIEW_MODE_H_ |
6 #define ATHENA_WM_WINDOW_OVERVIEW_MODE_H_ | 6 #define ATHENA_WM_WINDOW_OVERVIEW_MODE_H_ |
7 | 7 |
8 #include "base/memory/scoped_ptr.h" | 8 #include "base/memory/scoped_ptr.h" |
9 #include "ui/aura/window.h" | 9 #include "ui/aura/window.h" |
10 | 10 |
11 namespace athena { | 11 namespace athena { |
12 class SplitViewController; | 12 class SplitViewController; |
13 class WindowListProvider; | 13 class WindowListProvider; |
14 | 14 |
15 class WindowOverviewModeDelegate { | 15 class WindowOverviewModeDelegate { |
16 public: | 16 public: |
17 virtual ~WindowOverviewModeDelegate() {} | 17 virtual ~WindowOverviewModeDelegate() {} |
18 | 18 |
19 // Called to activate |window|, set its bounds and set its visibility when | 19 // Called to activate |window|, set its bounds and set its visibility when |
20 // |window| is selected in overview mode. |window| is NULL if there are no | 20 // |window| is selected in overview mode. |window| is nullptr if there are no |
21 // windows in overview mode. | 21 // windows in overview mode. |
22 virtual void OnSelectWindow(aura::Window* window) = 0; | 22 virtual void OnSelectWindow(aura::Window* window) = 0; |
23 | 23 |
24 // Gets into split-view mode with |left| on the left-side of the screen, and | 24 // Gets into split-view mode with |left| on the left-side of the screen, and |
25 // |right| on the right-side. If |left| or |right| is NULL, then the delegate | 25 // |right| on the right-side. If |left| or |right| is nullptr, then the |
| 26 // delegate |
26 // selects the best option in its place. | 27 // selects the best option in its place. |
27 virtual void OnSelectSplitViewWindow(aura::Window* left, | 28 virtual void OnSelectSplitViewWindow(aura::Window* left, |
28 aura::Window* right, | 29 aura::Window* right, |
29 aura::Window* to_activate) = 0; | 30 aura::Window* to_activate) = 0; |
30 }; | 31 }; |
31 | 32 |
32 class WindowOverviewMode { | 33 class WindowOverviewMode { |
33 public: | 34 public: |
34 virtual ~WindowOverviewMode() {} | 35 virtual ~WindowOverviewMode() {} |
35 | 36 |
36 static scoped_ptr<WindowOverviewMode> Create( | 37 static scoped_ptr<WindowOverviewMode> Create( |
37 aura::Window* container, | 38 aura::Window* container, |
38 WindowListProvider* window_list_provider, | 39 WindowListProvider* window_list_provider, |
39 SplitViewController* split_view_controller, | 40 SplitViewController* split_view_controller, |
40 WindowOverviewModeDelegate* delegate); | 41 WindowOverviewModeDelegate* delegate); |
41 }; | 42 }; |
42 | 43 |
43 } // namespace athena | 44 } // namespace athena |
44 | 45 |
45 #endif // ATHENA_WM_WINDOW_OVERVIEW_MODE_H_ | 46 #endif // ATHENA_WM_WINDOW_OVERVIEW_MODE_H_ |
OLD | NEW |