Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(18)

Side by Side Diff: third_party/WebKit/Source/devtools/front_end/network/ResourceWebSocketFrameView.js

Issue 1899893003: [Devtools] JSONView implements Searchable interface (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 124 matching lines...) Expand 10 before | Expand all | Expand 10 after
135 } 135 }
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 var jsonView = new WebInspector.JSONView(parsedJSON)
lushnikov 2016/04/22 19:43:00 var view = WebInspector.JSONView.createSearchableV
allada 2016/04/25 23:48:49 Done.
147 else 147 var searchView = jsonView.makeSearchable();
148 this._splitWidget.setSidebarWidget(searchView);
149 } else {
148 this._splitWidget.setSidebarWidget(new WebInspector.ResourceSour ceFrame(contentProvider)); 150 this._splitWidget.setSidebarWidget(new WebInspector.ResourceSour ceFrame(contentProvider));
151 }
149 } 152 }
150 }, 153 },
151 154
152 /** 155 /**
153 * @param {!WebInspector.Event} event 156 * @param {!WebInspector.Event} event
154 */ 157 */
155 _onFrameDeselected: function(event) 158 _onFrameDeselected: function(event)
156 { 159 {
157 this._currentSelectedNode = null; 160 this._currentSelectedNode = null;
158 }, 161 },
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
248 251
249 /** 252 /**
250 * @param {!WebInspector.ResourceWebSocketFrameNode} a 253 * @param {!WebInspector.ResourceWebSocketFrameNode} a
251 * @param {!WebInspector.ResourceWebSocketFrameNode} b 254 * @param {!WebInspector.ResourceWebSocketFrameNode} b
252 * @return {number} 255 * @return {number}
253 */ 256 */
254 WebInspector.ResourceWebSocketFrameNodeTimeComparator = function(a, b) 257 WebInspector.ResourceWebSocketFrameNodeTimeComparator = function(a, b)
255 { 258 {
256 return a._frame.time - b._frame.time; 259 return a._frame.time - b._frame.time;
257 } 260 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698