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

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

Issue 528733002: Video Player: Restyle Files.app Cast Selection Menu (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Localize the string Created 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ui/file_manager/video_player/css/cast_menu.css ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/file_manager/video_player/js/video_player.js
diff --git a/ui/file_manager/video_player/js/video_player.js b/ui/file_manager/video_player/js/video_player.js
index 5c581a812efa26e998a735f18dfe9bc22c3d8865..6ea56b53d45e457b521c4d77b698ab7bd989b7b9 100644
--- a/ui/file_manager/video_player/js/video_player.js
+++ b/ui/file_manager/video_player/js/video_player.js
@@ -252,6 +252,10 @@ VideoPlayer.prototype.prepare = function(videos) {
else
videoPlayerElement.removeAttribute('multiple');
+ document.querySelector('#cast-menu').setAttribute(
+ 'playon-text',
+ loadTimeData.getString('VIDEO_PLAYER_PLAY_ON'));
+
document.addEventListener('keydown', reloadVideo);
document.addEventListener('click', reloadVideo);
};
« no previous file with comments | « ui/file_manager/video_player/css/cast_menu.css ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698