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 16 matching lines...) Expand all Loading... | |
27 | 27 |
28 class WindowManagerImpl : public WindowManager, | 28 class WindowManagerImpl : public WindowManager, |
29 public WindowOverviewModeDelegate, | 29 public WindowOverviewModeDelegate, |
30 public aura::WindowObserver, | 30 public aura::WindowObserver, |
31 public AcceleratorHandler, | 31 public AcceleratorHandler, |
32 public TitleDragControllerDelegate { | 32 public TitleDragControllerDelegate { |
33 public: | 33 public: |
34 WindowManagerImpl(); | 34 WindowManagerImpl(); |
35 virtual ~WindowManagerImpl(); | 35 virtual ~WindowManagerImpl(); |
36 | 36 |
37 void Layout(); | |
38 | |
39 // WindowManager: | 37 // WindowManager: |
40 virtual void ToggleOverview() OVERRIDE; | 38 virtual void ToggleOverview() OVERRIDE; |
41 | |
42 virtual bool IsOverviewModeActive() OVERRIDE; | 39 virtual bool IsOverviewModeActive() OVERRIDE; |
43 | 40 |
44 private: | 41 private: |
45 friend class WindowManagerImplTestApi; | 42 friend class WindowManagerImplTestApi; |
43 friend class AthenaContainerLayoutManager; | |
sadrul
2014/08/18 05:30:05
An alternative to this is to expose some of the in
| |
46 | 44 |
47 enum Command { | 45 enum Command { |
48 CMD_TOGGLE_OVERVIEW, | 46 CMD_TOGGLE_OVERVIEW, |
49 }; | 47 }; |
50 | 48 |
51 // Sets whether overview mode is active. | 49 // Sets whether overview mode is active. |
52 void SetInOverview(bool active); | 50 void SetInOverview(bool active); |
53 | 51 |
54 void InstallAccelerators(); | 52 void InstallAccelerators(); |
55 | 53 |
(...skipping 30 matching lines...) Expand all Loading... | |
86 scoped_ptr<TitleDragController> title_drag_controller_; | 84 scoped_ptr<TitleDragController> title_drag_controller_; |
87 scoped_ptr<wm::ShadowController> shadow_controller_; | 85 scoped_ptr<wm::ShadowController> shadow_controller_; |
88 ObserverList<WindowManagerObserver> observers_; | 86 ObserverList<WindowManagerObserver> observers_; |
89 | 87 |
90 DISALLOW_COPY_AND_ASSIGN(WindowManagerImpl); | 88 DISALLOW_COPY_AND_ASSIGN(WindowManagerImpl); |
91 }; | 89 }; |
92 | 90 |
93 } // namespace athena | 91 } // namespace athena |
94 | 92 |
95 #endif // ATHENA_WM_WINDOW_MANAGER_IMPL_H_ | 93 #endif // ATHENA_WM_WINDOW_MANAGER_IMPL_H_ |
OLD | NEW |