| 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'; | 5 'use strict'; |
| 6 | 6 |
| 7 /** | 7 /** |
| 8 * Called from the main frame when unloading. | 8 * Called from the main frame when unloading. |
| 9 * @param {boolean=} opt_exiting True if the app is exiting. | 9 * @param {boolean=} opt_exiting True if the app is exiting. |
| 10 */ | 10 */ |
| (...skipping 219 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 230 /** | 230 /** |
| 231 * Gallery extends cr.EventTarget. | 231 * Gallery extends cr.EventTarget. |
| 232 */ | 232 */ |
| 233 Gallery.prototype.__proto__ = cr.EventTarget.prototype; | 233 Gallery.prototype.__proto__ = cr.EventTarget.prototype; |
| 234 | 234 |
| 235 /** | 235 /** |
| 236 * Tools fade-out timeout in milliseconds. | 236 * Tools fade-out timeout in milliseconds. |
| 237 * @const | 237 * @const |
| 238 * @type {number} | 238 * @type {number} |
| 239 */ | 239 */ |
| 240 Gallery.FADE_TIMEOUT = 3000; | 240 Gallery.FADE_TIMEOUT = 2000; |
| 241 | 241 |
| 242 /** | 242 /** |
| 243 * First time tools fade-out timeout in milliseconds. | 243 * First time tools fade-out timeout in milliseconds. |
| 244 * @const | 244 * @const |
| 245 * @type {number} | 245 * @type {number} |
| 246 */ | 246 */ |
| 247 Gallery.FIRST_FADE_TIMEOUT = 1000; | 247 Gallery.FIRST_FADE_TIMEOUT = 1000; |
| 248 | 248 |
| 249 /** | 249 /** |
| 250 * Time until mosaic is initialized in the background. Used to make gallery | 250 * Time until mosaic is initialized in the background. Used to make gallery |
| (...skipping 782 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1033 }; | 1033 }; |
| 1034 | 1034 |
| 1035 /** | 1035 /** |
| 1036 * Loads entries. | 1036 * Loads entries. |
| 1037 * @param {!Array.<Entry>} entries Array of entries. | 1037 * @param {!Array.<Entry>} entries Array of entries. |
| 1038 * @param {!Array.<Entry>} selectedEntries Array of selected entries. | 1038 * @param {!Array.<Entry>} selectedEntries Array of selected entries. |
| 1039 */ | 1039 */ |
| 1040 window.loadEntries = function(entries, selectedEntries) { | 1040 window.loadEntries = function(entries, selectedEntries) { |
| 1041 gallery.load(entries, selectedEntries); | 1041 gallery.load(entries, selectedEntries); |
| 1042 }; | 1042 }; |
| OLD | NEW |