OLD | NEW |
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 'use strict'; | |
6 | |
7 /** | 5 /** |
8 * ImageEditor is the top level object that holds together and connects | 6 * ImageEditor is the top level object that holds together and connects |
9 * everything needed for image editing. | 7 * everything needed for image editing. |
10 * | 8 * |
11 * @param {Viewport} viewport The viewport. | 9 * @param {Viewport} viewport The viewport. |
12 * @param {ImageView} imageView The ImageView containing the images to edit. | 10 * @param {ImageView} imageView The ImageView containing the images to edit. |
13 * @param {ImageEditor.Prompt} prompt Prompt instance. | 11 * @param {ImageEditor.Prompt} prompt Prompt instance. |
14 * @param {Object} DOMContainers Various DOM containers required for the editor. | 12 * @param {Object} DOMContainers Various DOM containers required for the editor. |
15 * @param {Array.<ImageEditor.Mode>} modes Available editor modes. | 13 * @param {Array.<ImageEditor.Mode>} modes Available editor modes. |
16 * @param {function(string, ...[string])} displayStringFunction String | 14 * @param {function(string, ...[string])} displayStringFunction String |
(...skipping 1181 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1198 | 1196 |
1199 /** | 1197 /** |
1200 * Hide the prompt. | 1198 * Hide the prompt. |
1201 */ | 1199 */ |
1202 ImageEditor.Prompt.prototype.hide = function() { | 1200 ImageEditor.Prompt.prototype.hide = function() { |
1203 if (!this.prompt_) return; | 1201 if (!this.prompt_) return; |
1204 this.prompt_.setAttribute('state', 'fadeout'); | 1202 this.prompt_.setAttribute('state', 'fadeout'); |
1205 // Allow some time for the animation to play out. | 1203 // Allow some time for the animation to play out. |
1206 this.setTimer(this.reset.bind(this), 500); | 1204 this.setTimer(this.reset.bind(this), 500); |
1207 }; | 1205 }; |
OLD | NEW |