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 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
118 | 119 |
119 // Shows the keyboard shortcut overlay. | 120 // Shows the keyboard shortcut overlay. |
120 virtual void ShowKeyboardOverlay() = 0; | 121 virtual void ShowKeyboardOverlay() = 0; |
121 | 122 |
122 // Shows the task manager window. | 123 // Shows the task manager window. |
123 virtual void ShowTaskManager() = 0; | 124 virtual void ShowTaskManager() = 0; |
124 | 125 |
125 // Get the current browser context. This will get us the current profile. | 126 // Get the current browser context. This will get us the current profile. |
126 virtual content::BrowserContext* GetCurrentBrowserContext() = 0; | 127 virtual content::BrowserContext* GetCurrentBrowserContext() = 0; |
127 | 128 |
128 // Invoked when the user presses a shortcut to toggle spoken feedback | 129 // Invoked when the user toggles spoken feedback for accessibility. |
129 // for accessibility. | |
130 virtual void ToggleSpokenFeedback() = 0; | 130 virtual void ToggleSpokenFeedback() = 0; |
131 | 131 |
132 // Returns true if spoken feedback is enabled. | 132 // Returns true if spoken feedback is enabled. |
133 virtual bool IsSpokenFeedbackEnabled() const = 0; | 133 virtual bool IsSpokenFeedbackEnabled() const = 0; |
134 | 134 |
| 135 // Invoked when the user toggles high contrast for accessibility. |
| 136 virtual void ToggleHighContrast() = 0; |
| 137 |
| 138 // Returns true if high contrast mode is enabled. |
| 139 virtual bool IsHighContrastEnabled() const = 0; |
| 140 |
| 141 // Invoked when the user changes the mode of the screen magnifier. |
| 142 virtual void SetScreenMagnifier(ScreenMagnifierType type) = 0; |
| 143 |
| 144 // Returns the current screen magnifier mode. |
| 145 virtual ScreenMagnifierType GetScreenMagnifierType() const = 0; |
| 146 |
| 147 // Returns true if the user want to show accesibility menu even when all the |
| 148 // accessibility features are disabled. |
| 149 virtual bool AlwaysShowAccessibilityMenu() const = 0; |
| 150 |
135 // Invoked to create an AppListViewDelegate. Shell takes the ownership of | 151 // Invoked to create an AppListViewDelegate. Shell takes the ownership of |
136 // the created delegate. | 152 // the created delegate. |
137 virtual app_list::AppListViewDelegate* CreateAppListViewDelegate() = 0; | 153 virtual app_list::AppListViewDelegate* CreateAppListViewDelegate() = 0; |
138 | 154 |
139 // Creates a new LauncherDelegate. Shell takes ownership of the returned | 155 // Creates a new LauncherDelegate. Shell takes ownership of the returned |
140 // value. | 156 // value. |
141 virtual LauncherDelegate* CreateLauncherDelegate( | 157 virtual LauncherDelegate* CreateLauncherDelegate( |
142 ash::LauncherModel* model) = 0; | 158 ash::LauncherModel* model) = 0; |
143 | 159 |
144 // Creates a system-tray delegate. Shell takes ownership of the delegate. | 160 // Creates a system-tray delegate. Shell takes ownership of the delegate. |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
183 // Creates a menu model of the context for the |root_window|. | 199 // Creates a menu model of the context for the |root_window|. |
184 virtual ui::MenuModel* CreateContextMenu(aura::RootWindow* root_window) = 0; | 200 virtual ui::MenuModel* CreateContextMenu(aura::RootWindow* root_window) = 0; |
185 | 201 |
186 // Creates the stacking client. Shell takes ownership of the object. | 202 // Creates the stacking client. Shell takes ownership of the object. |
187 virtual aura::client::StackingClient* CreateStackingClient() = 0; | 203 virtual aura::client::StackingClient* CreateStackingClient() = 0; |
188 }; | 204 }; |
189 | 205 |
190 } // namespace ash | 206 } // namespace ash |
191 | 207 |
192 #endif // ASH_SHELL_DELEGATE_H_ | 208 #endif // ASH_SHELL_DELEGATE_H_ |
OLD | NEW |