| 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 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 /** |
| 74 * @override |
| 75 */ |
| 73 wasShown: function() | 76 wasShown: function() |
| 74 { | 77 { |
| 75 WebInspector.TabbedPane.prototype.wasShown.call(this); | 78 WebInspector.TabbedPane.prototype.wasShown.call(this); |
| 76 this._selectTab(); | 79 this._selectTab(); |
| 77 }, | 80 }, |
| 78 | 81 |
| 79 /** | 82 /** |
| 80 * @param {string=} tabId | 83 * @param {string=} tabId |
| 81 */ | 84 */ |
| 82 _selectTab: function(tabId) | 85 _selectTab: function(tabId) |
| (...skipping 28 matching lines...) Expand all Loading... |
| 111 * @constructor | 114 * @constructor |
| 112 * @extends {WebInspector.RequestView} | 115 * @extends {WebInspector.RequestView} |
| 113 * @param {!WebInspector.NetworkRequest} request | 116 * @param {!WebInspector.NetworkRequest} request |
| 114 */ | 117 */ |
| 115 WebInspector.RequestContentView = function(request) | 118 WebInspector.RequestContentView = function(request) |
| 116 { | 119 { |
| 117 WebInspector.RequestView.call(this, request); | 120 WebInspector.RequestView.call(this, request); |
| 118 }; | 121 }; |
| 119 | 122 |
| 120 WebInspector.RequestContentView.prototype = { | 123 WebInspector.RequestContentView.prototype = { |
| 124 /** |
| 125 * @override |
| 126 */ |
| 121 wasShown: function() | 127 wasShown: function() |
| 122 { | 128 { |
| 123 this._ensureInnerViewShown(); | 129 this._ensureInnerViewShown(); |
| 124 }, | 130 }, |
| 125 | 131 |
| 126 _ensureInnerViewShown: function() | 132 _ensureInnerViewShown: function() |
| 127 { | 133 { |
| 128 if (this._innerViewShowRequested) | 134 if (this._innerViewShowRequested) |
| 129 return; | 135 return; |
| 130 this._innerViewShowRequested = true; | 136 this._innerViewShowRequested = true; |
| (...skipping 11 matching lines...) Expand all Loading... |
| 142 this.request.requestContent().then(callback.bind(this)); | 148 this.request.requestContent().then(callback.bind(this)); |
| 143 }, | 149 }, |
| 144 | 150 |
| 145 contentLoaded: function() | 151 contentLoaded: function() |
| 146 { | 152 { |
| 147 // Should be implemented by subclasses. | 153 // Should be implemented by subclasses. |
| 148 }, | 154 }, |
| 149 | 155 |
| 150 __proto__: WebInspector.RequestView.prototype | 156 __proto__: WebInspector.RequestView.prototype |
| 151 }; | 157 }; |
| OLD | NEW |