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 732 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
743 { | 743 { |
744 WebInspector.ToolbarItem.call(this, createElementWithClass("div", "toolbar-d
ivider")); | 744 WebInspector.ToolbarItem.call(this, createElementWithClass("div", "toolbar-d
ivider")); |
745 } | 745 } |
746 | 746 |
747 WebInspector.ToolbarSeparator.prototype = { | 747 WebInspector.ToolbarSeparator.prototype = { |
748 __proto__: WebInspector.ToolbarItem.prototype | 748 __proto__: WebInspector.ToolbarItem.prototype |
749 } | 749 } |
750 | 750 |
751 /** | 751 /** |
752 * @constructor | 752 * @constructor |
| 753 * @extends {WebInspector.ToolbarItem} |
| 754 */ |
| 755 WebInspector.ToolbarSpace = function() |
| 756 { |
| 757 WebInspector.ToolbarItem.call(this, createElementWithClass("div", "toolbar-s
pace")); |
| 758 } |
| 759 |
| 760 WebInspector.ToolbarSpace.prototype = { |
| 761 __proto__: WebInspector.ToolbarItem.prototype |
| 762 } |
| 763 |
| 764 /** |
| 765 * @constructor |
753 * @extends {WebInspector.ToolbarButtonBase} | 766 * @extends {WebInspector.ToolbarButtonBase} |
754 * @param {string} title | 767 * @param {string} title |
755 * @param {string} className | 768 * @param {string} className |
756 * @param {string} text | 769 * @param {string} text |
757 * @param {number=} states | 770 * @param {number=} states |
758 */ | 771 */ |
759 WebInspector.ToolbarTextButton = function(title, className, text, states) | 772 WebInspector.ToolbarTextButton = function(title, className, text, states) |
760 { | 773 { |
761 WebInspector.ToolbarButtonBase.call(this, title, className, states); | 774 WebInspector.ToolbarButtonBase.call(this, title, className, states); |
762 | 775 |
(...skipping 254 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1017 for (var i = 0; i < items.length; ++i) { | 1030 for (var i = 0; i < items.length; ++i) { |
1018 var item = items[i]; | 1031 var item = items[i]; |
1019 if (item) | 1032 if (item) |
1020 this.appendToolbarItem(item); | 1033 this.appendToolbarItem(item); |
1021 } | 1034 } |
1022 } | 1035 } |
1023 }, | 1036 }, |
1024 | 1037 |
1025 __proto__: WebInspector.Toolbar.prototype | 1038 __proto__: WebInspector.Toolbar.prototype |
1026 } | 1039 } |
OLD | NEW |