| 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 236 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 247 * @const | 247 * @const |
| 248 * @type {number} | 248 * @type {number} |
| 249 */ | 249 */ |
| 250 Gallery.MOSAIC_BACKGROUND_INIT_DELAY = 1000; | 250 Gallery.MOSAIC_BACKGROUND_INIT_DELAY = 1000; |
| 251 | 251 |
| 252 /** | 252 /** |
| 253 * Types of metadata Gallery uses (to query the metadata cache). | 253 * Types of metadata Gallery uses (to query the metadata cache). |
| 254 * @const | 254 * @const |
| 255 * @type {string} | 255 * @type {string} |
| 256 */ | 256 */ |
| 257 Gallery.METADATA_TYPE = 'thumbnail|filesystem|media|streaming|drive'; | 257 Gallery.METADATA_TYPE = 'thumbnail|filesystem|media|drive'; |
| 258 | 258 |
| 259 /** | 259 /** |
| 260 * Initializes listeners. | 260 * Initializes listeners. |
| 261 * @private | 261 * @private |
| 262 */ | 262 */ |
| 263 Gallery.prototype.initListeners_ = function() { | 263 Gallery.prototype.initListeners_ = function() { |
| 264 this.keyDownBound_ = this.onKeyDown_.bind(this); | 264 this.keyDownBound_ = this.onKeyDown_.bind(this); |
| 265 this.document_.body.addEventListener('keydown', this.keyDownBound_); | 265 this.document_.body.addEventListener('keydown', this.keyDownBound_); |
| 266 | 266 |
| 267 this.inactivityWatcher_ = new MouseInactivityWatcher( | 267 this.inactivityWatcher_ = new MouseInactivityWatcher( |
| (...skipping 748 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1016 window.loadTimeData.data = backgroundComponents.stringData; | 1016 window.loadTimeData.data = backgroundComponents.stringData; |
| 1017 gallery = new Gallery(backgroundComponents.volumeManager); | 1017 gallery = new Gallery(backgroundComponents.volumeManager); |
| 1018 }; | 1018 }; |
| 1019 | 1019 |
| 1020 /** | 1020 /** |
| 1021 * Loads entries. | 1021 * Loads entries. |
| 1022 */ | 1022 */ |
| 1023 window.loadEntries = function(entries, selectedEntries) { | 1023 window.loadEntries = function(entries, selectedEntries) { |
| 1024 gallery.load(entries, selectedEntries); | 1024 gallery.load(entries, selectedEntries); |
| 1025 }; | 1025 }; |
| OLD | NEW |