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_MANAGER_IMPL_H_ | 5 #ifndef ATHENA_WM_WINDOW_MANAGER_IMPL_H_ |
6 #define ATHENA_WM_WINDOW_MANAGER_IMPL_H_ | 6 #define ATHENA_WM_WINDOW_MANAGER_IMPL_H_ |
7 | 7 |
8 #include "athena/input/public/accelerator_manager.h" | 8 #include "athena/input/public/accelerator_manager.h" |
9 #include "athena/wm/public/window_manager.h" | 9 #include "athena/wm/public/window_manager.h" |
10 #include "athena/wm/title_drag_controller.h" | 10 #include "athena/wm/title_drag_controller.h" |
(...skipping 26 matching lines...) Expand all Loading... |
37 // WindowManager: | 37 // WindowManager: |
38 virtual void ToggleOverview() OVERRIDE; | 38 virtual void ToggleOverview() OVERRIDE; |
39 virtual bool IsOverviewModeActive() OVERRIDE; | 39 virtual bool IsOverviewModeActive() OVERRIDE; |
40 | 40 |
41 private: | 41 private: |
42 friend class WindowManagerImplTestApi; | 42 friend class WindowManagerImplTestApi; |
43 friend class AthenaContainerLayoutManager; | 43 friend class AthenaContainerLayoutManager; |
44 | 44 |
45 enum Command { | 45 enum Command { |
46 CMD_TOGGLE_OVERVIEW, | 46 CMD_TOGGLE_OVERVIEW, |
| 47 CMD_TOGGLE_SPLIT_VIEW, |
47 }; | 48 }; |
48 | 49 |
49 // Sets whether overview mode is active. | 50 // Sets whether overview mode is active. |
50 void SetInOverview(bool active); | 51 void SetInOverview(bool active); |
51 | 52 |
| 53 void ToggleSplitview(); |
| 54 |
52 void InstallAccelerators(); | 55 void InstallAccelerators(); |
53 | 56 |
54 // WindowManager: | 57 // WindowManager: |
55 virtual void AddObserver(WindowManagerObserver* observer) OVERRIDE; | 58 virtual void AddObserver(WindowManagerObserver* observer) OVERRIDE; |
56 virtual void RemoveObserver(WindowManagerObserver* observer) OVERRIDE; | 59 virtual void RemoveObserver(WindowManagerObserver* observer) OVERRIDE; |
57 | 60 |
58 // WindowOverviewModeDelegate: | 61 // WindowOverviewModeDelegate: |
59 virtual void OnSelectWindow(aura::Window* window) OVERRIDE; | 62 virtual void OnSelectWindow(aura::Window* window) OVERRIDE; |
60 virtual void OnSplitViewMode(aura::Window* left, | 63 virtual void OnSplitViewMode(aura::Window* left, |
61 aura::Window* right) OVERRIDE; | 64 aura::Window* right) OVERRIDE; |
(...skipping 22 matching lines...) Expand all Loading... |
84 scoped_ptr<TitleDragController> title_drag_controller_; | 87 scoped_ptr<TitleDragController> title_drag_controller_; |
85 scoped_ptr<wm::ShadowController> shadow_controller_; | 88 scoped_ptr<wm::ShadowController> shadow_controller_; |
86 ObserverList<WindowManagerObserver> observers_; | 89 ObserverList<WindowManagerObserver> observers_; |
87 | 90 |
88 DISALLOW_COPY_AND_ASSIGN(WindowManagerImpl); | 91 DISALLOW_COPY_AND_ASSIGN(WindowManagerImpl); |
89 }; | 92 }; |
90 | 93 |
91 } // namespace athena | 94 } // namespace athena |
92 | 95 |
93 #endif // ATHENA_WM_WINDOW_MANAGER_IMPL_H_ | 96 #endif // ATHENA_WM_WINDOW_MANAGER_IMPL_H_ |
OLD | NEW |