| 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 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 /** |
| 72 * @override |
| 73 */ |
| 71 wasShown: function() | 74 wasShown: function() |
| 72 { | 75 { |
| 73 this._request.addEventListener(WebInspector.NetworkRequest.Events.Remote
AddressChanged, this._refreshRemoteAddress, this); | 76 this._request.addEventListener(WebInspector.NetworkRequest.Events.Remote
AddressChanged, this._refreshRemoteAddress, this); |
| 74 this._request.addEventListener(WebInspector.NetworkRequest.Events.Reques
tHeadersChanged, this._refreshRequestHeaders, this); | 77 this._request.addEventListener(WebInspector.NetworkRequest.Events.Reques
tHeadersChanged, this._refreshRequestHeaders, this); |
| 75 this._request.addEventListener(WebInspector.NetworkRequest.Events.Respon
seHeadersChanged, this._refreshResponseHeaders, this); | 78 this._request.addEventListener(WebInspector.NetworkRequest.Events.Respon
seHeadersChanged, this._refreshResponseHeaders, this); |
| 76 this._request.addEventListener(WebInspector.NetworkRequest.Events.Finish
edLoading, this._refreshHTTPInformation, this); | 79 this._request.addEventListener(WebInspector.NetworkRequest.Events.Finish
edLoading, this._refreshHTTPInformation, this); |
| 77 | 80 |
| 78 this._refreshURL(); | 81 this._refreshURL(); |
| 79 this._refreshQueryString(); | 82 this._refreshQueryString(); |
| 80 this._refreshRequestHeaders(); | 83 this._refreshRequestHeaders(); |
| 81 this._refreshResponseHeaders(); | 84 this._refreshResponseHeaders(); |
| 82 this._refreshHTTPInformation(); | 85 this._refreshHTTPInformation(); |
| 83 this._refreshRemoteAddress(); | 86 this._refreshRemoteAddress(); |
| 84 }, | 87 }, |
| 85 | 88 |
| 89 /** |
| 90 * @override |
| 91 */ |
| 86 willHide: function() | 92 willHide: function() |
| 87 { | 93 { |
| 88 this._request.removeEventListener(WebInspector.NetworkRequest.Events.Rem
oteAddressChanged, this._refreshRemoteAddress, this); | 94 this._request.removeEventListener(WebInspector.NetworkRequest.Events.Rem
oteAddressChanged, this._refreshRemoteAddress, this); |
| 89 this._request.removeEventListener(WebInspector.NetworkRequest.Events.Req
uestHeadersChanged, this._refreshRequestHeaders, this); | 95 this._request.removeEventListener(WebInspector.NetworkRequest.Events.Req
uestHeadersChanged, this._refreshRequestHeaders, this); |
| 90 this._request.removeEventListener(WebInspector.NetworkRequest.Events.Res
ponseHeadersChanged, this._refreshResponseHeaders, this); | 96 this._request.removeEventListener(WebInspector.NetworkRequest.Events.Res
ponseHeadersChanged, this._refreshResponseHeaders, this); |
| 91 this._request.removeEventListener(WebInspector.NetworkRequest.Events.Fin
ishedLoading, this._refreshHTTPInformation, this); | 97 this._request.removeEventListener(WebInspector.NetworkRequest.Events.Fin
ishedLoading, this._refreshHTTPInformation, this); |
| 92 }, | 98 }, |
| 93 | 99 |
| 94 /** | 100 /** |
| 95 * @param {string} name | 101 * @param {string} name |
| (...skipping 422 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 518 * @return {!TreeElement} | 524 * @return {!TreeElement} |
| 519 */ | 525 */ |
| 520 createLeaf: function() | 526 createLeaf: function() |
| 521 { | 527 { |
| 522 var leaf = new TreeElement(); | 528 var leaf = new TreeElement(); |
| 523 leaf.selectable = false; | 529 leaf.selectable = false; |
| 524 this.appendChild(leaf); | 530 this.appendChild(leaf); |
| 525 return leaf; | 531 return leaf; |
| 526 }, | 532 }, |
| 527 | 533 |
| 534 /** |
| 535 * @override |
| 536 */ |
| 528 onexpand: function() | 537 onexpand: function() |
| 529 { | 538 { |
| 530 this._expandedSetting.set(true); | 539 this._expandedSetting.set(true); |
| 531 }, | 540 }, |
| 532 | 541 |
| 542 /** |
| 543 * @override |
| 544 */ |
| 533 oncollapse: function() | 545 oncollapse: function() |
| 534 { | 546 { |
| 535 this._expandedSetting.set(false); | 547 this._expandedSetting.set(false); |
| 536 }, | 548 }, |
| 537 | 549 |
| 538 __proto__: TreeElement.prototype | 550 __proto__: TreeElement.prototype |
| 539 }; | 551 }; |
| OLD | NEW |