| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2009 Google Inc. All rights reserved. | 2 * Copyright (C) 2009 Google Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
| 6 * met: | 6 * met: |
| 7 * | 7 * |
| 8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
| (...skipping 17 matching lines...) Expand all Loading... |
| 28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 29 */ | 29 */ |
| 30 | 30 |
| 31 /** | 31 /** |
| 32 * @constructor | 32 * @constructor |
| 33 * @extends {WebInspector.Object} | 33 * @extends {WebInspector.Object} |
| 34 * @param {string} elementType | 34 * @param {string} elementType |
| 35 */ | 35 */ |
| 36 WebInspector.StatusBarItem = function(elementType) | 36 WebInspector.StatusBarItem = function(elementType) |
| 37 { | 37 { |
| 38 this.element = document.createElement(elementType); | 38 this.element = createElement(elementType); |
| 39 this._enabled = true; | 39 this._enabled = true; |
| 40 this._visible = true; | 40 this._visible = true; |
| 41 } | 41 } |
| 42 | 42 |
| 43 WebInspector.StatusBarItem.prototype = { | 43 WebInspector.StatusBarItem.prototype = { |
| 44 /** | 44 /** |
| 45 * @param {boolean} value | 45 * @param {boolean} value |
| 46 */ | 46 */ |
| 47 setEnabled: function(value) | 47 setEnabled: function(value) |
| 48 { | 48 { |
| (...skipping 662 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 711 var options = []; | 711 var options = []; |
| 712 for (var index = 0; index < this._states.length; index++) { | 712 for (var index = 0; index < this._states.length; index++) { |
| 713 if (this._states[index] !== this.state && this._states[index] !== th
is._currentState) | 713 if (this._states[index] !== this.state && this._states[index] !== th
is._currentState) |
| 714 options.push(this._buttons[index]); | 714 options.push(this._buttons[index]); |
| 715 } | 715 } |
| 716 return options; | 716 return options; |
| 717 }, | 717 }, |
| 718 | 718 |
| 719 __proto__: WebInspector.StatusBarButton.prototype | 719 __proto__: WebInspector.StatusBarButton.prototype |
| 720 } | 720 } |
| OLD | NEW |