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

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

Issue 1056433003: Add button to add new FSP services to Files app. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Cleaned up. 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_, this.folderShortcutsModel_); 949 this.volumeManager_,
950 this.folderShortcutsModel_,
951 new NavigationModelCommandItem(
952 str('ADD_NEW_SERVICES_BUTTON_LABEL'),
953 'add' /* icon */,
954 function() {
955 this.ui.suggestAppsDialog.showProviders(function() {});
956 }.bind(this)));
950 957
951 this.ui_.initDirectoryTree(directoryTree); 958 this.ui_.initDirectoryTree(directoryTree);
952 }; 959 };
953 960
954 /** 961 /**
955 * Sets up the current directory during initialization. 962 * Sets up the current directory during initialization.
956 * @private 963 * @private
957 */ 964 */
958 FileManager.prototype.setupCurrentDirectory_ = function() { 965 FileManager.prototype.setupCurrentDirectory_ = function() {
959 var tracker = this.directoryModel_.createDirectoryChangeTracker(); 966 var tracker = this.directoryModel_.createDirectoryChangeTracker();
(...skipping 335 matching lines...) Expand 10 before | Expand all | Expand 10 after
1295 out += this.initializeQueue_.pendingTasks[key].toString() + '\n'; 1302 out += this.initializeQueue_.pendingTasks[key].toString() + '\n';
1296 }.bind(this)); 1303 }.bind(this));
1297 1304
1298 out += '2. VolumeManagerWrapper\n' + 1305 out += '2. VolumeManagerWrapper\n' +
1299 this.volumeManager_.toString() + '\n'; 1306 this.volumeManager_.toString() + '\n';
1300 1307
1301 out += 'End of debug information.'; 1308 out += 'End of debug information.';
1302 console.log(out); 1309 console.log(out);
1303 }; 1310 };
1304 })(); 1311 })();
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698