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

Unified Diff: ui/file_manager/gallery/js/image_editor/image_view.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
Index: ui/file_manager/gallery/js/image_editor/image_view.js
diff --git a/ui/file_manager/gallery/js/image_editor/image_view.js b/ui/file_manager/gallery/js/image_editor/image_view.js
index a96dd0b5a3992db857278e6d58cfb4bc3b2a41df..45f8d68d0b147d232e4947fedd8f03deecb64338 100644
--- a/ui/file_manager/gallery/js/image_editor/image_view.js
+++ b/ui/file_manager/gallery/js/image_editor/image_view.js
@@ -264,7 +264,7 @@ ImageView.prototype.load =
// Skip effects when reloading repeatedly very quickly.
var time = Date.now();
if (this.lastLoadTime_ &&
- (time - this.lastLoadTime_) < ImageView.FAST_SCROLL_INTERVAL) {
+ (time - this.lastLoadTime_) < ImageView.FAST_SCROLL_INTERVAL) {
effect = null;
}
this.lastLoadTime_ = time;
@@ -416,10 +416,9 @@ ImageView.prototype.unload = function(zoomToRect) {
this.setTransform_(this.screenImage_, this.viewport_, effect);
this.screenImage_.setAttribute('fade', true);
this.unloadTimer_ = setTimeout(function() {
- this.unloadTimer_ = null;
- this.unload(null /* force unload */);
- }.bind(this),
- effect.getSafeInterval());
+ this.unloadTimer_ = null;
+ this.unload(null /* force unload */);
+ }.bind(this), effect.getSafeInterval());
return;
}
this.container_.textContent = '';
@@ -698,10 +697,11 @@ ImageView.Effect.prototype.getTiming = function() { return this.timing_; };
* Obtains the CSS transformation string of the effect.
* @param {DOMCanvas} element Canvas element to be applied the transformation.
* @param {Viewport} viewport Current viewport.
- * @return CSS transformation description.
+ * @return {string} CSS transformation description.
*/
ImageView.Effect.prototype.transform = function(element, viewport) {
throw new Error('Not implemented.');
+ return '';
};
/**
« no previous file with comments | « ui/file_manager/gallery/js/image_editor/image_util.js ('k') | ui/file_manager/gallery/js/image_editor/viewport.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698