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

Unified Diff: ui/file_manager/file_manager/audio_player/elements/audio_player.js

Issue 386043004: Audio Player: Add support for Media Keys (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix nit Created 6 years, 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/file_manager/file_manager/audio_player/elements/audio_player.js
diff --git a/ui/file_manager/file_manager/audio_player/elements/audio_player.js b/ui/file_manager/file_manager/audio_player/elements/audio_player.js
index eb9600c4016cc184b3fcd6b26ee54edfd8a6194c..4ddd4346d2fc5374de992e00c8e18bd42aad9f5d 100644
--- a/ui/file_manager/file_manager/audio_player/elements/audio_player.js
+++ b/ui/file_manager/file_manager/audio_player/elements/audio_player.js
@@ -339,6 +339,19 @@ Polymer('audio-player', {
if (this.audioController.volumeSliderShown && this.model.volume > 9)
this.model.volume -= 10;
break;
+ case 'MediaNextTrack':
+ this.onControllerNextClicked();
+ break;
+ case 'MediaPlayPause':
+ var playing = this.audioController.playing;
+ this.onControllerPlayingChanged(playing, !playing);
+ break;
+ case 'MediaPreviousTrack':
+ this.onControllerPreviousClicked();
+ break;
+ case 'MediaStop':
+ // TODO: Define "Stop" behavior.
+ break;
}
},
});
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698