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) IBM Corp. 2009 All rights reserved. | 3 * Copyright (C) IBM Corp. 2009 All rights reserved. |
4 * Copyright (C) 2010 Google Inc. All rights reserved. | 4 * Copyright (C) 2010 Google Inc. All rights reserved. |
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 250 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
261 } | 261 } |
262 | 262 |
263 listItem.appendChild(this._createViewSourceToggle(treeElement._viewSourc
e, toggleViewSource.bind(this))); | 263 listItem.appendChild(this._createViewSourceToggle(treeElement._viewSourc
e, toggleViewSource.bind(this))); |
264 if (treeElement._viewSource) { | 264 if (treeElement._viewSource) { |
265 this._populateTreeElementWithSourceText(this._requestPayloadCategory
, sourceText); | 265 this._populateTreeElementWithSourceText(this._requestPayloadCategory
, sourceText); |
266 } else { | 266 } else { |
267 var object = WebInspector.RemoteObject.fromLocalObject(parsedObject)
; | 267 var object = WebInspector.RemoteObject.fromLocalObject(parsedObject)
; |
268 var section = new WebInspector.ObjectPropertiesSection(object, objec
t.description); | 268 var section = new WebInspector.ObjectPropertiesSection(object, objec
t.description); |
269 section.expand(); | 269 section.expand(); |
270 section.editable = false; | 270 section.editable = false; |
271 listItem.appendChild(section.element); | 271 treeElement.appendChild(new TreeElement(section.element)); |
272 } | 272 } |
273 }, | 273 }, |
274 | 274 |
275 /** | 275 /** |
276 * @param {boolean} viewSource | 276 * @param {boolean} viewSource |
277 * @param {function(!Event)} handler | 277 * @param {function(!Event)} handler |
278 * @return {!Element} | 278 * @return {!Element} |
279 */ | 279 */ |
280 _createViewSourceToggle: function(viewSource, handler) | 280 _createViewSourceToggle: function(viewSource, handler) |
281 { | 281 { |
(...skipping 238 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
520 this._expandedSetting.set(true); | 520 this._expandedSetting.set(true); |
521 }, | 521 }, |
522 | 522 |
523 oncollapse: function() | 523 oncollapse: function() |
524 { | 524 { |
525 this._expandedSetting.set(false); | 525 this._expandedSetting.set(false); |
526 }, | 526 }, |
527 | 527 |
528 __proto__: TreeElement.prototype | 528 __proto__: TreeElement.prototype |
529 } | 529 } |
OLD | NEW |