Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(4)

Side by Side Diff: ui/file_manager/gallery/js/gallery.js

Issue 839173003: Gallery: Fix enterMode. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | ui/file_manager/gallery/js/mosaic_mode.js » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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 };
OLDNEW
« no previous file with comments | « no previous file | ui/file_manager/gallery/js/mosaic_mode.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698