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

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

Issue 2577123004: Export the dialog type where Quick View is opened. (Closed)
Patch Set: Created 4 years 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. 9 * dialogs, as well as the full screen file manager application.
10 * 10 *
(...skipping 530 matching lines...) Expand 10 before | Expand all | Expand 10 after
541 541
542 this.quickViewModel_ = new QuickViewModel(); 542 this.quickViewModel_ = new QuickViewModel();
543 /**@private {!FilesQuickView} */ 543 /**@private {!FilesQuickView} */
544 var quickView = /** @type {!FilesQuickView} */ 544 var quickView = /** @type {!FilesQuickView} */
545 (queryRequiredElement('#quick-view')); 545 (queryRequiredElement('#quick-view'));
546 var fileListSelectionModel = /** @type {!cr.ui.ListSelectionModel} */ ( 546 var fileListSelectionModel = /** @type {!cr.ui.ListSelectionModel} */ (
547 this.directoryModel_.getFileListSelection()); 547 this.directoryModel_.getFileListSelection());
548 chrome.commandLinePrivate.hasSwitch( 548 chrome.commandLinePrivate.hasSwitch(
549 'disable-files-quick-view', function(disabled) { 549 'disable-files-quick-view', function(disabled) {
550 if (!disabled) { 550 if (!disabled) {
551 this.quickViewUma_ = 551 this.quickViewUma_ = new QuickViewUma(
552 new QuickViewUma(assert(this.volumeManager_)); 552 assert(this.volumeManager_), assert(this.dialogType));
553 this.quickViewController_ = new QuickViewController( 553 this.quickViewController_ = new QuickViewController(
554 quickView, assert(this.metadataModel_), 554 quickView, assert(this.metadataModel_),
555 assert(this.selectionHandler_), 555 assert(this.selectionHandler_),
556 assert(this.ui_.listContainer), assert(this.quickViewModel_), 556 assert(this.ui_.listContainer), assert(this.quickViewModel_),
557 assert(this.taskController_), 557 assert(this.taskController_),
558 fileListSelectionModel, 558 fileListSelectionModel,
559 assert(this.quickViewUma_)); 559 assert(this.quickViewUma_));
560 this.metadataBoxController_ = new MetadataBoxController( 560 this.metadataBoxController_ = new MetadataBoxController(
561 this.metadataModel_, quickView.getFilesMetadataBox(), 561 this.metadataModel_, quickView.getFilesMetadataBox(),
562 quickView, this.quickViewModel_, this.fileMetadataFormatter_); 562 quickView, this.quickViewModel_, this.fileMetadataFormatter_);
(...skipping 902 matching lines...) Expand 10 before | Expand all | Expand 10 after
1465 FileManager.prototype.debugMe = function() { 1465 FileManager.prototype.debugMe = function() {
1466 var out = 'Debug information.\n'; 1466 var out = 'Debug information.\n';
1467 1467
1468 out += '1. VolumeManagerWrapper\n' + 1468 out += '1. VolumeManagerWrapper\n' +
1469 this.volumeManager_.toString() + '\n'; 1469 this.volumeManager_.toString() + '\n';
1470 1470
1471 out += 'End of debug information.'; 1471 out += 'End of debug information.';
1472 console.log(out); 1472 console.log(out);
1473 }; 1473 };
1474 })(); 1474 })();
OLDNEW
« no previous file with comments | « tools/metrics/histograms/histograms.xml ('k') | ui/file_manager/file_manager/foreground/js/quick_view_uma.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698