Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(197)

Side by Side Diff: ash/common/wm_shell.h

Issue 2408273002: mash: Port TrayUpdateTest to AshTest (Closed)
Patch Set: Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « ash/common/test/ash_test.cc ('k') | ash/common/wm_shell.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
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_
OLDNEW
« no previous file with comments | « ash/common/test/ash_test.cc ('k') | ash/common/wm_shell.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698