| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 /** | 5 /** |
| 6 * @constructor | 6 * @constructor |
| 7 * @extends {WebInspector.VBox} | 7 * @extends {WebInspector.VBox} |
| 8 * @param {!WebInspector.ServiceWorkerCacheModel} model | 8 * @param {!WebInspector.ServiceWorkerCacheModel} model |
| 9 * @param {!WebInspector.ServiceWorkerCacheModel.Cache} cache | 9 * @param {!WebInspector.ServiceWorkerCacheModel.Cache} cache |
| 10 */ | 10 */ |
| (...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 180 */ | 180 */ |
| 181 createCell: function(columnIdentifier) | 181 createCell: function(columnIdentifier) |
| 182 { | 182 { |
| 183 var cell = WebInspector.DataGridNode.prototype.createCell.call(this, col
umnIdentifier); | 183 var cell = WebInspector.DataGridNode.prototype.createCell.call(this, col
umnIdentifier); |
| 184 var value = this.data[columnIdentifier]; | 184 var value = this.data[columnIdentifier]; |
| 185 | 185 |
| 186 switch (columnIdentifier) { | 186 switch (columnIdentifier) { |
| 187 case "request": | 187 case "request": |
| 188 case "response": | 188 case "response": |
| 189 cell.removeChildren(); | 189 cell.removeChildren(); |
| 190 this._formatValue(cell, value); | 190 var objectElement = WebInspector.ObjectPropertiesSection.defaultObje
ctPresentation(value, true); |
| 191 cell.appendChild(objectElement); |
| 191 break; | 192 break; |
| 192 default: | 193 default: |
| 193 } | 194 } |
| 194 | 195 |
| 195 return cell; | 196 return cell; |
| 196 }, | 197 }, |
| 197 | 198 |
| 198 _formatValue: function(cell, value) | |
| 199 { | |
| 200 cell.classList.add("source-code"); | |
| 201 cell.classList.add("primitive-value"); | |
| 202 cell.appendChild(createTextNode(value)); | |
| 203 }, | |
| 204 | |
| 205 __proto__: WebInspector.DataGridNode.prototype | 199 __proto__: WebInspector.DataGridNode.prototype |
| 206 } | 200 } |
| OLD | NEW |