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

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

Issue 571453002: Correct indentation, JSDoc, etc... to comply with closure linter. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase 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
« no previous file with comments | « ui/file_manager/video_player/js/cast/caster.js ('k') | ui/file_manager/video_player/js/video_player.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 8d63495b2e60d3e47deef5da9cfb806d94d8ee51..b7694302f9ad5653598cca64aa5a1f37a78c5b3d 100644
--- a/ui/file_manager/video_player/js/media_controls.js
+++ b/ui/file_manager/video_player/js/media_controls.js
@@ -746,15 +746,15 @@ MediaControls.AnimatedSlider.prototype.setValueToUI_ = function(value) {
var oldValue = this.getValueFromUI_();
var step = 0;
this.animationInterval_ = setInterval(function() {
- step++;
- var currentValue = oldValue +
- (value - oldValue) * (step / MediaControls.AnimatedSlider.STEPS);
- MediaControls.Slider.prototype.setValueToUI_.call(this, currentValue);
- if (step == MediaControls.AnimatedSlider.STEPS) {
- clearInterval(this.animationInterval_);
- }
- }.bind(this),
- MediaControls.AnimatedSlider.DURATION / MediaControls.AnimatedSlider.STEPS);
+ step++;
+ var currentValue = oldValue +
+ (value - oldValue) * (step / MediaControls.AnimatedSlider.STEPS);
+ MediaControls.Slider.prototype.setValueToUI_.call(this, currentValue);
+ if (step == MediaControls.AnimatedSlider.STEPS) {
+ clearInterval(this.animationInterval_);
+ }
+ }.bind(this),
+ MediaControls.AnimatedSlider.DURATION / MediaControls.AnimatedSlider.STEPS);
};
/**
@@ -963,7 +963,7 @@ MediaControls.PreciseSlider.prototype.onInputDrag_ = function(on) {
* @constructor
*/
function VideoControls(containerElement, onMediaError, stringFunction,
- opt_fullScreenToggle, opt_stateIconParent) {
+ opt_fullScreenToggle, opt_stateIconParent) {
MediaControls.call(this, containerElement, onMediaError);
this.stringFunction_ = stringFunction;
« no previous file with comments | « ui/file_manager/video_player/js/cast/caster.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