Chromium Code Reviews| 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/athena_export.h" | 8 #include "athena/athena_export.h" |
| 9 #include "athena/input/public/accelerator_manager.h" | 9 #include "athena/input/public/accelerator_manager.h" |
| 10 #include "athena/wm/public/window_manager.h" | 10 #include "athena/wm/public/window_manager.h" |
| (...skipping 24 matching lines...) Expand all Loading... | |
| 35 public aura::WindowObserver, | 35 public aura::WindowObserver, |
| 36 public AcceleratorHandler, | 36 public AcceleratorHandler, |
| 37 public TitleDragControllerDelegate { | 37 public TitleDragControllerDelegate { |
| 38 public: | 38 public: |
| 39 WindowManagerImpl(); | 39 WindowManagerImpl(); |
| 40 virtual ~WindowManagerImpl(); | 40 virtual ~WindowManagerImpl(); |
| 41 | 41 |
| 42 void ToggleSplitView(); | 42 void ToggleSplitView(); |
| 43 | 43 |
| 44 // WindowManager: | 44 // WindowManager: |
| 45 virtual void ToggleOverview() override; | 45 virtual void ActivateOverview(bool activate) OVERRIDE; |
|
Jun Mukai
2014/10/06 21:23:49
Please keep the lowercase override. That's the ne
Greg Levin
2014/10/08 18:21:14
Done (!&@#$ merge tool)
| |
| 46 virtual bool IsOverviewModeActive() override; | 46 virtual bool IsOverviewModeActive() OVERRIDE; |
| 47 | 47 |
| 48 private: | 48 private: |
| 49 friend class test::WindowManagerImplTestApi; | 49 friend class test::WindowManagerImplTestApi; |
| 50 friend class AthenaContainerLayoutManager; | 50 friend class AthenaContainerLayoutManager; |
| 51 | 51 |
| 52 enum Command { | 52 enum Command { |
| 53 CMD_EXIT_OVERVIEW, | |
| 53 CMD_TOGGLE_OVERVIEW, | 54 CMD_TOGGLE_OVERVIEW, |
| 54 CMD_TOGGLE_SPLIT_VIEW, | 55 CMD_TOGGLE_SPLIT_VIEW, |
| 55 }; | 56 }; |
| 56 | 57 |
| 57 // Sets whether overview mode is active. | 58 // Sets whether overview mode is active. |
| 58 void SetInOverview(bool active); | 59 void SetInOverview(bool active); |
| 59 | 60 |
| 60 void InstallAccelerators(); | 61 void InstallAccelerators(); |
| 61 | 62 |
| 62 // WindowManager: | 63 // WindowManager: |
| 63 virtual void AddObserver(WindowManagerObserver* observer) override; | 64 virtual void AddObserver(WindowManagerObserver* observer) OVERRIDE; |
| 64 virtual void RemoveObserver(WindowManagerObserver* observer) override; | 65 virtual void RemoveObserver(WindowManagerObserver* observer) OVERRIDE; |
| 65 virtual void ToggleSplitViewForTest() override; | 66 virtual void ToggleSplitViewForTest() OVERRIDE; |
| 66 virtual WindowListProvider* GetWindowListProvider() override; | 67 virtual WindowListProvider* GetWindowListProvider() OVERRIDE; |
| 67 | 68 |
| 68 // WindowOverviewModeDelegate: | 69 // WindowOverviewModeDelegate: |
| 69 virtual void OnSelectWindow(aura::Window* window) override; | 70 virtual void OnSelectWindow(aura::Window* window) OVERRIDE; |
| 70 virtual void OnSelectSplitViewWindow(aura::Window* left, | 71 virtual void OnSelectSplitViewWindow(aura::Window* left, |
| 71 aura::Window* right, | 72 aura::Window* right, |
| 72 aura::Window* to_activate) override; | 73 aura::Window* to_activate) OVERRIDE; |
| 73 | 74 |
| 74 // aura::WindowObserver: | 75 // aura::WindowObserver: |
| 75 virtual void OnWindowDestroying(aura::Window* window) override; | 76 virtual void OnWindowDestroying(aura::Window* window) OVERRIDE; |
| 76 | 77 |
| 77 // AcceleratorHandler: | 78 // AcceleratorHandler: |
| 78 virtual bool IsCommandEnabled(int command_id) const override; | 79 virtual bool IsCommandEnabled(int command_id) const OVERRIDE; |
| 79 virtual bool OnAcceleratorFired(int command_id, | 80 virtual bool OnAcceleratorFired(int command_id, |
| 80 const ui::Accelerator& accelerator) override; | 81 const ui::Accelerator& accelerator) OVERRIDE; |
| 81 | 82 |
| 82 // TitleDragControllerDelegate: | 83 // TitleDragControllerDelegate: |
| 83 virtual aura::Window* GetWindowBehind(aura::Window* window) override; | 84 virtual aura::Window* GetWindowBehind(aura::Window* window) OVERRIDE; |
| 84 virtual void OnTitleDragStarted(aura::Window* window) override; | 85 virtual void OnTitleDragStarted(aura::Window* window) OVERRIDE; |
| 85 virtual void OnTitleDragCompleted(aura::Window* window) override; | 86 virtual void OnTitleDragCompleted(aura::Window* window) OVERRIDE; |
| 86 virtual void OnTitleDragCanceled(aura::Window* window) override; | 87 virtual void OnTitleDragCanceled(aura::Window* window) OVERRIDE; |
| 87 | 88 |
| 88 scoped_ptr<aura::Window> container_; | 89 scoped_ptr<aura::Window> container_; |
| 89 scoped_ptr<WindowListProvider> window_list_provider_; | 90 scoped_ptr<WindowListProvider> window_list_provider_; |
| 90 scoped_ptr<WindowOverviewMode> overview_; | 91 scoped_ptr<WindowOverviewMode> overview_; |
| 91 scoped_ptr<BezelController> bezel_controller_; | 92 scoped_ptr<BezelController> bezel_controller_; |
| 92 scoped_ptr<SplitViewController> split_view_controller_; | 93 scoped_ptr<SplitViewController> split_view_controller_; |
| 93 scoped_ptr<wm::WMState> wm_state_; | 94 scoped_ptr<wm::WMState> wm_state_; |
| 94 scoped_ptr<TitleDragController> title_drag_controller_; | 95 scoped_ptr<TitleDragController> title_drag_controller_; |
| 95 scoped_ptr<wm::ShadowController> shadow_controller_; | 96 scoped_ptr<wm::ShadowController> shadow_controller_; |
| 96 ObserverList<WindowManagerObserver> observers_; | 97 ObserverList<WindowManagerObserver> observers_; |
| 97 | 98 |
| 98 DISALLOW_COPY_AND_ASSIGN(WindowManagerImpl); | 99 DISALLOW_COPY_AND_ASSIGN(WindowManagerImpl); |
| 99 }; | 100 }; |
| 100 | 101 |
| 101 } // namespace athena | 102 } // namespace athena |
| 102 | 103 |
| 103 #endif // ATHENA_WM_WINDOW_MANAGER_IMPL_H_ | 104 #endif // ATHENA_WM_WINDOW_MANAGER_IMPL_H_ |
| OLD | NEW |