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 157 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
168 // preferences. These are then applied. | 168 // preferences. These are then applied. |
169 void LoadDisplayRotationProperties(); | 169 void LoadDisplayRotationProperties(); |
170 | 170 |
171 // The maximized window manager (if enabled). | 171 // The maximized window manager (if enabled). |
172 scoped_ptr<MaximizeModeWindowManager> maximize_mode_window_manager_; | 172 scoped_ptr<MaximizeModeWindowManager> maximize_mode_window_manager_; |
173 | 173 |
174 // A helper class which when instantiated will block native events from the | 174 // A helper class which when instantiated will block native events from the |
175 // internal keyboard and touchpad. | 175 // internal keyboard and touchpad. |
176 scoped_ptr<ScopedDisableInternalMouseAndKeyboard> event_blocker_; | 176 scoped_ptr<ScopedDisableInternalMouseAndKeyboard> event_blocker_; |
177 | 177 |
178 // An event handler used to detect screenshot actions while in maximize mode. | |
179 scoped_ptr<ui::EventHandler> event_handler_; | |
180 | |
181 // When true calls to OnAccelerometerUpdated will not rotate the display. | 178 // When true calls to OnAccelerometerUpdated will not rotate the display. |
182 bool rotation_locked_; | 179 bool rotation_locked_; |
183 | 180 |
184 // Whether we have ever seen accelerometer data. | 181 // Whether we have ever seen accelerometer data. |
185 bool have_seen_accelerometer_data_; | 182 bool have_seen_accelerometer_data_; |
186 | 183 |
187 // True when changes being applied cause OnDisplayConfigurationChanged() to be | 184 // True when changes being applied cause OnDisplayConfigurationChanged() to be |
188 // called, and for which these changes should be ignored. | 185 // called, and for which these changes should be ignored. |
189 bool ignore_display_configuration_updates_; | 186 bool ignore_display_configuration_updates_; |
190 | 187 |
(...skipping 29 matching lines...) Expand all Loading... |
220 | 217 |
221 // Tracks when the lid is closed. Used to prevent entering maximize mode. | 218 // Tracks when the lid is closed. Used to prevent entering maximize mode. |
222 bool lid_is_closed_; | 219 bool lid_is_closed_; |
223 | 220 |
224 DISALLOW_COPY_AND_ASSIGN(MaximizeModeController); | 221 DISALLOW_COPY_AND_ASSIGN(MaximizeModeController); |
225 }; | 222 }; |
226 | 223 |
227 } // namespace ash | 224 } // namespace ash |
228 | 225 |
229 #endif // ASH_WM_MAXIMIZE_MODE_MAXIMIZE_MODE_CONTROLLER_H_ | 226 #endif // ASH_WM_MAXIMIZE_MODE_MAXIMIZE_MODE_CONTROLLER_H_ |
OLD | NEW |