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

Unified Diff: ash/shell.h

Issue 2761063002: Move more from WmShell to Shell (Closed)
Patch Set: merge Created 3 years, 9 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ash/root_window_controller_unittest.cc ('k') | ash/shell.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/shell.h
diff --git a/ash/shell.h b/ash/shell.h
index 2484c10fb8a4abcb95218b24b3f04afd8260d854..0969556b1b5cee797b4e95995d49fe9915369b4a 100644
--- a/ash/shell.h
+++ b/ash/shell.h
@@ -95,6 +95,8 @@ class AshNativeCursorManager;
class AshTouchTransformController;
class AutoclickController;
class BluetoothNotificationController;
+class BrightnessControlDelegate;
+class CastConfigController;
class DisplayColorManager;
class DisplayConfigurationController;
class DisplayErrorObserver;
@@ -102,13 +104,18 @@ class DragDropController;
class EventClientImpl;
class EventTransformationHandler;
class FirstRunHelper;
+class FocusCycler;
class GPUSupport;
class HighContrastController;
class ImmersiveHandlerFactoryAsh;
+class KeyboardBrightnessControlDelegate;
+class KeyboardUI;
class LaserPointerController;
class LinkHandlerModelFactory;
+class LocaleNotificationController;
class LockStateController;
enum class LoginStatus;
+class LogoutConfirmationController;
class MagnificationController;
class MouseCursorEventFilter;
class OverlayEventFilter;
@@ -135,6 +142,8 @@ class StickyKeysController;
class SystemGestureEventFilter;
class SystemModalContainerEventFilter;
class SystemTray;
+class SystemTrayController;
+class SystemTrayDelegate;
class ToplevelWindowEventHandler;
class ScreenLayoutObserver;
class ToastManager;
@@ -283,11 +292,32 @@ class ASH_EXPORT Shell : public SystemModalContainerEventFilterDelegate,
const scoped_refptr<base::SequencedWorkerPool>& blocking_pool() {
return blocking_pool_;
}
+ BrightnessControlDelegate* brightness_control_delegate() {
+ return brightness_control_delegate_.get();
+ }
+ CastConfigController* cast_config() { return cast_config_.get(); }
display::DisplayManager* display_manager() { return display_manager_.get(); }
DisplayConfigurationController* display_configuration_controller() {
return display_configuration_controller_.get();
}
::wm::CompoundEventFilter* env_filter() { return env_filter_.get(); }
+ FocusCycler* focus_cycler() { return focus_cycler_.get(); }
+ KeyboardBrightnessControlDelegate* keyboard_brightness_control_delegate() {
+ return keyboard_brightness_control_delegate_.get();
+ }
+ KeyboardUI* keyboard_ui() { return keyboard_ui_.get(); }
+ LocaleNotificationController* locale_notification_controller() {
+ return locale_notification_controller_.get();
+ }
+ LogoutConfirmationController* logout_confirmation_controller() {
+ return logout_confirmation_controller_.get();
+ }
+ SystemTrayController* system_tray_controller() {
+ return system_tray_controller_.get();
+ }
+ SystemTrayDelegate* system_tray_delegate() {
+ return system_tray_delegate_.get();
+ }
views::corewm::TooltipController* tooltip_controller() {
return tooltip_controller_.get();
}
@@ -514,6 +544,7 @@ class ASH_EXPORT Shell : public SystemModalContainerEventFilterDelegate,
FRIEND_TEST_ALL_PREFIXES(ExtendedDesktopTest, TestCursor);
FRIEND_TEST_ALL_PREFIXES(WindowManagerTest, MouseEventCursors);
FRIEND_TEST_ALL_PREFIXES(WindowManagerTest, TransformActivate);
+ friend class AcceleratorControllerTest;
friend class RootWindowController;
friend class ScopedRootWindowForNewWindows;
friend class SmsObserverTest;
@@ -532,6 +563,9 @@ class ASH_EXPORT Shell : public SystemModalContainerEventFilterDelegate,
// Initializes the root window so that it can host browser windows.
void InitRootWindow(aura::Window* root_window);
+ void SetSystemTrayDelegate(std::unique_ptr<SystemTrayDelegate> delegate);
+ void DeleteSystemTrayDelegate();
+
// Destroys all child windows including widgets across all roots.
void CloseAllRootWindowChildWindows();
@@ -572,10 +606,20 @@ class ASH_EXPORT Shell : public SystemModalContainerEventFilterDelegate,
std::unique_ptr<AcceleratorController> accelerator_controller_;
std::unique_ptr<AccessibilityDelegate> accessibility_delegate_;
- std::unique_ptr<PaletteDelegate> palette_delegate_;
+ std::unique_ptr<BrightnessControlDelegate> brightness_control_delegate_;
+ std::unique_ptr<CastConfigController> cast_config_;
std::unique_ptr<DragDropController> drag_drop_controller_;
+ std::unique_ptr<FocusCycler> focus_cycler_;
+ std::unique_ptr<KeyboardBrightnessControlDelegate>
+ keyboard_brightness_control_delegate_;
+ std::unique_ptr<KeyboardUI> keyboard_ui_;
+ std::unique_ptr<LocaleNotificationController> locale_notification_controller_;
+ std::unique_ptr<LogoutConfirmationController> logout_confirmation_controller_;
+ std::unique_ptr<PaletteDelegate> palette_delegate_;
std::unique_ptr<ResizeShadowController> resize_shadow_controller_;
std::unique_ptr<ShellDelegate> shell_delegate_;
+ std::unique_ptr<SystemTrayController> system_tray_controller_;
+ std::unique_ptr<SystemTrayDelegate> system_tray_delegate_;
std::unique_ptr<ToastManager> toast_manager_;
std::unique_ptr<WallpaperController> wallpaper_controller_;
std::unique_ptr<WallpaperDelegate> wallpaper_delegate_;
« no previous file with comments | « ash/root_window_controller_unittest.cc ('k') | ash/shell.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698