Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 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. |
| 4 | |
| 5 | #ifndef ASH_SHELL_SHELL_DELEGATE_IMPL_H_ |
| 6 | #define ASH_SHELL_SHELL_DELEGATE_IMPL_H_ |
| 7 | |
Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [diff] [blame] | 8 | #include <string> |
| 9 | |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 10 | #include "ash/shell_delegate.h" |
| 11 | #include "base/compiler_specific.h" |
| 12 | |
Torne (Richard Coles) | c2e0dbd | 2013-05-09 18:35:53 +0100 | [diff] [blame] | 13 | namespace keyboard { |
| 14 | class KeyboardControllerProxy; |
| 15 | } |
| 16 | |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 17 | namespace ash { |
| 18 | namespace shell { |
| 19 | |
| 20 | class LauncherDelegateImpl; |
| 21 | class WindowWatcher; |
| 22 | |
| 23 | class ShellDelegateImpl : public ash::ShellDelegate { |
| 24 | public: |
| 25 | ShellDelegateImpl(); |
| 26 | virtual ~ShellDelegateImpl(); |
| 27 | |
| 28 | void SetWatcher(WindowWatcher* watcher); |
| 29 | |
Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [diff] [blame] | 30 | virtual bool IsFirstRunAfterBoot() const OVERRIDE; |
Torne (Richard Coles) | c2e0dbd | 2013-05-09 18:35:53 +0100 | [diff] [blame] | 31 | virtual bool IsMultiProfilesEnabled() const OVERRIDE; |
Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [diff] [blame] | 32 | virtual bool IsRunningInForcedAppMode() const OVERRIDE; |
Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [diff] [blame] | 33 | virtual void PreInit() OVERRIDE; |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 34 | virtual void Shutdown() OVERRIDE; |
| 35 | virtual void Exit() OVERRIDE; |
| 36 | virtual void NewTab() OVERRIDE; |
| 37 | virtual void NewWindow(bool incognito) OVERRIDE; |
Torne (Richard Coles) | c2e0dbd | 2013-05-09 18:35:53 +0100 | [diff] [blame] | 38 | virtual void ToggleFullscreen() OVERRIDE; |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 39 | virtual void ToggleMaximized() OVERRIDE; |
| 40 | virtual void OpenFileManager(bool as_dialog) OVERRIDE; |
| 41 | virtual void OpenCrosh() OVERRIDE; |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 42 | virtual void RestoreTab() OVERRIDE; |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 43 | virtual void ShowKeyboardOverlay() OVERRIDE; |
Torne (Richard Coles) | c2e0dbd | 2013-05-09 18:35:53 +0100 | [diff] [blame] | 44 | virtual keyboard::KeyboardControllerProxy* |
| 45 | CreateKeyboardControllerProxy() OVERRIDE; |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 46 | virtual void ShowTaskManager() OVERRIDE; |
| 47 | virtual content::BrowserContext* GetCurrentBrowserContext() OVERRIDE; |
Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [diff] [blame] | 48 | virtual void ToggleSpokenFeedback( |
| 49 | AccessibilityNotificationVisibility notify) OVERRIDE; |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 50 | virtual bool IsSpokenFeedbackEnabled() const OVERRIDE; |
Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [diff] [blame] | 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; |
Torne (Richard Coles) | 868fa2f | 2013-06-11 10:57:03 +0100 | [diff] [blame] | 57 | virtual void SetLargeCursorEnabled(bool enabled) OVERRIDE; |
| 58 | virtual bool IsLargeCursorEnabled() const OVERRIDE; |
Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [diff] [blame] | 59 | virtual bool ShouldAlwaysShowAccessibilityMenu() const OVERRIDE; |
Torne (Richard Coles) | c2e0dbd | 2013-05-09 18:35:53 +0100 | [diff] [blame] | 60 | virtual void SilenceSpokenFeedback() const OVERRIDE; |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 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; |
Torne (Richard Coles) | c2e0dbd | 2013-05-09 18:35:53 +0100 | [diff] [blame] | 67 | virtual ash::SessionStateDelegate* CreateSessionStateDelegate() OVERRIDE; |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 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; |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 74 | virtual void SaveScreenMagnifierScale(double scale) OVERRIDE; |
| 75 | virtual double GetSavedScreenMagnifierScale() OVERRIDE; |
| 76 | virtual ui::MenuModel* CreateContextMenu( |
| 77 | aura::RootWindow* root_window) OVERRIDE; |
Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [diff] [blame] | 78 | virtual RootWindowHostFactory* CreateRootWindowHostFactory() OVERRIDE; |
Torne (Richard Coles) | c2e0dbd | 2013-05-09 18:35:53 +0100 | [diff] [blame] | 79 | virtual base::string16 GetProductName() const OVERRIDE; |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 80 | |
| 81 | private: |
| 82 | // Used to update Launcher. Owned by main. |
| 83 | WindowWatcher* watcher_; |
| 84 | |
| 85 | LauncherDelegateImpl* launcher_delegate_; |
| 86 | |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 87 | bool spoken_feedback_enabled_; |
Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [diff] [blame] | 88 | bool high_contrast_enabled_; |
| 89 | bool screen_magnifier_enabled_; |
| 90 | MagnifierType screen_magnifier_type_; |
Torne (Richard Coles) | 868fa2f | 2013-06-11 10:57:03 +0100 | [diff] [blame] | 91 | bool large_cursor_enabled_; |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 92 | |
| 93 | DISALLOW_COPY_AND_ASSIGN(ShellDelegateImpl); |
| 94 | }; |
| 95 | |
| 96 | } // namespace shell |
| 97 | } // namespace ash |
| 98 | |
| 99 | #endif // ASH_SHELL_SHELL_DELEGATE_IMPL_H_ |