| OLD | NEW |
| 1 // Copyright (c) 2015 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2015 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 /** | 5 /** |
| 6 * @constructor | 6 * @constructor |
| 7 */ | 7 */ |
| 8 WebInspector.RemoteObjectPreviewFormatter = function() | 8 WebInspector.RemoteObjectPreviewFormatter = function() |
| 9 { | 9 { |
| 10 } | 10 }; |
| 11 | 11 |
| 12 WebInspector.RemoteObjectPreviewFormatter.prototype = { | 12 WebInspector.RemoteObjectPreviewFormatter.prototype = { |
| 13 /** | 13 /** |
| 14 * @param {!Element} parentElement | 14 * @param {!Element} parentElement |
| 15 * @param {!RuntimeAgent.ObjectPreview} preview | 15 * @param {!RuntimeAgent.ObjectPreview} preview |
| 16 */ | 16 */ |
| 17 appendObjectPreview: function(parentElement, preview) | 17 appendObjectPreview: function(parentElement, preview) |
| 18 { | 18 { |
| 19 var description = preview.description; | 19 var description = preview.description; |
| 20 if (preview.type !== "object" || preview.subtype === "null") { | 20 if (preview.type !== "object" || preview.subtype === "null") { |
| (...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 164 } | 164 } |
| 165 | 165 |
| 166 if (type === "object" && !subtype) { | 166 if (type === "object" && !subtype) { |
| 167 span.textContent = this._abbreviateFullQualifiedClassName(descriptio
n); | 167 span.textContent = this._abbreviateFullQualifiedClassName(descriptio
n); |
| 168 return span; | 168 return span; |
| 169 } | 169 } |
| 170 | 170 |
| 171 span.textContent = description; | 171 span.textContent = description; |
| 172 return span; | 172 return span; |
| 173 } | 173 } |
| 174 } | 174 }; |
| OLD | NEW |