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

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

Issue 1058873004: Revert of Add button to add new FSP services to Files app. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 8 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 928 matching lines...) Expand 10 before | Expand all | Expand 10 after
939 var directoryTree = /** @type {DirectoryTree} */ 939 var directoryTree = /** @type {DirectoryTree} */
940 (this.dialogDom_.querySelector('#directory-tree')); 940 (this.dialogDom_.querySelector('#directory-tree'));
941 var fakeEntriesVisible = 941 var fakeEntriesVisible =
942 this.dialogType !== DialogType.SELECT_SAVEAS_FILE; 942 this.dialogType !== DialogType.SELECT_SAVEAS_FILE;
943 DirectoryTree.decorate(directoryTree, 943 DirectoryTree.decorate(directoryTree,
944 assert(this.directoryModel_), 944 assert(this.directoryModel_),
945 assert(this.volumeManager_), 945 assert(this.volumeManager_),
946 assert(this.metadataModel_), 946 assert(this.metadataModel_),
947 fakeEntriesVisible); 947 fakeEntriesVisible);
948 directoryTree.dataModel = new NavigationListModel( 948 directoryTree.dataModel = new NavigationListModel(
949 this.volumeManager_, 949 this.volumeManager_, this.folderShortcutsModel_);
950 this.folderShortcutsModel_,
951 new NavigationModelCommandItem(
952 util.queryDecoratedElement('#add-new-services', cr.ui.Command)));
953 950
954 this.ui_.initDirectoryTree(directoryTree); 951 this.ui_.initDirectoryTree(directoryTree);
955 }; 952 };
956 953
957 /** 954 /**
958 * Sets up the current directory during initialization. 955 * Sets up the current directory during initialization.
959 * @private 956 * @private
960 */ 957 */
961 FileManager.prototype.setupCurrentDirectory_ = function() { 958 FileManager.prototype.setupCurrentDirectory_ = function() {
962 var tracker = this.directoryModel_.createDirectoryChangeTracker(); 959 var tracker = this.directoryModel_.createDirectoryChangeTracker();
(...skipping 335 matching lines...) Expand 10 before | Expand all | Expand 10 after
1298 out += this.initializeQueue_.pendingTasks[key].toString() + '\n'; 1295 out += this.initializeQueue_.pendingTasks[key].toString() + '\n';
1299 }.bind(this)); 1296 }.bind(this));
1300 1297
1301 out += '2. VolumeManagerWrapper\n' + 1298 out += '2. VolumeManagerWrapper\n' +
1302 this.volumeManager_.toString() + '\n'; 1299 this.volumeManager_.toString() + '\n';
1303 1300
1304 out += 'End of debug information.'; 1301 out += 'End of debug information.';
1305 console.log(out); 1302 console.log(out);
1306 }; 1303 };
1307 })(); 1304 })();
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698