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

Side by Side Diff: ui/file_manager/file_manager/foreground/js/file_manager_commands.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: Fixed tests. 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 * TODO(dzvorygin): Here we use this hack, since 'hidden' is standard 6 * TODO(dzvorygin): Here we use this hack, since 'hidden' is standard
7 * attribute and we can't use it's setter as usual. 7 * attribute and we can't use it's setter as usual.
8 * @param {boolean} value New value of hidden property. 8 * @param {boolean} value New value of hidden property.
9 */ 9 */
10 cr.ui.Command.prototype.setHidden = function(value) { 10 cr.ui.Command.prototype.setHidden = function(value) {
(...skipping 1221 matching lines...) Expand 10 before | Expand all | Expand 10 after
1232 CommandHandler.COMMANDS_['inspect-background'] = /** @type {Command} */ ({ 1232 CommandHandler.COMMANDS_['inspect-background'] = /** @type {Command} */ ({
1233 /** 1233 /**
1234 * @param {!Event} event Command event. 1234 * @param {!Event} event Command event.
1235 * @param {!FileManager} fileManager FileManager to use. 1235 * @param {!FileManager} fileManager FileManager to use.
1236 */ 1236 */
1237 execute: function(event, fileManager) { 1237 execute: function(event, fileManager) {
1238 chrome.fileManagerPrivate.openInspector('background'); 1238 chrome.fileManagerPrivate.openInspector('background');
1239 }, 1239 },
1240 canExecute: CommandUtil.canExecuteAlways 1240 canExecute: CommandUtil.canExecuteAlways
1241 }); 1241 });
1242
1243 /**
1244 * Shows a suggest dialog with new services to be added to the left nav.
1245 * @type {Command}
1246 */
1247 CommandHandler.COMMANDS_['add-new-services'] = /** @type {Command} */ ({
1248 /**
1249 * @param {!Event} event Command event.
1250 * @param {!FileManager} fileManager FileManager to use.
1251 */
1252 execute: function(event, fileManager) {
1253 fileManager.ui.suggestAppsDialog.showProviders(function() {});
1254 },
1255 canExecute: CommandUtil.canExecuteAlways
1256 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698