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

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

Issue 2565333002: Remove details panel. (Closed)
Patch Set: Rebased. 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 872 matching lines...) Expand 10 before | Expand all | Expand 10 after
883 this.volumeManager_, 883 this.volumeManager_,
884 this.historyLoader_, 884 this.historyLoader_,
885 this.dialogType == DialogType.FULL_PAGE); 885 this.dialogType == DialogType.FULL_PAGE);
886 var grid = queryRequiredElement('.thumbnail-grid', dom); 886 var grid = queryRequiredElement('.thumbnail-grid', dom);
887 FileGrid.decorate( 887 FileGrid.decorate(
888 grid, 888 grid,
889 this.metadataModel_, 889 this.metadataModel_,
890 this.volumeManager_, 890 this.volumeManager_,
891 this.historyLoader_); 891 this.historyLoader_);
892 892
893 var singlePanel = queryRequiredElement('#single-file-details', dom);
894 SingleFileDetailsPanel.decorate(
895 assertInstanceof(singlePanel, HTMLDivElement),
896 this.metadataModel_);
897
898 var multiPanel = queryRequiredElement('#multi-file-details', dom);
899 MultiFileDetailsPanel.decorate(
900 assertInstanceof(multiPanel, HTMLDivElement),
901 this.metadataModel_);
902
903 this.addHistoryObserver_(); 893 this.addHistoryObserver_();
904 894
905 this.ui_.initAdditionalUI( 895 this.ui_.initAdditionalUI(
906 assertInstanceof(table, FileTable), 896 assertInstanceof(table, FileTable),
907 assertInstanceof(grid, FileGrid), 897 assertInstanceof(grid, FileGrid),
908 assertInstanceof(singlePanel, SingleFileDetailsPanel),
909 assertInstanceof(multiPanel, MultiFileDetailsPanel),
910 new LocationLine( 898 new LocationLine(
911 queryRequiredElement('#location-breadcrumbs', dom), 899 queryRequiredElement('#location-breadcrumbs', dom),
912 this.volumeManager_)); 900 this.volumeManager_));
913 901
914 // Handle UI events. 902 // Handle UI events.
915 this.backgroundPage_.background.progressCenter.addPanel( 903 this.backgroundPage_.background.progressCenter.addPanel(
916 this.ui_.progressCenterPanel); 904 this.ui_.progressCenterPanel);
917 905
918 util.addIsFocusedMethod(); 906 util.addIsFocusedMethod();
919 907
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after
1036 this.appStateController_.initialize(this.ui_, this.directoryModel_); 1024 this.appStateController_.initialize(this.ui_, this.directoryModel_);
1037 1025
1038 if (this.dialogType === DialogType.FULL_PAGE) { 1026 if (this.dialogType === DialogType.FULL_PAGE) {
1039 this.columnVisibilityController_ = new ColumnVisibilityController( 1027 this.columnVisibilityController_ = new ColumnVisibilityController(
1040 this.ui_, this.directoryModel_, this.volumeManager_); 1028 this.ui_, this.directoryModel_, this.volumeManager_);
1041 } 1029 }
1042 1030
1043 // Create metadata update controller. 1031 // Create metadata update controller.
1044 this.metadataUpdateController_ = new MetadataUpdateController( 1032 this.metadataUpdateController_ = new MetadataUpdateController(
1045 this.ui_.listContainer, 1033 this.ui_.listContainer,
1046 assert(this.ui_.detailsContainer),
1047 this.directoryModel_, 1034 this.directoryModel_,
1048 this.metadataModel_, 1035 this.metadataModel_,
1049 this.fileMetadataFormatter_); 1036 this.fileMetadataFormatter_);
1050 1037
1051 // Create task controller. 1038 // Create task controller.
1052 this.taskController_ = new TaskController( 1039 this.taskController_ = new TaskController(
1053 this.dialogType, 1040 this.dialogType,
1054 this.volumeManager_, 1041 this.volumeManager_,
1055 this.ui_, 1042 this.ui_,
1056 this.metadataModel_, 1043 this.metadataModel_,
(...skipping 421 matching lines...) Expand 10 before | Expand all | Expand 10 after
1478 FileManager.prototype.debugMe = function() { 1465 FileManager.prototype.debugMe = function() {
1479 var out = 'Debug information.\n'; 1466 var out = 'Debug information.\n';
1480 1467
1481 out += '1. VolumeManagerWrapper\n' + 1468 out += '1. VolumeManagerWrapper\n' +
1482 this.volumeManager_.toString() + '\n'; 1469 this.volumeManager_.toString() + '\n';
1483 1470
1484 out += 'End of debug information.'; 1471 out += 'End of debug information.';
1485 console.log(out); 1472 console.log(out);
1486 }; 1473 };
1487 })(); 1474 })();
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698