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 ASH_WM_MAXIMIZE_MODE_MAXIMIZE_MODE_CONTROLLER_H_ | 5 #ifndef ASH_WM_MAXIMIZE_MODE_MAXIMIZE_MODE_CONTROLLER_H_ |
6 #define ASH_WM_MAXIMIZE_MODE_MAXIMIZE_MODE_CONTROLLER_H_ | 6 #define ASH_WM_MAXIMIZE_MODE_MAXIMIZE_MODE_CONTROLLER_H_ |
7 | 7 |
8 #include "ash/accelerometer/accelerometer_observer.h" | 8 #include "ash/accelerometer/accelerometer_observer.h" |
9 #include "ash/ash_export.h" | 9 #include "ash/ash_export.h" |
10 #include "ash/display/display_controller.h" | 10 #include "ash/display/display_controller.h" |
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
102 void AddWindow(aura::Window* window); | 102 void AddWindow(aura::Window* window); |
103 | 103 |
104 // TODO(jonross): move this into the destructor. Currently separated as | 104 // TODO(jonross): move this into the destructor. Currently separated as |
105 // ShellOberver notifies of maximize mode ending, and the observers end up | 105 // ShellOberver notifies of maximize mode ending, and the observers end up |
106 // attempting to access MaximizeModeController via the Shell. If done in | 106 // attempting to access MaximizeModeController via the Shell. If done in |
107 // destructor the controller is null, and the observers segfault. | 107 // destructor the controller is null, and the observers segfault. |
108 // Shuts down down the MaximizeModeWindowManager and notifies all observers. | 108 // Shuts down down the MaximizeModeWindowManager and notifies all observers. |
109 void Shutdown(); | 109 void Shutdown(); |
110 | 110 |
111 // AccelerometerObserver: | 111 // AccelerometerObserver: |
112 virtual void OnAccelerometerUpdated(const gfx::Vector3dF& base, | 112 virtual void OnAccelerometerUpdated( |
113 const gfx::Vector3dF& lid) OVERRIDE; | 113 const ui::AccelerometerUpdate& update) OVERRIDE; |
114 | 114 |
115 // ShellObserver: | 115 // ShellObserver: |
116 virtual void OnAppTerminating() OVERRIDE; | 116 virtual void OnAppTerminating() OVERRIDE; |
117 virtual void OnMaximizeModeStarted() OVERRIDE; | 117 virtual void OnMaximizeModeStarted() OVERRIDE; |
118 virtual void OnMaximizeModeEnded() OVERRIDE; | 118 virtual void OnMaximizeModeEnded() OVERRIDE; |
119 | 119 |
120 // DisplayController::Observer: | 120 // DisplayController::Observer: |
121 virtual void OnDisplayConfigurationChanged() OVERRIDE; | 121 virtual void OnDisplayConfigurationChanged() OVERRIDE; |
122 | 122 |
123 #if defined(OS_CHROMEOS) | 123 #if defined(OS_CHROMEOS) |
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
220 | 220 |
221 // Tracks when the lid is closed. Used to prevent entering maximize mode. | 221 // Tracks when the lid is closed. Used to prevent entering maximize mode. |
222 bool lid_is_closed_; | 222 bool lid_is_closed_; |
223 | 223 |
224 DISALLOW_COPY_AND_ASSIGN(MaximizeModeController); | 224 DISALLOW_COPY_AND_ASSIGN(MaximizeModeController); |
225 }; | 225 }; |
226 | 226 |
227 } // namespace ash | 227 } // namespace ash |
228 | 228 |
229 #endif // ASH_WM_MAXIMIZE_MODE_MAXIMIZE_MODE_CONTROLLER_H_ | 229 #endif // ASH_WM_MAXIMIZE_MODE_MAXIMIZE_MODE_CONTROLLER_H_ |
OLD | NEW |