OLD | NEW |
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 Loading... |
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 }); |
OLD | NEW |