Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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_COMMON_WM_SHELL_H_ | 5 #ifndef ASH_COMMON_WM_SHELL_H_ |
| 6 #define ASH_COMMON_WM_SHELL_H_ | 6 #define ASH_COMMON_WM_SHELL_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <memory> | 10 #include <memory> |
| (...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 78 class WindowSelectorController; | 78 class WindowSelectorController; |
| 79 class WmActivationObserver; | 79 class WmActivationObserver; |
| 80 class WmDisplayObserver; | 80 class WmDisplayObserver; |
| 81 class WmRootWindowController; | 81 class WmRootWindowController; |
| 82 class WmWindow; | 82 class WmWindow; |
| 83 class WorkspaceEventHandler; | 83 class WorkspaceEventHandler; |
| 84 | 84 |
| 85 enum class LoginStatus; | 85 enum class LoginStatus; |
| 86 enum class TaskSwitchSource; | 86 enum class TaskSwitchSource; |
| 87 | 87 |
| 88 namespace mus { | |
| 89 class WmTestHelper; | |
| 90 } | |
| 91 | |
| 88 namespace wm { | 92 namespace wm { |
| 89 class MaximizeModeEventHandler; | 93 class MaximizeModeEventHandler; |
| 90 class WindowState; | 94 class WindowState; |
| 91 } | 95 } |
| 92 | 96 |
| 93 #if defined(OS_CHROMEOS) | 97 #if defined(OS_CHROMEOS) |
| 94 class LogoutConfirmationController; | 98 class LogoutConfirmationController; |
| 95 #endif | 99 #endif |
| 96 | 100 |
| 97 // Similar to ash::Shell. Eventually the two will be merged. | 101 // Similar to ash::Shell. Eventually the two will be merged. |
| (...skipping 352 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 450 | 454 |
| 451 void DeleteToastManager(); | 455 void DeleteToastManager(); |
| 452 | 456 |
| 453 void SetAcceleratorController( | 457 void SetAcceleratorController( |
| 454 std::unique_ptr<AcceleratorController> accelerator_controller); | 458 std::unique_ptr<AcceleratorController> accelerator_controller); |
| 455 | 459 |
| 456 private: | 460 private: |
| 457 friend class AcceleratorControllerTest; | 461 friend class AcceleratorControllerTest; |
| 458 friend class ScopedRootWindowForNewWindows; | 462 friend class ScopedRootWindowForNewWindows; |
| 459 friend class Shell; | 463 friend class Shell; |
| 464 friend class mus::WmTestHelper; | |
|
James Cook
2016/10/11 19:58:37
Lemme know if you would prefer a WmShellTestApi cl
sky
2016/10/11 20:56:24
I think that would be cleaner, but if you want to
| |
| 460 | 465 |
| 461 static WmShell* instance_; | 466 static WmShell* instance_; |
| 462 | 467 |
| 463 base::ObserverList<ShellObserver> shell_observers_; | 468 base::ObserverList<ShellObserver> shell_observers_; |
| 464 std::unique_ptr<ShellDelegate> delegate_; | 469 std::unique_ptr<ShellDelegate> delegate_; |
| 465 | 470 |
| 466 std::unique_ptr<AcceleratorController> accelerator_controller_; | 471 std::unique_ptr<AcceleratorController> accelerator_controller_; |
| 467 std::unique_ptr<AccessibilityDelegate> accessibility_delegate_; | 472 std::unique_ptr<AccessibilityDelegate> accessibility_delegate_; |
| 468 std::unique_ptr<BrightnessControlDelegate> brightness_control_delegate_; | 473 std::unique_ptr<BrightnessControlDelegate> brightness_control_delegate_; |
| 469 std::unique_ptr<FocusCycler> focus_cycler_; | 474 std::unique_ptr<FocusCycler> focus_cycler_; |
| (...skipping 29 matching lines...) Expand all Loading... | |
| 499 scoped_refptr<base::SequencedWorkerPool> blocking_pool_; | 504 scoped_refptr<base::SequencedWorkerPool> blocking_pool_; |
| 500 | 505 |
| 501 #if defined(OS_CHROMEOS) | 506 #if defined(OS_CHROMEOS) |
| 502 std::unique_ptr<LogoutConfirmationController> logout_confirmation_controller_; | 507 std::unique_ptr<LogoutConfirmationController> logout_confirmation_controller_; |
| 503 #endif | 508 #endif |
| 504 }; | 509 }; |
| 505 | 510 |
| 506 } // namespace ash | 511 } // namespace ash |
| 507 | 512 |
| 508 #endif // ASH_COMMON_WM_SHELL_H_ | 513 #endif // ASH_COMMON_WM_SHELL_H_ |
| OLD | NEW |