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

Side by Side Diff: ui/file_manager/video_player/js/media_controls.js

Issue 676633002: Remove file-level 'use strict' from file_manager. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 1 month 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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 'use strict';
6
7 /** 5 /**
8 * @fileoverview MediaControls class implements media playback controls 6 * @fileoverview MediaControls class implements media playback controls
9 * that exist outside of the audio/video HTML element. 7 * that exist outside of the audio/video HTML element.
10 */ 8 */
11 9
12 /** 10 /**
13 * @param {HTMLElement} containerElement The container for the controls. 11 * @param {HTMLElement} containerElement The container for the controls.
14 * @param {function} onMediaError Function to display an error message. 12 * @param {function} onMediaError Function to display an error message.
15 * @constructor 13 * @constructor
16 */ 14 */
(...skipping 1242 matching lines...) Expand 10 before | Expand all | Expand 10 after
1259 AudioControls.prototype.onAdvanceClick_ = function(forward) { 1257 AudioControls.prototype.onAdvanceClick_ = function(forward) {
1260 if (!forward && 1258 if (!forward &&
1261 (this.getMedia().currentTime > AudioControls.TRACK_RESTART_THRESHOLD)) { 1259 (this.getMedia().currentTime > AudioControls.TRACK_RESTART_THRESHOLD)) {
1262 // We are far enough from the beginning of the current track. 1260 // We are far enough from the beginning of the current track.
1263 // Restart it instead of than skipping to the previous one. 1261 // Restart it instead of than skipping to the previous one.
1264 this.getMedia().currentTime = 0; 1262 this.getMedia().currentTime = 0;
1265 } else { 1263 } else {
1266 this.advanceTrack_(forward); 1264 this.advanceTrack_(forward);
1267 } 1265 }
1268 }; 1266 };
OLDNEW
« no previous file with comments | « ui/file_manager/video_player/js/error_util.js ('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