| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2012 Research In Motion Limited. All rights reserved. | 2 * Copyright (C) 2012 Research In Motion Limited. All rights reserved. |
| 3 * | 3 * |
| 4 * This library is free software; you can redistribute it and/or | 4 * This library is free software; you can redistribute it and/or |
| 5 * modify it under the terms of the GNU Lesser General Public | 5 * modify it under the terms of the GNU Lesser General Public |
| 6 * License as published by the Free Software Foundation; either | 6 * License as published by the Free Software Foundation; either |
| 7 * version 2 of the License, or (at your option) any later version. | 7 * version 2 of the License, or (at your option) any later version. |
| 8 * | 8 * |
| 9 * This library is distributed in the hope that it will be useful, | 9 * This library is distributed in the hope that it will be useful, |
| 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of | 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| (...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 136 | 136 |
| 137 /** | 137 /** |
| 138 * @param {?WebInspector.ParsedJSON} parsedJSON | 138 * @param {?WebInspector.ParsedJSON} parsedJSON |
| 139 * @this {WebInspector.ResourceWebSocketFrameView} | 139 * @this {WebInspector.ResourceWebSocketFrameView} |
| 140 */ | 140 */ |
| 141 function handleJSONData(parsedJSON) | 141 function handleJSONData(parsedJSON) |
| 142 { | 142 { |
| 143 if (this._currentSelectedNode !== selectedNode) | 143 if (this._currentSelectedNode !== selectedNode) |
| 144 return; | 144 return; |
| 145 if (parsedJSON) | 145 if (parsedJSON) |
| 146 this._splitWidget.setSidebarWidget(new WebInspector.JSONView(par
sedJSON)); | 146 this._splitWidget.setSidebarWidget(WebInspector.JSONView.createS
earchableView(parsedJSON)); |
| 147 else | 147 else |
| 148 this._splitWidget.setSidebarWidget(new WebInspector.ResourceSour
ceFrame(contentProvider)); | 148 this._splitWidget.setSidebarWidget(new WebInspector.ResourceSour
ceFrame(contentProvider)); |
| 149 } | 149 } |
| 150 }, | 150 }, |
| 151 | 151 |
| 152 /** | 152 /** |
| 153 * @param {!WebInspector.Event} event | 153 * @param {!WebInspector.Event} event |
| 154 */ | 154 */ |
| 155 _onFrameDeselected: function(event) | 155 _onFrameDeselected: function(event) |
| 156 { | 156 { |
| (...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 248 | 248 |
| 249 /** | 249 /** |
| 250 * @param {!WebInspector.ResourceWebSocketFrameNode} a | 250 * @param {!WebInspector.ResourceWebSocketFrameNode} a |
| 251 * @param {!WebInspector.ResourceWebSocketFrameNode} b | 251 * @param {!WebInspector.ResourceWebSocketFrameNode} b |
| 252 * @return {number} | 252 * @return {number} |
| 253 */ | 253 */ |
| 254 WebInspector.ResourceWebSocketFrameNodeTimeComparator = function(a, b) | 254 WebInspector.ResourceWebSocketFrameNodeTimeComparator = function(a, b) |
| 255 { | 255 { |
| 256 return a._frame.time - b._frame.time; | 256 return a._frame.time - b._frame.time; |
| 257 } | 257 } |
| OLD | NEW |