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

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

Issue 2440953003: DevTools: use semicolons after each statement. (Closed)
Patch Set: rebaseline Created 4 years, 1 month 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 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
58 this._requestMethodItem = generalCategory.createLeaf(); 58 this._requestMethodItem = generalCategory.createLeaf();
59 this._statusCodeItem = generalCategory.createLeaf(); 59 this._statusCodeItem = generalCategory.createLeaf();
60 this._remoteAddressItem = generalCategory.createLeaf(); 60 this._remoteAddressItem = generalCategory.createLeaf();
61 this._remoteAddressItem.hidden = true; 61 this._remoteAddressItem.hidden = true;
62 62
63 this._responseHeadersCategory = new WebInspector.RequestHeadersView.Category (root, "responseHeaders", ""); 63 this._responseHeadersCategory = new WebInspector.RequestHeadersView.Category (root, "responseHeaders", "");
64 this._requestHeadersCategory = new WebInspector.RequestHeadersView.Category( root, "requestHeaders", ""); 64 this._requestHeadersCategory = new WebInspector.RequestHeadersView.Category( root, "requestHeaders", "");
65 this._queryStringCategory = new WebInspector.RequestHeadersView.Category(roo t, "queryString", ""); 65 this._queryStringCategory = new WebInspector.RequestHeadersView.Category(roo t, "queryString", "");
66 this._formDataCategory = new WebInspector.RequestHeadersView.Category(root, "formData", ""); 66 this._formDataCategory = new WebInspector.RequestHeadersView.Category(root, "formData", "");
67 this._requestPayloadCategory = new WebInspector.RequestHeadersView.Category( root, "requestPayload", WebInspector.UIString("Request Payload")); 67 this._requestPayloadCategory = new WebInspector.RequestHeadersView.Category( root, "requestPayload", WebInspector.UIString("Request Payload"));
68 } 68 };
69 69
70 WebInspector.RequestHeadersView.prototype = { 70 WebInspector.RequestHeadersView.prototype = {
71 wasShown: function() 71 wasShown: function()
72 { 72 {
73 this._request.addEventListener(WebInspector.NetworkRequest.Events.Remote AddressChanged, this._refreshRemoteAddress, this); 73 this._request.addEventListener(WebInspector.NetworkRequest.Events.Remote AddressChanged, this._refreshRemoteAddress, this);
74 this._request.addEventListener(WebInspector.NetworkRequest.Events.Reques tHeadersChanged, this._refreshRequestHeaders, this); 74 this._request.addEventListener(WebInspector.NetworkRequest.Events.Reques tHeadersChanged, this._refreshRequestHeaders, this);
75 this._request.addEventListener(WebInspector.NetworkRequest.Events.Respon seHeadersChanged, this._refreshResponseHeaders, this); 75 this._request.addEventListener(WebInspector.NetworkRequest.Events.Respon seHeadersChanged, this._refreshResponseHeaders, this);
76 this._request.addEventListener(WebInspector.NetworkRequest.Events.Finish edLoading, this._refreshHTTPInformation, this); 76 this._request.addEventListener(WebInspector.NetworkRequest.Events.Finish edLoading, this._refreshHTTPInformation, this);
77 77
78 this._refreshURL(); 78 this._refreshURL();
(...skipping 407 matching lines...) Expand 10 before | Expand all | Expand 10 after
486 * @param {boolean} isHeadersTextShown 486 * @param {boolean} isHeadersTextShown
487 * @return {!Element} 487 * @return {!Element}
488 */ 488 */
489 _createHeadersToggleButton: function(isHeadersTextShown) 489 _createHeadersToggleButton: function(isHeadersTextShown)
490 { 490 {
491 var toggleTitle = isHeadersTextShown ? WebInspector.UIString("view parse d") : WebInspector.UIString("view source"); 491 var toggleTitle = isHeadersTextShown ? WebInspector.UIString("view parse d") : WebInspector.UIString("view source");
492 return this._createToggleButton(toggleTitle); 492 return this._createToggleButton(toggleTitle);
493 }, 493 },
494 494
495 __proto__: WebInspector.VBox.prototype 495 __proto__: WebInspector.VBox.prototype
496 } 496 };
497 497
498 /** 498 /**
499 * @constructor 499 * @constructor
500 * @extends {TreeElement} 500 * @extends {TreeElement}
501 * @param {!TreeOutline} root 501 * @param {!TreeOutline} root
502 * @param {string} name 502 * @param {string} name
503 * @param {string=} title 503 * @param {string=} title
504 */ 504 */
505 WebInspector.RequestHeadersView.Category = function(root, name, title) 505 WebInspector.RequestHeadersView.Category = function(root, name, title)
506 { 506 {
507 TreeElement.call(this, title || "", true); 507 TreeElement.call(this, title || "", true);
508 this.selectable = false; 508 this.selectable = false;
509 this.toggleOnClick = true; 509 this.toggleOnClick = true;
510 this.hidden = true; 510 this.hidden = true;
511 this._expandedSetting = WebInspector.settings.createSetting("request-info-" + name + "-category-expanded", true); 511 this._expandedSetting = WebInspector.settings.createSetting("request-info-" + name + "-category-expanded", true);
512 this.expanded = this._expandedSetting.get(); 512 this.expanded = this._expandedSetting.get();
513 root.appendChild(this); 513 root.appendChild(this);
514 } 514 };
515 515
516 WebInspector.RequestHeadersView.Category.prototype = { 516 WebInspector.RequestHeadersView.Category.prototype = {
517 /** 517 /**
518 * @return {!TreeElement} 518 * @return {!TreeElement}
519 */ 519 */
520 createLeaf: function() 520 createLeaf: function()
521 { 521 {
522 var leaf = new TreeElement(); 522 var leaf = new TreeElement();
523 leaf.selectable = false; 523 leaf.selectable = false;
524 this.appendChild(leaf); 524 this.appendChild(leaf);
525 return leaf; 525 return leaf;
526 }, 526 },
527 527
528 onexpand: function() 528 onexpand: function()
529 { 529 {
530 this._expandedSetting.set(true); 530 this._expandedSetting.set(true);
531 }, 531 },
532 532
533 oncollapse: function() 533 oncollapse: function()
534 { 534 {
535 this._expandedSetting.set(false); 535 this._expandedSetting.set(false);
536 }, 536 },
537 537
538 __proto__: TreeElement.prototype 538 __proto__: TreeElement.prototype
539 } 539 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698