| 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 'use strict'; | |
| 6 | |
| 7 /** | 5 /** |
| 8 * TODO(dzvorygin): Here we use this hack, since 'hidden' is standard | 6 * TODO(dzvorygin): Here we use this hack, since 'hidden' is standard |
| 9 * attribute and we can't use it's setter as usual. | 7 * attribute and we can't use it's setter as usual. |
| 10 * @param {boolean} value New value of hidden property. | 8 * @param {boolean} value New value of hidden property. |
| 11 */ | 9 */ |
| 12 cr.ui.Command.prototype.setHidden = function(value) { | 10 cr.ui.Command.prototype.setHidden = function(value) { |
| 13 this.__lookupSetter__('hidden').call(this, value); | 11 this.__lookupSetter__('hidden').call(this, value); |
| 14 }; | 12 }; |
| 15 | 13 |
| 16 /** | 14 /** |
| (...skipping 927 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 944 /** | 942 /** |
| 945 * Open inspector for background page. | 943 * Open inspector for background page. |
| 946 * @type {Command} | 944 * @type {Command} |
| 947 */ | 945 */ |
| 948 CommandHandler.COMMANDS_['inspect-background'] = /** @type {Command} */ ({ | 946 CommandHandler.COMMANDS_['inspect-background'] = /** @type {Command} */ ({ |
| 949 execute: function(event, fileManager) { | 947 execute: function(event, fileManager) { |
| 950 chrome.fileManagerPrivate.openInspector('background'); | 948 chrome.fileManagerPrivate.openInspector('background'); |
| 951 }, | 949 }, |
| 952 canExecute: CommandUtil.canExecuteAlways | 950 canExecute: CommandUtil.canExecuteAlways |
| 953 }); | 951 }); |
| OLD | NEW |