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_DELEGATE_H_ | 5 #ifndef ASH_SHELL_DELEGATE_H_ |
6 #define ASH_SHELL_DELEGATE_H_ | 6 #define ASH_SHELL_DELEGATE_H_ |
7 | 7 |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "ash/ash_export.h" | 10 #include "ash/ash_export.h" |
| 11 #include "ash/magnifier/magnifier_constants.h" |
11 #include "ash/shell.h" | 12 #include "ash/shell.h" |
12 #include "base/callback.h" | 13 #include "base/callback.h" |
13 #include "base/string16.h" | 14 #include "base/string16.h" |
14 #include "base/time.h" | 15 #include "base/time.h" |
15 | 16 |
16 namespace app_list { | 17 namespace app_list { |
17 class AppListViewDelegate; | 18 class AppListViewDelegate; |
18 } | 19 } |
19 | 20 |
20 namespace aura { | 21 namespace aura { |
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
122 | 123 |
123 // Shows the keyboard shortcut overlay. | 124 // Shows the keyboard shortcut overlay. |
124 virtual void ShowKeyboardOverlay() = 0; | 125 virtual void ShowKeyboardOverlay() = 0; |
125 | 126 |
126 // Shows the task manager window. | 127 // Shows the task manager window. |
127 virtual void ShowTaskManager() = 0; | 128 virtual void ShowTaskManager() = 0; |
128 | 129 |
129 // Get the current browser context. This will get us the current profile. | 130 // Get the current browser context. This will get us the current profile. |
130 virtual content::BrowserContext* GetCurrentBrowserContext() = 0; | 131 virtual content::BrowserContext* GetCurrentBrowserContext() = 0; |
131 | 132 |
132 // Invoked when the user presses a shortcut to toggle spoken feedback | 133 // Invoked to toggle spoken feedback for accessibility |
133 // for accessibility. | |
134 virtual void ToggleSpokenFeedback() = 0; | 134 virtual void ToggleSpokenFeedback() = 0; |
135 | 135 |
136 // Returns true if spoken feedback is enabled. | 136 // Returns true if spoken feedback is enabled. |
137 virtual bool IsSpokenFeedbackEnabled() const = 0; | 137 virtual bool IsSpokenFeedbackEnabled() const = 0; |
138 | 138 |
| 139 // Invoked to toggle high contrast for accessibility. |
| 140 virtual void ToggleHighContrast() = 0; |
| 141 |
| 142 // Returns true if high contrast mode is enabled. |
| 143 virtual bool IsHighContrastEnabled() const = 0; |
| 144 |
| 145 // Invoked to change the mode of the screen magnifier. |
| 146 virtual void SetMagnifier(MagnifierType type) = 0; |
| 147 |
| 148 // Returns the current screen magnifier mode. |
| 149 virtual MagnifierType GetMagnifierType() const = 0; |
| 150 |
| 151 // Returns true if the user want to show accesibility menu even when all the |
| 152 // accessibility features are disabled. |
| 153 virtual bool ShouldAlwaysShowAccessibilityMenu() const = 0; |
| 154 |
139 // Invoked to create an AppListViewDelegate. Shell takes the ownership of | 155 // Invoked to create an AppListViewDelegate. Shell takes the ownership of |
140 // the created delegate. | 156 // the created delegate. |
141 virtual app_list::AppListViewDelegate* CreateAppListViewDelegate() = 0; | 157 virtual app_list::AppListViewDelegate* CreateAppListViewDelegate() = 0; |
142 | 158 |
143 // Creates a new LauncherDelegate. Shell takes ownership of the returned | 159 // Creates a new LauncherDelegate. Shell takes ownership of the returned |
144 // value. | 160 // value. |
145 virtual LauncherDelegate* CreateLauncherDelegate( | 161 virtual LauncherDelegate* CreateLauncherDelegate( |
146 ash::LauncherModel* model) = 0; | 162 ash::LauncherModel* model) = 0; |
147 | 163 |
148 // Creates a system-tray delegate. Shell takes ownership of the delegate. | 164 // Creates a system-tray delegate. Shell takes ownership of the delegate. |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
194 virtual aura::client::StackingClient* CreateStackingClient() = 0; | 210 virtual aura::client::StackingClient* CreateStackingClient() = 0; |
195 | 211 |
196 // True if the user's preferences have the Search key acting as a Function key | 212 // True if the user's preferences have the Search key acting as a Function key |
197 // modifier for accessing extended keyboard shortcuts. | 213 // modifier for accessing extended keyboard shortcuts. |
198 virtual bool IsSearchKeyActingAsFunctionKey() const = 0; | 214 virtual bool IsSearchKeyActingAsFunctionKey() const = 0; |
199 }; | 215 }; |
200 | 216 |
201 } // namespace ash | 217 } // namespace ash |
202 | 218 |
203 #endif // ASH_SHELL_DELEGATE_H_ | 219 #endif // ASH_SHELL_DELEGATE_H_ |
OLD | NEW |