Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(313)

Side by Side Diff: Source/devtools/front_end/network/RequestHeadersView.js

Issue 722683003: DevTools: Split NetworkPanel.js (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | Source/devtools/front_end/network/requestHeadersView.css » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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 }
OLDNEW
« no previous file with comments | « no previous file | Source/devtools/front_end/network/requestHeadersView.css » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698