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

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

Issue 422293002: DevTools: NetworkPanel: split networkPanel.css (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 4 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 19 matching lines...) Expand all
30 30
31 /** 31 /**
32 * @constructor 32 * @constructor
33 * @extends {WebInspector.VBox} 33 * @extends {WebInspector.VBox}
34 * @param {!WebInspector.NetworkRequest} request 34 * @param {!WebInspector.NetworkRequest} request
35 */ 35 */
36 WebInspector.RequestHeadersView = function(request) 36 WebInspector.RequestHeadersView = function(request)
37 { 37 {
38 WebInspector.VBox.call(this); 38 WebInspector.VBox.call(this);
39 this.registerRequiredCSS("resourceView.css"); 39 this.registerRequiredCSS("resourceView.css");
40 this.element.classList.add("resource-headers-view"); 40 this.registerRequiredCSS("requestHeadersView.css");
41 this.element.classList.add("request-headers-view");
41 42
42 this._request = request; 43 this._request = request;
43 44
44 this._headersListElement = document.createElement("ol"); 45 this._headersListElement = document.createElement("ol");
45 this._headersListElement.className = "outline-disclosure"; 46 this._headersListElement.className = "outline-disclosure";
46 this.element.appendChild(this._headersListElement); 47 this.element.appendChild(this._headersListElement);
47 48
48 this._headersTreeOutline = new TreeOutline(this._headersListElement); 49 this._headersTreeOutline = new TreeOutline(this._headersListElement);
49 this._headersTreeOutline.expandTreeElementsWhenArrowing = true; 50 this._headersTreeOutline.expandTreeElementsWhenArrowing = true;
50 51
(...skipping 459 matching lines...) Expand 10 before | Expand all | Expand 10 after
510 * @return {!Element} 511 * @return {!Element}
511 */ 512 */
512 _createHeadersToggleButton: function(isHeadersTextShown) 513 _createHeadersToggleButton: function(isHeadersTextShown)
513 { 514 {
514 var toggleTitle = isHeadersTextShown ? WebInspector.UIString("view parse d") : WebInspector.UIString("view source"); 515 var toggleTitle = isHeadersTextShown ? WebInspector.UIString("view parse d") : WebInspector.UIString("view source");
515 return this._createToggleButton(toggleTitle); 516 return this._createToggleButton(toggleTitle);
516 }, 517 },
517 518
518 __proto__: WebInspector.VBox.prototype 519 __proto__: WebInspector.VBox.prototype
519 } 520 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698