| 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 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 /** | |
| 122 * @return {!WebInspector.Widget} | |
| 123 */ | |
| 124 get innerView() | |
| 125 { | |
| 126 return this._innerView; | |
| 127 }, | |
| 128 | |
| 129 set innerView(innerView) | |
| 130 { | |
| 131 this._innerView = innerView; | |
| 132 }, | |
| 133 | |
| 134 wasShown: function() | 121 wasShown: function() |
| 135 { | 122 { |
| 136 this._ensureInnerViewShown(); | 123 this._ensureInnerViewShown(); |
| 137 }, | 124 }, |
| 138 | 125 |
| 139 _ensureInnerViewShown: function() | 126 _ensureInnerViewShown: function() |
| 140 { | 127 { |
| 141 if (this._innerViewShowRequested) | 128 if (this._innerViewShowRequested) |
| 142 return; | 129 return; |
| 143 this._innerViewShowRequested = true; | 130 this._innerViewShowRequested = true; |
| (...skipping 11 matching lines...) Expand all Loading... |
| 155 this.request.requestContent().then(callback.bind(this)); | 142 this.request.requestContent().then(callback.bind(this)); |
| 156 }, | 143 }, |
| 157 | 144 |
| 158 contentLoaded: function() | 145 contentLoaded: function() |
| 159 { | 146 { |
| 160 // Should be implemented by subclasses. | 147 // Should be implemented by subclasses. |
| 161 }, | 148 }, |
| 162 | 149 |
| 163 __proto__: WebInspector.RequestView.prototype | 150 __proto__: WebInspector.RequestView.prototype |
| 164 } | 151 } |
| OLD | NEW |