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

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

Issue 951443002: Files.app: Make delete button on the toolbar standard button instead of CommandButton. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add @const for const members of ToolbarController. Created 5 years, 10 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
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 /** 5 /**
6 * FileManager constructor. 6 * FileManager constructor.
7 * 7 *
8 * FileManager objects encapsulate the functionality of the file selector 8 * FileManager objects encapsulate the functionality of the file selector
9 * dialogs, as well as the full screen file manager application (though the 9 * dialogs, as well as the full screen file manager application (though the
10 * latter is not yet implemented). 10 * latter is not yet implemented).
(...skipping 402 matching lines...) Expand 10 before | Expand all | Expand 10 after
413 this.ui_.listContainer, 413 this.ui_.listContainer,
414 this.spinnerController_, 414 this.spinnerController_,
415 this.commandHandler, 415 this.commandHandler,
416 this.selectionHandler_); 416 this.selectionHandler_);
417 this.gearMenuController_ = new GearMenuController( 417 this.gearMenuController_ = new GearMenuController(
418 this.ui_.gearButton, 418 this.ui_.gearButton,
419 this.ui_.gearMenu, 419 this.ui_.gearMenu,
420 this.directoryModel_, 420 this.directoryModel_,
421 this.commandHandler); 421 this.commandHandler);
422 this.toolbarController_ = new ToolbarController( 422 this.toolbarController_ = new ToolbarController(
423 this.ui_.cancelSelectionButton, 423 this.ui_.toolbar,
424 this.ui_.cancelSelectionButtonWrapper,
425 this.ui_.filesSelectedLabel,
426 this.ui_.dialogNavigationList, 424 this.ui_.dialogNavigationList,
427 this.selectionHandler_, 425 this.selectionHandler_,
428 this.directoryModel_.getFileListSelection()); 426 this.directoryModel_);
429 427
430 importer.importEnabled().then( 428 importer.importEnabled().then(
431 function(enabled) { 429 function(enabled) {
432 if (enabled) { 430 if (enabled) {
433 this.importController_ = new importer.ImportController( 431 this.importController_ = new importer.ImportController(
434 new importer.RuntimeControllerEnvironment( 432 new importer.RuntimeControllerEnvironment(
435 this, 433 this,
436 this.selectionHandler_), 434 this.selectionHandler_),
437 /** @type {!importer.MediaScanner} */ ( 435 /** @type {!importer.MediaScanner} */ (
438 this.mediaScanner_), 436 this.mediaScanner_),
(...skipping 864 matching lines...) Expand 10 before | Expand all | Expand 10 after
1303 out += this.initializeQueue_.pendingTasks[key].toString() + '\n'; 1301 out += this.initializeQueue_.pendingTasks[key].toString() + '\n';
1304 }.bind(this)); 1302 }.bind(this));
1305 1303
1306 out += '2. VolumeManagerWrapper\n' + 1304 out += '2. VolumeManagerWrapper\n' +
1307 this.volumeManager_.toString() + '\n'; 1305 this.volumeManager_.toString() + '\n';
1308 1306
1309 out += 'End of debug information.'; 1307 out += 'End of debug information.';
1310 console.log(out); 1308 console.log(out);
1311 }; 1309 };
1312 })(); 1310 })();
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698