Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(649)

Side by Side Diff: ash/shell_delegate.h

Issue 48523010: [Refactor] Introduce MediaDelegate (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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 104 matching lines...) Expand 10 before | Expand all | Expand 10 after
159 160
160 // Creates a session state delegate. Shell takes ownership of the delegate. 161 // Creates a session state delegate. Shell takes ownership of the delegate.
161 virtual SessionStateDelegate* CreateSessionStateDelegate() = 0; 162 virtual SessionStateDelegate* CreateSessionStateDelegate() = 0;
162 163
163 // Creates a accessibility delegate. Shell takes ownership of the delegate. 164 // Creates a accessibility delegate. Shell takes ownership of the delegate.
164 virtual AccessibilityDelegate* CreateAccessibilityDelegate() = 0; 165 virtual AccessibilityDelegate* CreateAccessibilityDelegate() = 0;
165 166
166 // Creates an application delegate. Shell takes ownership of the delegate. 167 // Creates an application delegate. Shell takes ownership of the delegate.
167 virtual NewWindowDelegate* CreateNewWindowDelegate() = 0; 168 virtual NewWindowDelegate* CreateNewWindowDelegate() = 0;
168 169
170 // Creates a media delegate. Shell takes ownership of the delegate.
171 virtual MediaDelegate* CreateMediaDelegate() = 0;
172
169 // Creates a user action client. Shell takes ownership of the object. 173 // Creates a user action client. Shell takes ownership of the object.
170 virtual aura::client::UserActionClient* CreateUserActionClient() = 0; 174 virtual aura::client::UserActionClient* CreateUserActionClient() = 0;
171 175
172 // Records that the user performed an action. 176 // Records that the user performed an action.
173 virtual void RecordUserMetricsAction(UserMetricsAction action) = 0; 177 virtual void RecordUserMetricsAction(UserMetricsAction action) = 0;
174 178
175 // Handles the Next Track Media shortcut key.
176 virtual void HandleMediaNextTrack() = 0;
177
178 // Handles the Play/Pause Toggle Media shortcut key.
179 virtual void HandleMediaPlayPause() = 0;
180
181 // Handles the Previous Track Media shortcut key.
182 virtual void HandleMediaPrevTrack() = 0;
183
184 // Creates a menu model of the context for the |root_window|. 179 // Creates a menu model of the context for the |root_window|.
185 virtual ui::MenuModel* CreateContextMenu(aura::Window* root_window) = 0; 180 virtual ui::MenuModel* CreateContextMenu(aura::Window* root_window) = 0;
186 181
187 // Creates a root window host factory. Shell takes ownership of the returned 182 // Creates a root window host factory. Shell takes ownership of the returned
188 // value. 183 // value.
189 virtual RootWindowHostFactory* CreateRootWindowHostFactory() = 0; 184 virtual RootWindowHostFactory* CreateRootWindowHostFactory() = 0;
190 185
191 // Get the product name. 186 // Get the product name.
192 virtual base::string16 GetProductName() const = 0; 187 virtual base::string16 GetProductName() const = 0;
193 }; 188 };
194 189
195 } // namespace ash 190 } // namespace ash
196 191
197 #endif // ASH_SHELL_DELEGATE_H_ 192 #endif // ASH_SHELL_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698