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 19 matching lines...) Expand all Loading... |
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 Loading... |
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 } |
OLD | NEW |