| 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 704 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 715 | 715 |
| 716 /** | 716 /** |
| 717 * @return {number} | 717 * @return {number} |
| 718 */ | 718 */ |
| 719 size: function() | 719 size: function() |
| 720 { | 720 { |
| 721 return this._selectElement.childElementCount; | 721 return this._selectElement.childElementCount; |
| 722 }, | 722 }, |
| 723 | 723 |
| 724 /** | 724 /** |
| 725 * @return {!Array.<!Element>} |
| 726 */ |
| 727 options: function() |
| 728 { |
| 729 return Array.prototype.slice.call(this._selectElement.children, 0); |
| 730 }, |
| 731 |
| 732 /** |
| 725 * @param {!Element} option | 733 * @param {!Element} option |
| 726 */ | 734 */ |
| 727 addOption: function(option) | 735 addOption: function(option) |
| 728 { | 736 { |
| 729 this._selectElement.appendChild(option); | 737 this._selectElement.appendChild(option); |
| 730 }, | 738 }, |
| 731 | 739 |
| 732 /** | 740 /** |
| 733 * @param {string} label | 741 * @param {string} label |
| 734 * @param {string=} title | 742 * @param {string=} title |
| (...skipping 284 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1019 for (var i = 0; i < items.length; ++i) { | 1027 for (var i = 0; i < items.length; ++i) { |
| 1020 var item = items[i]; | 1028 var item = items[i]; |
| 1021 if (item) | 1029 if (item) |
| 1022 this.appendToolbarItem(item); | 1030 this.appendToolbarItem(item); |
| 1023 } | 1031 } |
| 1024 } | 1032 } |
| 1025 }, | 1033 }, |
| 1026 | 1034 |
| 1027 __proto__: WebInspector.Toolbar.prototype | 1035 __proto__: WebInspector.Toolbar.prototype |
| 1028 } | 1036 } |
| OLD | NEW |