| 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 194 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 205 super({data: dataText, length: length, time: timeNode}); | 205 super({data: dataText, length: length, time: timeNode}); |
| 206 | 206 |
| 207 this._url = url; | 207 this._url = url; |
| 208 this._frame = frame; | 208 this._frame = frame; |
| 209 this._isTextFrame = isTextFrame; | 209 this._isTextFrame = isTextFrame; |
| 210 this._dataText = dataText; | 210 this._dataText = dataText; |
| 211 } | 211 } |
| 212 | 212 |
| 213 /** | 213 /** |
| 214 * @override | 214 * @override |
| 215 * @param {!Element} element |
| 215 */ | 216 */ |
| 216 createCells() { | 217 createCells(element) { |
| 217 var element = this._element; | |
| 218 element.classList.toggle( | 218 element.classList.toggle( |
| 219 'websocket-frame-view-row-error', this._frame.type === SDK.NetworkReques
t.WebSocketFrameType.Error); | 219 'websocket-frame-view-row-error', this._frame.type === SDK.NetworkReques
t.WebSocketFrameType.Error); |
| 220 element.classList.toggle( | 220 element.classList.toggle( |
| 221 'websocket-frame-view-row-outcoming', this._frame.type === SDK.NetworkRe
quest.WebSocketFrameType.Send); | 221 'websocket-frame-view-row-outcoming', this._frame.type === SDK.NetworkRe
quest.WebSocketFrameType.Send); |
| 222 element.classList.toggle('websocket-frame-view-row-opcode', !this._isTextFra
me); | 222 element.classList.toggle('websocket-frame-view-row-opcode', !this._isTextFra
me); |
| 223 super.createCells(); | 223 super.createCells(element); |
| 224 } | 224 } |
| 225 | 225 |
| 226 /** | 226 /** |
| 227 * @override | 227 * @override |
| 228 * @return {number} | 228 * @return {number} |
| 229 */ | 229 */ |
| 230 nodeSelfHeight() { | 230 nodeSelfHeight() { |
| 231 return 17; | 231 return 17; |
| 232 } | 232 } |
| 233 | 233 |
| 234 /** | 234 /** |
| 235 * @return {!Common.ContentProvider} | 235 * @return {!Common.ContentProvider} |
| 236 */ | 236 */ |
| 237 contentProvider() { | 237 contentProvider() { |
| 238 return Common.StaticContentProvider.fromString(this._url, Common.resourceTyp
es.WebSocket, this._dataText); | 238 return Common.StaticContentProvider.fromString(this._url, Common.resourceTyp
es.WebSocket, this._dataText); |
| 239 } | 239 } |
| 240 }; | 240 }; |
| 241 | 241 |
| 242 /** | 242 /** |
| 243 * @param {!Network.ResourceWebSocketFrameNode} a | 243 * @param {!Network.ResourceWebSocketFrameNode} a |
| 244 * @param {!Network.ResourceWebSocketFrameNode} b | 244 * @param {!Network.ResourceWebSocketFrameNode} b |
| 245 * @return {number} | 245 * @return {number} |
| 246 */ | 246 */ |
| 247 Network.ResourceWebSocketFrameNodeTimeComparator = function(a, b) { | 247 Network.ResourceWebSocketFrameNodeTimeComparator = function(a, b) { |
| 248 return a._frame.time - b._frame.time; | 248 return a._frame.time - b._frame.time; |
| 249 }; | 249 }; |
| OLD | NEW |