| 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'; | 5 'use strict'; |
| 6 | 6 |
| 7 /** | 7 /** |
| 8 * @fileoverview This implements a common button control, bound to command. | 8 * @fileoverview This implements a common button control, bound to command. |
| 9 */ | 9 */ |
| 10 | 10 |
| 11 /** | 11 /** |
| 12 * Creates a new button element. | 12 * Creates a new button element. |
| 13 * @param {Object=} opt_propertyBag Optional properties. | 13 * @param {Object=} opt_propertyBag Optional properties. |
| 14 * @constructor | 14 * @constructor |
| 15 * @extends {HTMLDivElement} | 15 * @extends {HTMLDivElement} |
| 16 */ | 16 */ |
| 17 var CommandButton = cr.ui.define('button'); | 17 var CommandButton = cr.ui.define('button'); |
| 18 | 18 |
| 19 /** @override */ | 19 /** @override */ |
| 20 CommandButton.prototype.__proto__ = HTMLButtonElement.prototype; | 20 CommandButton.prototype.__proto__ = HTMLButtonElement.prototype; |
| 21 | 21 |
| 22 /** | 22 /** |
| 23 * Associated command. | 23 * Associated command. |
| 24 * @type {Command} | 24 * @type {Command} |
| 25 * @private | 25 * @private |
| 26 */ | 26 */ |
| 27 CommandButton.prototype.command_ = null; | 27 CommandButton.prototype.command_ = null; |
| (...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 127 */ | 127 */ |
| 128 cr.defineProperty(CommandButton, 'disabled', | 128 cr.defineProperty(CommandButton, 'disabled', |
| 129 cr.PropertyKind.BOOL_ATTR); | 129 cr.PropertyKind.BOOL_ATTR); |
| 130 | 130 |
| 131 /** | 131 /** |
| 132 * Whether the button is hidden or not. | 132 * Whether the button is hidden or not. |
| 133 * @type {boolean} | 133 * @type {boolean} |
| 134 */ | 134 */ |
| 135 cr.defineProperty(CommandButton, 'hidden', | 135 cr.defineProperty(CommandButton, 'hidden', |
| 136 cr.PropertyKind.BOOL_ATTR); | 136 cr.PropertyKind.BOOL_ATTR); |
| OLD | NEW |