| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_SHELL_H_ | 5 #ifndef ASH_SHELL_H_ |
| 6 #define ASH_SHELL_H_ | 6 #define ASH_SHELL_H_ |
| 7 | 7 |
| 8 #include <utility> | 8 #include <utility> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 314 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 325 // Adds/removes observer. | 325 // Adds/removes observer. |
| 326 void AddShellObserver(ShellObserver* observer); | 326 void AddShellObserver(ShellObserver* observer); |
| 327 void RemoveShellObserver(ShellObserver* observer); | 327 void RemoveShellObserver(ShellObserver* observer); |
| 328 | 328 |
| 329 // Turn the always maximize mode window manager on or off. | 329 // Turn the always maximize mode window manager on or off. |
| 330 void EnableMaximizeModeWindowManager(bool enable); | 330 void EnableMaximizeModeWindowManager(bool enable); |
| 331 | 331 |
| 332 // Test if the MaximizeModeWindowManager is enabled or not. | 332 // Test if the MaximizeModeWindowManager is enabled or not. |
| 333 bool IsMaximizeModeWindowManagerEnabled(); | 333 bool IsMaximizeModeWindowManagerEnabled(); |
| 334 | 334 |
| 335 // Test if MaximizeModeWindowManager is not enabled, and if |
| 336 // MaximizeModeController is not currently setting a display rotation. If |
| 337 // true then changes to display settings can be saved. |
| 338 bool ShouldSaveDisplaySettings(); |
| 339 |
| 335 AcceleratorController* accelerator_controller() { | 340 AcceleratorController* accelerator_controller() { |
| 336 return accelerator_controller_.get(); | 341 return accelerator_controller_.get(); |
| 337 } | 342 } |
| 338 | 343 |
| 339 DisplayManager* display_manager() { return display_manager_.get(); } | 344 DisplayManager* display_manager() { return display_manager_.get(); } |
| 340 ::wm::InputMethodEventFilter* input_method_filter() { | 345 ::wm::InputMethodEventFilter* input_method_filter() { |
| 341 return input_method_filter_.get(); | 346 return input_method_filter_.get(); |
| 342 } | 347 } |
| 343 ::wm::CompoundEventFilter* env_filter() { | 348 ::wm::CompoundEventFilter* env_filter() { |
| 344 return env_filter_.get(); | 349 return env_filter_.get(); |
| (...skipping 407 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 752 | 757 |
| 753 // Injected content::GPUDataManager support. | 758 // Injected content::GPUDataManager support. |
| 754 scoped_ptr<GPUSupport> gpu_support_; | 759 scoped_ptr<GPUSupport> gpu_support_; |
| 755 | 760 |
| 756 DISALLOW_COPY_AND_ASSIGN(Shell); | 761 DISALLOW_COPY_AND_ASSIGN(Shell); |
| 757 }; | 762 }; |
| 758 | 763 |
| 759 } // namespace ash | 764 } // namespace ash |
| 760 | 765 |
| 761 #endif // ASH_SHELL_H_ | 766 #endif // ASH_SHELL_H_ |
| OLD | NEW |