OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2011 Google Inc. All rights reserved. | 2 * Copyright (C) 2011 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 120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
131 var valueElement = popoverContentElement.createChild('span', 'monospace
object-value-' + result.type); | 131 var valueElement = popoverContentElement.createChild('span', 'monospace
object-value-' + result.type); |
132 valueElement.style.whiteSpace = 'pre'; | 132 valueElement.style.whiteSpace = 'pre'; |
133 | 133 |
134 if (result.type === 'string') | 134 if (result.type === 'string') |
135 valueElement.createTextChildren('"', description, '"'); | 135 valueElement.createTextChildren('"', description, '"'); |
136 else if (result.type !== 'function') | 136 else if (result.type !== 'function') |
137 valueElement.textContent = description; | 137 valueElement.textContent = description; |
138 | 138 |
139 if (result.type === 'function') { | 139 if (result.type === 'function') { |
140 result.getOwnProperties( | 140 result.getOwnProperties( |
| 141 false /* generatePreview */, |
141 didGetFunctionProperties.bind(this, result, popoverContentElement,
valueElement, anchorElement)); | 142 didGetFunctionProperties.bind(this, result, popoverContentElement,
valueElement, anchorElement)); |
142 return; | 143 return; |
143 } | 144 } |
144 popover.showForAnchor(popoverContentElement, anchorElement); | 145 popover.showForAnchor(popoverContentElement, anchorElement); |
145 } else { | 146 } else { |
146 if (result.subtype === 'node') { | 147 if (result.subtype === 'node') { |
147 SDK.DOMModel.highlightObjectAsDOMNode(result); | 148 SDK.DOMModel.highlightObjectAsDOMNode(result); |
148 this._resultHighlightedAsDOM = true; | 149 this._resultHighlightedAsDOM = true; |
149 } | 150 } |
150 | 151 |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
190 * @return {!Components.Linkifier} | 191 * @return {!Components.Linkifier} |
191 */ | 192 */ |
192 _lazyLinkifier() { | 193 _lazyLinkifier() { |
193 if (!this._linkifier) | 194 if (!this._linkifier) |
194 this._linkifier = new Components.Linkifier(); | 195 this._linkifier = new Components.Linkifier(); |
195 return this._linkifier; | 196 return this._linkifier; |
196 } | 197 } |
197 }; | 198 }; |
198 | 199 |
199 Components.ObjectPopoverHelper.MaxPopoverTextLength = 10000; | 200 Components.ObjectPopoverHelper.MaxPopoverTextLength = 10000; |
OLD | NEW |