OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 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 | 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_SHELL_SHELL_DELEGATE_IMPL_H_ | 5 #ifndef ASH_SHELL_SHELL_DELEGATE_IMPL_H_ |
6 #define ASH_SHELL_SHELL_DELEGATE_IMPL_H_ | 6 #define ASH_SHELL_SHELL_DELEGATE_IMPL_H_ |
7 | 7 |
8 #include "ash/shell_delegate.h" | 8 #include "ash/shell_delegate.h" |
9 #include "base/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
10 | 10 |
(...skipping 25 matching lines...) Expand all Loading... |
36 virtual void OpenFileManager(bool as_dialog) OVERRIDE; | 36 virtual void OpenFileManager(bool as_dialog) OVERRIDE; |
37 virtual void OpenCrosh() OVERRIDE; | 37 virtual void OpenCrosh() OVERRIDE; |
38 virtual void OpenMobileSetup(const std::string& service_path) OVERRIDE; | 38 virtual void OpenMobileSetup(const std::string& service_path) OVERRIDE; |
39 virtual void RestoreTab() OVERRIDE; | 39 virtual void RestoreTab() OVERRIDE; |
40 virtual bool RotatePaneFocus(Shell::Direction direction) OVERRIDE; | 40 virtual bool RotatePaneFocus(Shell::Direction direction) OVERRIDE; |
41 virtual void ShowKeyboardOverlay() OVERRIDE; | 41 virtual void ShowKeyboardOverlay() OVERRIDE; |
42 virtual void ShowTaskManager() OVERRIDE; | 42 virtual void ShowTaskManager() OVERRIDE; |
43 virtual content::BrowserContext* GetCurrentBrowserContext() OVERRIDE; | 43 virtual content::BrowserContext* GetCurrentBrowserContext() OVERRIDE; |
44 virtual void ToggleSpokenFeedback() OVERRIDE; | 44 virtual void ToggleSpokenFeedback() OVERRIDE; |
45 virtual bool IsSpokenFeedbackEnabled() const OVERRIDE; | 45 virtual bool IsSpokenFeedbackEnabled() const OVERRIDE; |
| 46 virtual void ToggleHighContrast() OVERRIDE; |
| 47 virtual bool IsHighContrastEnabled() const OVERRIDE; |
| 48 virtual void SetMagnifier(MagnifierType type) OVERRIDE; |
| 49 virtual MagnifierType GetMagnifierType() const OVERRIDE; |
| 50 virtual bool ShouldAlwaysShowAccessibilityMenu() const OVERRIDE; |
46 virtual app_list::AppListViewDelegate* CreateAppListViewDelegate() OVERRIDE; | 51 virtual app_list::AppListViewDelegate* CreateAppListViewDelegate() OVERRIDE; |
47 virtual ash::LauncherDelegate* CreateLauncherDelegate( | 52 virtual ash::LauncherDelegate* CreateLauncherDelegate( |
48 ash::LauncherModel* model) OVERRIDE; | 53 ash::LauncherModel* model) OVERRIDE; |
49 virtual ash::SystemTrayDelegate* CreateSystemTrayDelegate() OVERRIDE; | 54 virtual ash::SystemTrayDelegate* CreateSystemTrayDelegate() OVERRIDE; |
50 virtual ash::UserWallpaperDelegate* CreateUserWallpaperDelegate() OVERRIDE; | 55 virtual ash::UserWallpaperDelegate* CreateUserWallpaperDelegate() OVERRIDE; |
51 virtual ash::CapsLockDelegate* CreateCapsLockDelegate() OVERRIDE; | 56 virtual ash::CapsLockDelegate* CreateCapsLockDelegate() OVERRIDE; |
52 virtual aura::client::UserActionClient* CreateUserActionClient() OVERRIDE; | 57 virtual aura::client::UserActionClient* CreateUserActionClient() OVERRIDE; |
53 virtual void OpenFeedbackPage() OVERRIDE; | 58 virtual void OpenFeedbackPage() OVERRIDE; |
54 virtual void RecordUserMetricsAction(UserMetricsAction action) OVERRIDE; | 59 virtual void RecordUserMetricsAction(UserMetricsAction action) OVERRIDE; |
55 virtual void HandleMediaNextTrack() OVERRIDE; | 60 virtual void HandleMediaNextTrack() OVERRIDE; |
56 virtual void HandleMediaPlayPause() OVERRIDE; | 61 virtual void HandleMediaPlayPause() OVERRIDE; |
57 virtual void HandleMediaPrevTrack() OVERRIDE; | 62 virtual void HandleMediaPrevTrack() OVERRIDE; |
58 virtual string16 GetTimeRemainingString(base::TimeDelta delta) OVERRIDE; | 63 virtual string16 GetTimeRemainingString(base::TimeDelta delta) OVERRIDE; |
59 virtual string16 GetTimeDurationLongString(base::TimeDelta delta) OVERRIDE; | 64 virtual string16 GetTimeDurationLongString(base::TimeDelta delta) OVERRIDE; |
60 virtual void SaveScreenMagnifierScale(double scale) OVERRIDE; | 65 virtual void SaveScreenMagnifierScale(double scale) OVERRIDE; |
61 virtual double GetSavedScreenMagnifierScale() OVERRIDE; | 66 virtual double GetSavedScreenMagnifierScale() OVERRIDE; |
62 virtual ui::MenuModel* CreateContextMenu( | 67 virtual ui::MenuModel* CreateContextMenu( |
63 aura::RootWindow* root_window) OVERRIDE; | 68 aura::RootWindow* root_window) OVERRIDE; |
64 virtual aura::client::StackingClient* CreateStackingClient() OVERRIDE; | 69 virtual aura::client::StackingClient* CreateStackingClient() OVERRIDE; |
65 virtual bool IsSearchKeyActingAsFunctionKey() const OVERRIDE; | 70 virtual bool IsSearchKeyActingAsFunctionKey() const OVERRIDE; |
66 | 71 |
67 private: | 72 private: |
68 // Used to update Launcher. Owned by main. | 73 // Used to update Launcher. Owned by main. |
69 WindowWatcher* watcher_; | 74 WindowWatcher* watcher_; |
70 | 75 |
71 LauncherDelegateImpl* launcher_delegate_; | 76 LauncherDelegateImpl* launcher_delegate_; |
72 | 77 |
73 bool locked_; | 78 bool locked_; |
74 bool spoken_feedback_enabled_; | 79 bool spoken_feedback_enabled_; |
| 80 bool high_contrast_enabled_; |
| 81 MagnifierType screen_magnifier_type_; |
75 | 82 |
76 DISALLOW_COPY_AND_ASSIGN(ShellDelegateImpl); | 83 DISALLOW_COPY_AND_ASSIGN(ShellDelegateImpl); |
77 }; | 84 }; |
78 | 85 |
79 } // namespace shell | 86 } // namespace shell |
80 } // namespace ash | 87 } // namespace ash |
81 | 88 |
82 #endif // ASH_SHELL_SHELL_DELEGATE_IMPL_H_ | 89 #endif // ASH_SHELL_SHELL_DELEGATE_IMPL_H_ |
OLD | NEW |