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

Side by Side Diff: chrome/browser/resources/file_manager/js/media/media_controls.js

Issue 9583009: [File Manager] Cleanup: Moving js/css/html files to dedicated directories (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 2011->2012 Created 8 years, 9 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 unified diff | Download patch | Annotate | Revision Log
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 /** 5 /**
6 * @fileoverview MediaControls class implements media playback controls 6 * @fileoverview MediaControls class implements media playback controls
7 * that exist outside of the audio/video HTML element. 7 * that exist outside of the audio/video HTML element.
8 */ 8 */
9 9
10 /** 10 /**
(...skipping 912 matching lines...) Expand 10 before | Expand all | Expand 10 after
923 AudioControls.prototype.onAdvanceClick_ = function(forward) { 923 AudioControls.prototype.onAdvanceClick_ = function(forward) {
924 if (!forward && 924 if (!forward &&
925 (this.getMedia().currentTime > AudioControls.TRACK_RESTART_THRESHOLD)) { 925 (this.getMedia().currentTime > AudioControls.TRACK_RESTART_THRESHOLD)) {
926 // We are far enough from the beginning of the current track. 926 // We are far enough from the beginning of the current track.
927 // Restart it instead of than skipping to the previous one. 927 // Restart it instead of than skipping to the previous one.
928 this.getMedia().currentTime = 0; 928 this.getMedia().currentTime = 0;
929 } else { 929 } else {
930 this.advanceTrack_(forward); 930 this.advanceTrack_(forward);
931 } 931 }
932 }; 932 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698