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 WindowListProvider; | 13 class WindowListProvider; |
13 | 14 |
14 class WindowOverviewModeDelegate { | 15 class WindowOverviewModeDelegate { |
15 public: | 16 public: |
16 virtual ~WindowOverviewModeDelegate() {} | 17 virtual ~WindowOverviewModeDelegate() {} |
17 | 18 |
18 virtual void OnSelectWindow(aura::Window* window) = 0; | 19 virtual void OnSelectWindow(aura::Window* window) = 0; |
19 | 20 |
20 // Gets into split-view mode with |left| on the left-side of the screen, and | 21 // Gets into split-view mode with |left| on the left-side of the screen, and |
21 // |right| on the right-side. If |left| or |right| is NULL, then the delegate | 22 // |right| on the right-side. If |left| or |right| is NULL, then the delegate |
22 // selects the best option in its place. | 23 // selects the best option in its place. |
23 virtual void OnSplitViewMode(aura::Window* left, | 24 virtual void OnSplitViewMode(aura::Window* left, |
24 aura::Window* right) = 0; | 25 aura::Window* right) = 0; |
25 }; | 26 }; |
26 | 27 |
27 class WindowOverviewMode { | 28 class WindowOverviewMode { |
28 public: | 29 public: |
29 virtual ~WindowOverviewMode() {} | 30 virtual ~WindowOverviewMode() {} |
30 | 31 |
31 static scoped_ptr<WindowOverviewMode> Create( | 32 static scoped_ptr<WindowOverviewMode> Create( |
32 aura::Window* container, | 33 aura::Window* container, |
33 const WindowListProvider* window_list_provider, | 34 const WindowListProvider* window_list_provider, |
| 35 SplitViewController* split_view_controller, |
34 WindowOverviewModeDelegate* delegate); | 36 WindowOverviewModeDelegate* delegate); |
35 }; | 37 }; |
36 | 38 |
37 } // namespace athena | 39 } // namespace athena |
38 | 40 |
39 #endif // ATHENA_WM_WINDOW_OVERVIEW_MODE_H_ | 41 #endif // ATHENA_WM_WINDOW_OVERVIEW_MODE_H_ |
OLD | NEW |