Index: chrome/browser/chromeos/extensions/media_player_event_router.cc |
diff --git a/chrome/browser/chromeos/extensions/media_player_event_router.cc b/chrome/browser/chromeos/extensions/media_player_event_router.cc |
index 9d3fbc6bc5caa0d6638843f493e3c2d6e7f4bfaf..08bef38dac21a046dc6d997d7318be172b80cf4c 100644 |
--- a/chrome/browser/chromeos/extensions/media_player_event_router.cc |
+++ b/chrome/browser/chromeos/extensions/media_player_event_router.cc |
@@ -21,6 +21,14 @@ void ExtensionMediaPlayerEventRouter::Init(Profile* profile) { |
profile_ = profile; |
} |
+void ExtensionMediaPlayerEventRouter::NotifyNextTrack() { |
+ if (profile_ && profile_->GetExtensionEventRouter()) { |
+ scoped_ptr<ListValue> args(new ListValue()); |
+ profile_->GetExtensionEventRouter()->DispatchEventToRenderers( |
+ "mediaPlayerPrivate.onNextTrack", args.Pass(), NULL, GURL()); |
Daniel Erat
2012/08/21 20:38:42
nit: indent four spaces beyond previous line
sschmitz
2012/08/21 20:55:48
Done.
|
+ } |
+} |
+ |
void ExtensionMediaPlayerEventRouter::NotifyPlaylistChanged() { |
if (profile_ && profile_->GetExtensionEventRouter()) { |
scoped_ptr<ListValue> args(new ListValue()); |
@@ -28,3 +36,19 @@ void ExtensionMediaPlayerEventRouter::NotifyPlaylistChanged() { |
"mediaPlayerPrivate.onPlaylistChanged", args.Pass(), NULL, GURL()); |
} |
} |
+ |
+void ExtensionMediaPlayerEventRouter::NotifyPrevTrack() { |
+ if (profile_ && profile_->GetExtensionEventRouter()) { |
+ scoped_ptr<ListValue> args(new ListValue()); |
+ profile_->GetExtensionEventRouter()->DispatchEventToRenderers( |
+ "mediaPlayerPrivate.onPrevTrack", args.Pass(), NULL, GURL()); |
Daniel Erat
2012/08/21 20:38:42
ditto
sschmitz
2012/08/21 20:55:48
Done.
|
+ } |
+} |
+ |
+void ExtensionMediaPlayerEventRouter::NotifyTogglePlayState() { |
+ if (profile_ && profile_->GetExtensionEventRouter()) { |
+ scoped_ptr<ListValue> args(new ListValue()); |
+ profile_->GetExtensionEventRouter()->DispatchEventToRenderers( |
+ "mediaPlayerPrivate.onTogglePlayState", args.Pass(), NULL, GURL()); |
Daniel Erat
2012/08/21 20:38:42
ditto
sschmitz
2012/08/21 20:55:48
Done.
|
+ } |
+} |