| 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 /** | 5 /** |
| 6 * Overrided metadata worker's path. | 6 * Overrided metadata worker's path. |
| 7 * @type {string} | 7 * @type {string} |
| 8 */ | 8 */ |
| 9 ContentProvider.WORKER_SCRIPT = '/js/metadata_worker.js'; | 9 ContentProvider.WORKER_SCRIPT = '/js/metadata_worker.js'; |
| 10 | 10 |
| (...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 139 | 139 |
| 140 this.modeButton_ = queryRequiredElement(this.toolbar_, 'button.mode'); | 140 this.modeButton_ = queryRequiredElement(this.toolbar_, 'button.mode'); |
| 141 this.modeButton_.addEventListener('click', | 141 this.modeButton_.addEventListener('click', |
| 142 this.toggleMode_.bind(this, undefined)); | 142 this.toggleMode_.bind(this, undefined)); |
| 143 | 143 |
| 144 this.mosaicMode_ = new MosaicMode(content, | 144 this.mosaicMode_ = new MosaicMode(content, |
| 145 this.errorBanner_, | 145 this.errorBanner_, |
| 146 this.dataModel_, | 146 this.dataModel_, |
| 147 this.selectionModel_, | 147 this.selectionModel_, |
| 148 this.volumeManager_, | 148 this.volumeManager_, |
| 149 this.toggleMode_.bind(this)); | 149 this.toggleMode_.bind(this, undefined)); |
| 150 | 150 |
| 151 this.slideMode_ = new SlideMode(this.container_, | 151 this.slideMode_ = new SlideMode(this.container_, |
| 152 content, | 152 content, |
| 153 this.toolbar_, | 153 this.toolbar_, |
| 154 this.prompt_, | 154 this.prompt_, |
| 155 this.errorBanner_, | 155 this.errorBanner_, |
| 156 this.dataModel_, | 156 this.dataModel_, |
| 157 this.selectionModel_, | 157 this.selectionModel_, |
| 158 this.context_, | 158 this.context_, |
| 159 this.volumeManager_, | 159 this.volumeManager_, |
| (...skipping 734 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 894 }; | 894 }; |
| 895 | 895 |
| 896 /** | 896 /** |
| 897 * Loads entries. | 897 * Loads entries. |
| 898 * @param {!Array.<Entry>} entries Array of entries. | 898 * @param {!Array.<Entry>} entries Array of entries. |
| 899 * @param {!Array.<Entry>} selectedEntries Array of selected entries. | 899 * @param {!Array.<Entry>} selectedEntries Array of selected entries. |
| 900 */ | 900 */ |
| 901 window.loadEntries = function(entries, selectedEntries) { | 901 window.loadEntries = function(entries, selectedEntries) { |
| 902 gallery.load(entries, selectedEntries); | 902 gallery.load(entries, selectedEntries); |
| 903 }; | 903 }; |
| OLD | NEW |