OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2007, 2008 Apple Inc. All rights reserved. | 2 * Copyright (C) 2007, 2008 Apple Inc. All rights reserved. |
3 * Copyright (C) 2008 Matt Lilek <webkit@mattlilek.com> | 3 * Copyright (C) 2008 Matt Lilek <webkit@mattlilek.com> |
4 * Copyright (C) 2009 Joseph Pecoraro | 4 * Copyright (C) 2009 Joseph Pecoraro |
5 * | 5 * |
6 * Redistribution and use in source and binary forms, with or without | 6 * Redistribution and use in source and binary forms, with or without |
7 * modification, are permitted provided that the following conditions | 7 * modification, are permitted provided that the following conditions |
8 * are met: | 8 * are met: |
9 * | 9 * |
10 * 1. Redistributions of source code must retain the above copyright | 10 * 1. Redistributions of source code must retain the above copyright |
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
142 }, | 142 }, |
143 | 143 |
144 /** | 144 /** |
145 * @return {symbol} | 145 * @return {symbol} |
146 */ | 146 */ |
147 treeElementSymbol: function() | 147 treeElementSymbol: function() |
148 { | 148 { |
149 return this._treeElementSymbol; | 149 return this._treeElementSymbol; |
150 }, | 150 }, |
151 | 151 |
| 152 /** |
| 153 * @override |
| 154 */ |
152 focus: function() | 155 focus: function() |
153 { | 156 { |
154 this._element.focus(); | 157 this._element.focus(); |
155 }, | 158 }, |
156 | 159 |
157 /** | 160 /** |
158 * @param {boolean} wrap | 161 * @param {boolean} wrap |
159 */ | 162 */ |
160 setWordWrap: function(wrap) | 163 setWordWrap: function(wrap) |
161 { | 164 { |
(...skipping 1587 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1749 | 1752 |
1750 WebInspector.ElementsTreeOutline.ShortcutTreeElement.prototype = { | 1753 WebInspector.ElementsTreeOutline.ShortcutTreeElement.prototype = { |
1751 /** | 1754 /** |
1752 * @return {boolean} | 1755 * @return {boolean} |
1753 */ | 1756 */ |
1754 get hovered() | 1757 get hovered() |
1755 { | 1758 { |
1756 return this._hovered; | 1759 return this._hovered; |
1757 }, | 1760 }, |
1758 | 1761 |
| 1762 /** |
| 1763 * @param {boolean} x |
| 1764 */ |
1759 set hovered(x) | 1765 set hovered(x) |
1760 { | 1766 { |
1761 if (this._hovered === x) | 1767 if (this._hovered === x) |
1762 return; | 1768 return; |
1763 this._hovered = x; | 1769 this._hovered = x; |
1764 this.listItemElement.classList.toggle("hovered", x); | 1770 this.listItemElement.classList.toggle("hovered", x); |
1765 }, | 1771 }, |
1766 | 1772 |
1767 /** | 1773 /** |
1768 * @return {number} | 1774 * @return {number} |
(...skipping 23 matching lines...) Expand all Loading... |
1792 if (node) { | 1798 if (node) { |
1793 this.treeOutline._selectedDOMNode = node; | 1799 this.treeOutline._selectedDOMNode = node; |
1794 this.treeOutline._selectedNodeChanged(); | 1800 this.treeOutline._selectedNodeChanged(); |
1795 } | 1801 } |
1796 } | 1802 } |
1797 return true; | 1803 return true; |
1798 }, | 1804 }, |
1799 | 1805 |
1800 __proto__: TreeElement.prototype | 1806 __proto__: TreeElement.prototype |
1801 }; | 1807 }; |
OLD | NEW |