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

Side by Side Diff: ui/file_manager/gallery/js/image_editor/image_editor.js

Issue 1408533002: Turn on verbose flag for compiling file_manager. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Use type cast for createElement, fix indent. Created 5 years, 2 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 * ImageEditor is the top level object that holds together and connects 6 * ImageEditor is the top level object that holds together and connects
7 * everything needed for image editing. 7 * everything needed for image editing.
8 * 8 *
9 * @param {!Viewport} viewport The viewport. 9 * @param {!Viewport} viewport The viewport.
10 * @param {!ImageView} imageView The ImageView containing the images to edit. 10 * @param {!ImageView} imageView The ImageView containing the images to edit.
(...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after
187 for (var i = 0; i != this.modes_.length; i++) { 187 for (var i = 0; i != this.modes_.length; i++) {
188 var mode = this.modes_[i]; 188 var mode = this.modes_[i];
189 ImageUtil.setAttribute(assert(mode.button_), 'disabled', 189 ImageUtil.setAttribute(assert(mode.button_), 'disabled',
190 !mode.isApplicable()); 190 !mode.isApplicable());
191 } 191 }
192 }; 192 };
193 193
194 /** 194 /**
195 * Open the editing session for a new image. 195 * Open the editing session for a new image.
196 * 196 *
197 * @param {!Gallery.Item} item Gallery item. 197 * @param {!GalleryItem} item Gallery item.
198 * @param {!ImageView.Effect} effect Transition effect object. 198 * @param {!ImageView.Effect} effect Transition effect object.
199 * @param {function(function())} saveFunction Image save function. 199 * @param {function(function())} saveFunction Image save function.
200 * @param {function()} displayCallback Display callback. 200 * @param {function()} displayCallback Display callback.
201 * @param {function(!ImageView.LoadType, number, *=)} loadCallback Load 201 * @param {function(!ImageView.LoadType, number, *=)} loadCallback Load
202 * callback. 202 * callback.
203 */ 203 */
204 ImageEditor.prototype.openSession = function( 204 ImageEditor.prototype.openSession = function(
205 item, effect, saveFunction, displayCallback, loadCallback) { 205 item, effect, saveFunction, displayCallback, loadCallback) {
206 if (this.commandQueue_) 206 if (this.commandQueue_)
207 throw new Error('Session not closed'); 207 throw new Error('Session not closed');
(...skipping 1291 matching lines...) Expand 10 before | Expand all | Expand 10 after
1499 1499
1500 /** 1500 /**
1501 * Hide the prompt. 1501 * Hide the prompt.
1502 */ 1502 */
1503 ImageEditor.Prompt.prototype.hide = function() { 1503 ImageEditor.Prompt.prototype.hide = function() {
1504 if (!this.prompt_) return; 1504 if (!this.prompt_) return;
1505 this.prompt_.setAttribute('state', 'fadeout'); 1505 this.prompt_.setAttribute('state', 'fadeout');
1506 // Allow some time for the animation to play out. 1506 // Allow some time for the animation to play out.
1507 this.setTimer(this.reset.bind(this), 500); 1507 this.setTimer(this.reset.bind(this), 500);
1508 }; 1508 };
OLDNEW
« 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