| 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 265 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 276 this._refreshRequestJSONPayload(parsedObject, sourceText); | 276 this._refreshRequestJSONPayload(parsedObject, sourceText); |
| 277 event.consume(); | 277 event.consume(); |
| 278 } | 278 } |
| 279 | 279 |
| 280 listItem.appendChild(this._createViewSourceToggle( | 280 listItem.appendChild(this._createViewSourceToggle( |
| 281 treeElement[Network.RequestHeadersView._viewSourceSymbol], toggleViewSou
rce.bind(this))); | 281 treeElement[Network.RequestHeadersView._viewSourceSymbol], toggleViewSou
rce.bind(this))); |
| 282 if (treeElement[Network.RequestHeadersView._viewSourceSymbol]) { | 282 if (treeElement[Network.RequestHeadersView._viewSourceSymbol]) { |
| 283 this._populateTreeElementWithSourceText(this._requestPayloadCategory, sour
ceText); | 283 this._populateTreeElementWithSourceText(this._requestPayloadCategory, sour
ceText); |
| 284 } else { | 284 } else { |
| 285 var object = SDK.RemoteObject.fromLocalObject(parsedObject); | 285 var object = SDK.RemoteObject.fromLocalObject(parsedObject); |
| 286 var section = new Components.ObjectPropertiesSection(object, object.descri
ption); | 286 var section = new ObjectUI.ObjectPropertiesSection(object, object.descript
ion); |
| 287 section.expand(); | 287 section.expand(); |
| 288 section.editable = false; | 288 section.editable = false; |
| 289 treeElement.appendChild(new UI.TreeElement(section.element)); | 289 treeElement.appendChild(new UI.TreeElement(section.element)); |
| 290 } | 290 } |
| 291 } | 291 } |
| 292 | 292 |
| 293 /** | 293 /** |
| 294 * @param {boolean} viewSource | 294 * @param {boolean} viewSource |
| 295 * @param {function(!Event)} handler | 295 * @param {function(!Event)} handler |
| 296 * @return {!Element} | 296 * @return {!Element} |
| (...skipping 240 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 537 this._expandedSetting.set(true); | 537 this._expandedSetting.set(true); |
| 538 } | 538 } |
| 539 | 539 |
| 540 /** | 540 /** |
| 541 * @override | 541 * @override |
| 542 */ | 542 */ |
| 543 oncollapse() { | 543 oncollapse() { |
| 544 this._expandedSetting.set(false); | 544 this._expandedSetting.set(false); |
| 545 } | 545 } |
| 546 }; | 546 }; |
| OLD | NEW |