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 <string> | 8 #include <string> |
9 | 9 |
10 #include "ash/ash_export.h" | 10 #include "ash/ash_export.h" |
(...skipping 24 matching lines...) Expand all Loading... |
35 namespace keyboard { | 35 namespace keyboard { |
36 class KeyboardControllerProxy; | 36 class KeyboardControllerProxy; |
37 } | 37 } |
38 | 38 |
39 namespace ash { | 39 namespace ash { |
40 | 40 |
41 class CapsLockDelegate; | 41 class CapsLockDelegate; |
42 class LauncherDelegate; | 42 class LauncherDelegate; |
43 class LauncherModel; | 43 class LauncherModel; |
44 struct LauncherItem; | 44 struct LauncherItem; |
| 45 class MediaDelegate; |
45 class NewWindowDelegate; | 46 class NewWindowDelegate; |
46 class RootWindowHostFactory; | 47 class RootWindowHostFactory; |
47 class AccessibilityDelegate; | 48 class AccessibilityDelegate; |
48 class SessionStateDelegate; | 49 class SessionStateDelegate; |
49 class SystemTrayDelegate; | 50 class SystemTrayDelegate; |
50 class UserWallpaperDelegate; | 51 class UserWallpaperDelegate; |
51 | 52 |
52 enum UserMetricsAction { | 53 enum UserMetricsAction { |
53 UMA_ACCEL_KEYBOARD_BRIGHTNESS_DOWN_F6, | 54 UMA_ACCEL_KEYBOARD_BRIGHTNESS_DOWN_F6, |
54 UMA_ACCEL_KEYBOARD_BRIGHTNESS_UP_F7, | 55 UMA_ACCEL_KEYBOARD_BRIGHTNESS_UP_F7, |
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
160 | 161 |
161 // Creates a session state delegate. Shell takes ownership of the delegate. | 162 // Creates a session state delegate. Shell takes ownership of the delegate. |
162 virtual SessionStateDelegate* CreateSessionStateDelegate() = 0; | 163 virtual SessionStateDelegate* CreateSessionStateDelegate() = 0; |
163 | 164 |
164 // Creates a accessibility delegate. Shell takes ownership of the delegate. | 165 // Creates a accessibility delegate. Shell takes ownership of the delegate. |
165 virtual AccessibilityDelegate* CreateAccessibilityDelegate() = 0; | 166 virtual AccessibilityDelegate* CreateAccessibilityDelegate() = 0; |
166 | 167 |
167 // Creates an application delegate. Shell takes ownership of the delegate. | 168 // Creates an application delegate. Shell takes ownership of the delegate. |
168 virtual NewWindowDelegate* CreateNewWindowDelegate() = 0; | 169 virtual NewWindowDelegate* CreateNewWindowDelegate() = 0; |
169 | 170 |
| 171 // Creates a media delegate. Shell takes ownership of the delegate. |
| 172 virtual MediaDelegate* CreateMediaDelegate() = 0; |
| 173 |
170 // Creates a user action client. Shell takes ownership of the object. | 174 // Creates a user action client. Shell takes ownership of the object. |
171 virtual aura::client::UserActionClient* CreateUserActionClient() = 0; | 175 virtual aura::client::UserActionClient* CreateUserActionClient() = 0; |
172 | 176 |
173 // Records that the user performed an action. | 177 // Records that the user performed an action. |
174 virtual void RecordUserMetricsAction(UserMetricsAction action) = 0; | 178 virtual void RecordUserMetricsAction(UserMetricsAction action) = 0; |
175 | 179 |
176 // Handles the Next Track Media shortcut key. | |
177 virtual void HandleMediaNextTrack() = 0; | |
178 | |
179 // Handles the Play/Pause Toggle Media shortcut key. | |
180 virtual void HandleMediaPlayPause() = 0; | |
181 | |
182 // Handles the Previous Track Media shortcut key. | |
183 virtual void HandleMediaPrevTrack() = 0; | |
184 | |
185 // Creates a menu model of the context for the |root_window|. | 180 // Creates a menu model of the context for the |root_window|. |
186 virtual ui::MenuModel* CreateContextMenu(aura::Window* root_window) = 0; | 181 virtual ui::MenuModel* CreateContextMenu(aura::Window* root_window) = 0; |
187 | 182 |
188 // Creates a root window host factory. Shell takes ownership of the returned | 183 // Creates a root window host factory. Shell takes ownership of the returned |
189 // value. | 184 // value. |
190 virtual RootWindowHostFactory* CreateRootWindowHostFactory() = 0; | 185 virtual RootWindowHostFactory* CreateRootWindowHostFactory() = 0; |
191 | 186 |
192 // Get the product name. | 187 // Get the product name. |
193 virtual base::string16 GetProductName() const = 0; | 188 virtual base::string16 GetProductName() const = 0; |
194 }; | 189 }; |
195 | 190 |
196 } // namespace ash | 191 } // namespace ash |
197 | 192 |
198 #endif // ASH_SHELL_DELEGATE_H_ | 193 #endif // ASH_SHELL_DELEGATE_H_ |
OLD | NEW |