| 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 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 60 this.initDom_(); | 60 this.initDom_(); |
| 61 this.initListeners_(); | 61 this.initListeners_(); |
| 62 } | 62 } |
| 63 | 63 |
| 64 /** | 64 /** |
| 65 * Gallery extends cr.EventTarget. | 65 * Gallery extends cr.EventTarget. |
| 66 */ | 66 */ |
| 67 Gallery.prototype.__proto__ = cr.EventTarget.prototype; | 67 Gallery.prototype.__proto__ = cr.EventTarget.prototype; |
| 68 | 68 |
| 69 /** | 69 /** |
| 70 * Tools fade-out timeout im milliseconds. | 70 * Tools fade-out timeout in milliseconds. |
| 71 * @const | 71 * @const |
| 72 * @type {number} | 72 * @type {number} |
| 73 */ | 73 */ |
| 74 Gallery.FADE_TIMEOUT = 3000; | 74 Gallery.FADE_TIMEOUT = 3000; |
| 75 | 75 |
| 76 /** | 76 /** |
| 77 * First time tools fade-out timeout im milliseconds. | 77 * First time tools fade-out timeout in milliseconds. |
| 78 * @const | 78 * @const |
| 79 * @type {number} | 79 * @type {number} |
| 80 */ | 80 */ |
| 81 Gallery.FIRST_FADE_TIMEOUT = 1000; | 81 Gallery.FIRST_FADE_TIMEOUT = 1000; |
| 82 | 82 |
| 83 /** | 83 /** |
| 84 * Time until mosaic is initialized in the background. Used to make gallery | 84 * Time until mosaic is initialized in the background. Used to make gallery |
| 85 * in the slide mode load faster. In miiliseconds. | 85 * in the slide mode load faster. In miiliseconds. |
| 86 * @const | 86 * @const |
| 87 * @type {number} | 87 * @type {number} |
| (...skipping 804 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 892 window.backgroundComponent. | 892 window.backgroundComponent. |
| 893 then(function(inBackgroundComponent) { | 893 then(function(inBackgroundComponent) { |
| 894 window.loadTimeData.data = inBackgroundComponent.stringData; | 894 window.loadTimeData.data = inBackgroundComponent.stringData; |
| 895 var gallery = new Gallery(inBackgroundComponent.volumeManager); | 895 var gallery = new Gallery(inBackgroundComponent.volumeManager); |
| 896 gallery.load(entries, entries); | 896 gallery.load(entries, entries); |
| 897 }). | 897 }). |
| 898 catch(function(error) { | 898 catch(function(error) { |
| 899 console.error(error.stack || error); | 899 console.error(error.stack || error); |
| 900 }); | 900 }); |
| 901 }); | 901 }); |
| OLD | NEW |