| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2010 Google Inc. All rights reserved. | 2 * Copyright (C) 2010 Google Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
| 6 * met: | 6 * met: |
| 7 * | 7 * |
| 8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 60 } | 60 } |
| 61 | 61 |
| 62 if (request.requestCookies || request.responseCookies) { | 62 if (request.requestCookies || request.responseCookies) { |
| 63 this._cookiesView = new WebInspector.RequestCookiesView(request); | 63 this._cookiesView = new WebInspector.RequestCookiesView(request); |
| 64 this.appendTab("cookies", WebInspector.UIString("Cookies"), this._cookie
sView); | 64 this.appendTab("cookies", WebInspector.UIString("Cookies"), this._cookie
sView); |
| 65 } | 65 } |
| 66 | 66 |
| 67 this.appendTab("timing", WebInspector.UIString("Timing"), new WebInspector.R
equestTimingView(request, calculator)); | 67 this.appendTab("timing", WebInspector.UIString("Timing"), new WebInspector.R
equestTimingView(request, calculator)); |
| 68 | 68 |
| 69 this._request = request; | 69 this._request = request; |
| 70 } | 70 }; |
| 71 | 71 |
| 72 WebInspector.NetworkItemView.prototype = { | 72 WebInspector.NetworkItemView.prototype = { |
| 73 wasShown: function() | 73 wasShown: function() |
| 74 { | 74 { |
| 75 WebInspector.TabbedPane.prototype.wasShown.call(this); | 75 WebInspector.TabbedPane.prototype.wasShown.call(this); |
| 76 this._selectTab(); | 76 this._selectTab(); |
| 77 }, | 77 }, |
| 78 | 78 |
| 79 /** | 79 /** |
| 80 * @param {string=} tabId | 80 * @param {string=} tabId |
| (...skipping 17 matching lines...) Expand all Loading... |
| 98 | 98 |
| 99 /** | 99 /** |
| 100 * @return {!WebInspector.NetworkRequest} | 100 * @return {!WebInspector.NetworkRequest} |
| 101 */ | 101 */ |
| 102 request: function() | 102 request: function() |
| 103 { | 103 { |
| 104 return this._request; | 104 return this._request; |
| 105 }, | 105 }, |
| 106 | 106 |
| 107 __proto__: WebInspector.TabbedPane.prototype | 107 __proto__: WebInspector.TabbedPane.prototype |
| 108 } | 108 }; |
| 109 | 109 |
| 110 /** | 110 /** |
| 111 * @constructor | 111 * @constructor |
| 112 * @extends {WebInspector.RequestView} | 112 * @extends {WebInspector.RequestView} |
| 113 * @param {!WebInspector.NetworkRequest} request | 113 * @param {!WebInspector.NetworkRequest} request |
| 114 */ | 114 */ |
| 115 WebInspector.RequestContentView = function(request) | 115 WebInspector.RequestContentView = function(request) |
| 116 { | 116 { |
| 117 WebInspector.RequestView.call(this, request); | 117 WebInspector.RequestView.call(this, request); |
| 118 } | 118 }; |
| 119 | 119 |
| 120 WebInspector.RequestContentView.prototype = { | 120 WebInspector.RequestContentView.prototype = { |
| 121 wasShown: function() | 121 wasShown: function() |
| 122 { | 122 { |
| 123 this._ensureInnerViewShown(); | 123 this._ensureInnerViewShown(); |
| 124 }, | 124 }, |
| 125 | 125 |
| 126 _ensureInnerViewShown: function() | 126 _ensureInnerViewShown: function() |
| 127 { | 127 { |
| 128 if (this._innerViewShowRequested) | 128 if (this._innerViewShowRequested) |
| (...skipping 12 matching lines...) Expand all Loading... |
| 141 | 141 |
| 142 this.request.requestContent().then(callback.bind(this)); | 142 this.request.requestContent().then(callback.bind(this)); |
| 143 }, | 143 }, |
| 144 | 144 |
| 145 contentLoaded: function() | 145 contentLoaded: function() |
| 146 { | 146 { |
| 147 // Should be implemented by subclasses. | 147 // Should be implemented by subclasses. |
| 148 }, | 148 }, |
| 149 | 149 |
| 150 __proto__: WebInspector.RequestView.prototype | 150 __proto__: WebInspector.RequestView.prototype |
| 151 } | 151 }; |
| OLD | NEW |