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

Side by Side Diff: chrome/browser/chromeos/extensions/media_player_event_router.h

Issue 10823439: Ash: Support "Next Song", "Previous Song", "Play/Pause" Multi Media buttons (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: fixed nits Created 8 years, 4 months 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
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 CHROME_BROWSER_CHROMEOS_EXTENSIONS_MEDIA_PLAYER_EVENT_ROUTER_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_EXTENSIONS_MEDIA_PLAYER_EVENT_ROUTER_H_
6 #define CHROME_BROWSER_CHROMEOS_EXTENSIONS_MEDIA_PLAYER_EVENT_ROUTER_H_ 6 #define CHROME_BROWSER_CHROMEOS_EXTENSIONS_MEDIA_PLAYER_EVENT_ROUTER_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 9
10 class Profile; 10 class Profile;
11 template <typename T> struct DefaultSingletonTraits; 11 template <typename T> struct DefaultSingletonTraits;
12 12
13 // Event router class for events related to Mediaplayer. 13 // Event router class for events related to Mediaplayer.
14 class ExtensionMediaPlayerEventRouter { 14 class ExtensionMediaPlayerEventRouter {
15 public: 15 public:
16 static ExtensionMediaPlayerEventRouter* GetInstance(); 16 static ExtensionMediaPlayerEventRouter* GetInstance();
17 17
18 void Init(Profile* profile); 18 void Init(Profile* profile);
19 19
20 // Send notification that next-track shortcut key was pressed.
21 void NotifyNextTrack();
22
23 // Send notification that playlist changed.
20 void NotifyPlaylistChanged(); 24 void NotifyPlaylistChanged();
21 25
26 // Send notification that previous-track shortcut key was pressed.
27 void NotifyPrevTrack();
28
29 // Send notification that play/pause shortcut key was pressed.
30 void NotifyTogglePlayState();
31
22 private: 32 private:
23 Profile* profile_; 33 Profile* profile_;
24 34
25 ExtensionMediaPlayerEventRouter(); 35 ExtensionMediaPlayerEventRouter();
26 friend struct DefaultSingletonTraits<ExtensionMediaPlayerEventRouter>; 36 friend struct DefaultSingletonTraits<ExtensionMediaPlayerEventRouter>;
27 DISALLOW_COPY_AND_ASSIGN(ExtensionMediaPlayerEventRouter); 37 DISALLOW_COPY_AND_ASSIGN(ExtensionMediaPlayerEventRouter);
28 }; 38 };
29 39
30 #endif // CHROME_BROWSER_CHROMEOS_EXTENSIONS_MEDIA_PLAYER_EVENT_ROUTER_H_ 40 #endif // CHROME_BROWSER_CHROMEOS_EXTENSIONS_MEDIA_PLAYER_EVENT_ROUTER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698