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

Unified Diff: ui/file_manager/gallery/js/image_editor/image_editor.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_editor.js
diff --git a/ui/file_manager/gallery/js/image_editor/image_editor.js b/ui/file_manager/gallery/js/image_editor/image_editor.js
index 7b0d5ef9301817e596024caa9879cfc211da5874..410b2bfec6c44ec41e5f7d3b41427e771beedc00 100644
--- a/ui/file_manager/gallery/js/image_editor/image_editor.js
+++ b/ui/file_manager/gallery/js/image_editor/image_editor.js
@@ -118,16 +118,16 @@ ImageEditor.prototype.openSession = function(
var self = this;
this.imageView_.load(
item, effect, displayCallback, function(loadType, delay, error) {
- self.lockUI(false);
- self.commandQueue_ = new CommandQueue(
- self.container_.ownerDocument,
- self.imageView_.getCanvas(),
- saveFunction);
- self.commandQueue_.attachUI(
- self.getImageView(), self.getPrompt(), self.lockUI.bind(self));
- self.updateUndoRedo();
- loadCallback(loadType, delay, error);
- });
+ self.lockUI(false);
+ self.commandQueue_ = new CommandQueue(
+ self.container_.ownerDocument,
+ self.imageView_.getCanvas(),
+ saveFunction);
+ self.commandQueue_.attachUI(
+ self.getImageView(), self.getPrompt(), self.lockUI.bind(self));
+ self.updateUndoRedo();
+ loadCallback(loadType, delay, error);
+ });
};
/**
@@ -807,8 +807,9 @@ ImageEditor.MouseControl.prototype.onTouchMove = function(e) {
return;
if (this.touchStartInfo_ && !this.dragHappened_) {
- var tapCircle = new Circle(this.touchStartInfo_.x, this.touchStartInfo_.y,
- ImageEditor.MouseControl.MAX_MOVEMENT_FOR_TAP_);
+ var tapCircle = new Circle(
+ this.touchStartInfo_.x, this.touchStartInfo_.y,
+ ImageEditor.MouseControl.MAX_MOVEMENT_FOR_TAP_);
this.dragHappened_ = !tapCircle.inside(position.x, position.y);
}
if (this.dragHandler_ && this.dragHappened_) {
@@ -1128,9 +1129,9 @@ ImageEditor.Prompt.prototype.setTimer = function(callback, timeout) {
*
* @param {string} text The prompt text.
* @param {number} timeout Timeout in ms.
- * @param {...Object} var_formatArgs varArgs for the formatting function.
+ * @param {...Object} var_args varArgs for the formatting function.
*/
-ImageEditor.Prompt.prototype.show = function(text, timeout, var_formatArgs) {
+ImageEditor.Prompt.prototype.show = function(text, timeout, var_args) {
var args = [text].concat(Array.prototype.slice.call(arguments, 2));
var message = this.displayStringFunction_.apply(null, args);
this.showStringAt('center', message, timeout);
@@ -1142,10 +1143,10 @@ ImageEditor.Prompt.prototype.show = function(text, timeout, var_formatArgs) {
* @param {string} pos The 'pos' attribute value.
* @param {string} text The prompt text.
* @param {number} timeout Timeout in ms.
- * @param {...Object} var_formatArgs varArgs for the formatting function.
+ * @param {...Object} var_args varArgs for the formatting function.
*/
ImageEditor.Prompt.prototype.showAt = function(
- pos, text, timeout, var_formatArgs) {
+ pos, text, timeout, var_args) {
var args = [text].concat(Array.prototype.slice.call(arguments, 3));
var message = this.displayStringFunction_.apply(null, args);
this.showStringAt(pos, message, timeout);
« no previous file with comments | « ui/file_manager/gallery/js/image_editor/image_adjust.js ('k') | ui/file_manager/gallery/js/image_editor/image_encoder.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698