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

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

Issue 2325003002: [DevTools] Migrate RequestHeadersView to TreeOutlineInShadow. (Closed)
Patch Set: Created 4 years, 3 months 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
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 26 matching lines...) Expand all
37 { 37 {
38 WebInspector.VBox.call(this); 38 WebInspector.VBox.call(this);
39 this.registerRequiredCSS("network/requestHeadersView.css"); 39 this.registerRequiredCSS("network/requestHeadersView.css");
40 this.element.classList.add("request-headers-view"); 40 this.element.classList.add("request-headers-view");
41 41
42 this._request = request; 42 this._request = request;
43 this._decodeRequestParameters = true; 43 this._decodeRequestParameters = true;
44 this._showRequestHeadersText = false; 44 this._showRequestHeadersText = false;
45 this._showResponseHeadersText = false; 45 this._showResponseHeadersText = false;
46 46
47 var root = new TreeOutline(true); 47 var root = new TreeOutlineInShadow();
48 root.element.classList.add("outline-disclosure"); 48 root.registerRequiredCSS("network/requestHeadersTree.css");
49 root.element.classList.add("request-headers-tree");
50 root.setFocusable(false);
51 root.makeDense();
allada 2016/09/09 01:40:40 Can we instead move this into the constructor of T
dgozman 2016/09/09 02:27:50 As discussed offline, our current style is a bunch
49 root.expandTreeElementsWhenArrowing = true; 52 root.expandTreeElementsWhenArrowing = true;
50 this.element.appendChild(root.element); 53 this.element.appendChild(root.element);
51 54
52 var generalCategory = new WebInspector.RequestHeadersView.Category(root, "ge neral", WebInspector.UIString("General")); 55 var generalCategory = new WebInspector.RequestHeadersView.Category(root, "ge neral", WebInspector.UIString("General"));
53 generalCategory.hidden = false; 56 generalCategory.hidden = false;
54 this._urlItem = generalCategory.createLeaf(); 57 this._urlItem = generalCategory.createLeaf();
55 this._requestMethodItem = generalCategory.createLeaf(); 58 this._requestMethodItem = generalCategory.createLeaf();
56 this._statusCodeItem = generalCategory.createLeaf(); 59 this._statusCodeItem = generalCategory.createLeaf();
57 this._remoteAddressItem = generalCategory.createLeaf(); 60 this._remoteAddressItem = generalCategory.createLeaf();
58 this._remoteAddressItem.hidden = true; 61 this._remoteAddressItem.hidden = true;
(...skipping 468 matching lines...) Expand 10 before | Expand all | Expand 10 after
527 this._expandedSetting.set(true); 530 this._expandedSetting.set(true);
528 }, 531 },
529 532
530 oncollapse: function() 533 oncollapse: function()
531 { 534 {
532 this._expandedSetting.set(false); 535 this._expandedSetting.set(false);
533 }, 536 },
534 537
535 __proto__: TreeElement.prototype 538 __proto__: TreeElement.prototype
536 } 539 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698