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

Side by Side Diff: ui/file_manager/file_manager/foreground/js/file_selection.js

Issue 673573002: Files.app: Move fileNameInput element under the dialogFooter class. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 1 month 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 * The current selection object. 8 * The current selection object.
9 * 9 *
10 * @param {FileManager} fileManager FileManager instance. 10 * @param {FileManager} fileManager FileManager instance.
(...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after
153 * This object encapsulates everything related to current selection. 153 * This object encapsulates everything related to current selection.
154 * 154 *
155 * @param {FileManager} fileManager File manager instance. 155 * @param {FileManager} fileManager File manager instance.
156 * @extends {cr.EventTarget} 156 * @extends {cr.EventTarget}
157 * @constructor 157 * @constructor
158 */ 158 */
159 function FileSelectionHandler(fileManager) { 159 function FileSelectionHandler(fileManager) {
160 this.fileManager_ = fileManager; 160 this.fileManager_ = fileManager;
161 // TODO(dgozman): create a shared object with most of UI elements. 161 // TODO(dgozman): create a shared object with most of UI elements.
162 this.okButton_ = fileManager.ui.dialogFooter.okButton; 162 this.okButton_ = fileManager.ui.dialogFooter.okButton;
163 this.filenameInput_ = fileManager.filenameInput_; 163 this.filenameInput_ = fileManager.ui.dialogFooter.filenameInput;
164 this.previewPanel_ = fileManager.previewPanel_; 164 this.previewPanel_ = fileManager.previewPanel_;
165 this.taskItems_ = fileManager.taskItems_; 165 this.taskItems_ = fileManager.taskItems_;
166 } 166 }
167 167
168 /** 168 /**
169 * Create the temporary disabled action menu item. 169 * Create the temporary disabled action menu item.
170 * @return {Object} Created disabled item. 170 * @return {Object} Created disabled item.
171 * @private 171 * @private
172 */ 172 */
173 FileSelectionHandler.createTemporaryDisabledActionMenuItem_ = function() { 173 FileSelectionHandler.createTemporaryDisabledActionMenuItem_ = function() {
(...skipping 181 matching lines...) Expand 10 before | Expand all | Expand 10 after
355 355
356 // Sync the commands availability. 356 // Sync the commands availability.
357 if (this.fileManager_.commandHandler) 357 if (this.fileManager_.commandHandler)
358 this.fileManager_.commandHandler.updateAvailability(); 358 this.fileManager_.commandHandler.updateAvailability();
359 359
360 // Inform tests it's OK to click buttons now. 360 // Inform tests it's OK to click buttons now.
361 if (selection.totalCount > 0) { 361 if (selection.totalCount > 0) {
362 util.testSendMessage('selection-change-complete'); 362 util.testSendMessage('selection-change-complete');
363 } 363 }
364 }; 364 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698