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
3 // found in the LICENSE file.
5 #ifndef ASH_SHELL_SHELL_DELEGATE_IMPL_H_
6 #define ASH_SHELL_SHELL_DELEGATE_IMPL_H_
10 #include "ash/shell_delegate.h"
11 #include "base/compiler_specific.h"
14 class KeyboardControllerProxy
;
20 class LauncherDelegateImpl
;
23 class ShellDelegateImpl
: public ash::ShellDelegate
{
26 virtual ~ShellDelegateImpl();
28 void SetWatcher(WindowWatcher
* watcher
);
30 virtual bool IsFirstRunAfterBoot() const OVERRIDE
;
31 virtual bool IsMultiProfilesEnabled() const OVERRIDE
;
32 virtual bool IsRunningInForcedAppMode() const OVERRIDE
;
33 virtual void PreInit() OVERRIDE
;
34 virtual void Shutdown() OVERRIDE
;
35 virtual void Exit() OVERRIDE
;
36 virtual void NewTab() OVERRIDE
;
37 virtual void NewWindow(bool incognito
) OVERRIDE
;
38 virtual void ToggleFullscreen() OVERRIDE
;
39 virtual void ToggleMaximized() OVERRIDE
;
40 virtual void OpenFileManager(bool as_dialog
) OVERRIDE
;
41 virtual void OpenCrosh() OVERRIDE
;
42 virtual void RestoreTab() OVERRIDE
;
43 virtual void ShowKeyboardOverlay() OVERRIDE
;
44 virtual keyboard::KeyboardControllerProxy
*
45 CreateKeyboardControllerProxy() OVERRIDE
;
46 virtual void ShowTaskManager() OVERRIDE
;
47 virtual content::BrowserContext
* GetCurrentBrowserContext() OVERRIDE
;
48 virtual void ToggleSpokenFeedback(
49 AccessibilityNotificationVisibility notify
) OVERRIDE
;
50 virtual bool IsSpokenFeedbackEnabled() const OVERRIDE
;
51 virtual void ToggleHighContrast() OVERRIDE
;
52 virtual bool IsHighContrastEnabled() const OVERRIDE
;
53 virtual void SetMagnifierEnabled(bool enabled
) OVERRIDE
;
54 virtual void SetMagnifierType(MagnifierType type
) OVERRIDE
;
55 virtual bool IsMagnifierEnabled() const OVERRIDE
;
56 virtual MagnifierType
GetMagnifierType() const OVERRIDE
;
57 virtual void SetLargeCursorEnabled(bool enabled
) OVERRIDE
;
58 virtual bool IsLargeCursorEnabled() const OVERRIDE
;
59 virtual bool ShouldAlwaysShowAccessibilityMenu() const OVERRIDE
;
60 virtual void SilenceSpokenFeedback() const OVERRIDE
;
61 virtual app_list::AppListViewDelegate
* CreateAppListViewDelegate() OVERRIDE
;
62 virtual ash::LauncherDelegate
* CreateLauncherDelegate(
63 ash::LauncherModel
* model
) OVERRIDE
;
64 virtual ash::SystemTrayDelegate
* CreateSystemTrayDelegate() OVERRIDE
;
65 virtual ash::UserWallpaperDelegate
* CreateUserWallpaperDelegate() OVERRIDE
;
66 virtual ash::CapsLockDelegate
* CreateCapsLockDelegate() OVERRIDE
;
67 virtual ash::SessionStateDelegate
* CreateSessionStateDelegate() OVERRIDE
;
68 virtual aura::client::UserActionClient
* CreateUserActionClient() OVERRIDE
;
69 virtual void OpenFeedbackPage() OVERRIDE
;
70 virtual void RecordUserMetricsAction(UserMetricsAction action
) OVERRIDE
;
71 virtual void HandleMediaNextTrack() OVERRIDE
;
72 virtual void HandleMediaPlayPause() OVERRIDE
;
73 virtual void HandleMediaPrevTrack() OVERRIDE
;
74 virtual void SaveScreenMagnifierScale(double scale
) OVERRIDE
;
75 virtual double GetSavedScreenMagnifierScale() OVERRIDE
;
76 virtual ui::MenuModel
* CreateContextMenu(
77 aura::RootWindow
* root_window
) OVERRIDE
;
78 virtual RootWindowHostFactory
* CreateRootWindowHostFactory() OVERRIDE
;
79 virtual base::string16
GetProductName() const OVERRIDE
;
82 // Used to update Launcher. Owned by main.
83 WindowWatcher
* watcher_
;
85 LauncherDelegateImpl
* launcher_delegate_
;
87 bool spoken_feedback_enabled_
;
88 bool high_contrast_enabled_
;
89 bool screen_magnifier_enabled_
;
90 MagnifierType screen_magnifier_type_
;
91 bool large_cursor_enabled_
;
93 DISALLOW_COPY_AND_ASSIGN(ShellDelegateImpl
);
99 #endif // ASH_SHELL_SHELL_DELEGATE_IMPL_H_