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

Unified Diff: ui/file_manager/video_player/js/media_controls.js

Issue 603273006: Move the casting icon to media controls. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 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
Index: ui/file_manager/video_player/js/media_controls.js
diff --git a/ui/file_manager/video_player/js/media_controls.js b/ui/file_manager/video_player/js/media_controls.js
index 84937dbc944c2377367a473c4460c7218183d857..095ba600d7bb2c8d3ae11d46bd889912b43a22ea 100644
--- a/ui/file_manager/video_player/js/media_controls.js
+++ b/ui/file_manager/video_player/js/media_controls.js
@@ -972,6 +972,13 @@ function VideoControls(containerElement, onMediaError, stringFunction,
this.initTimeControls(true /* show seek mark */);
this.initVolumeControls();
+ // Create the cast button.
+ this.castButton_ = this.createButton('cast menubutton');
+ this.castButton_.setAttribute('menu', '#cast-menu');
+ this.castButton_.setAttribute(
+ 'label', this.stringFunction_('VIDEO_PLAYER_PLAY_ON'));
+ cr.ui.decorate(this.castButton_, cr.ui.MenuButton);
+
if (opt_fullScreenToggle) {
this.fullscreenButton_ =
this.createButton('fullscreen', opt_fullScreenToggle);
« no previous file with comments | « ui/file_manager/video_player/images/media/media_fullscreen_hover.png ('k') | ui/file_manager/video_player/js/video_player.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698