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

Unified Diff: third_party/WebKit/Source/devtools/front_end/network/JSONView.js

Issue 2712513002: DevTools: extract ObjectUI module from Components (Closed)
Patch Set: fix build.gn Created 3 years, 10 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/devtools/front_end/network/JSONView.js
diff --git a/third_party/WebKit/Source/devtools/front_end/network/JSONView.js b/third_party/WebKit/Source/devtools/front_end/network/JSONView.js
index cca28b50294dbd82ad99b7f6ebed359c99fde9d4..2b973783f06c48baf02c5fd7762430389108be82 100644
--- a/third_party/WebKit/Source/devtools/front_end/network/JSONView.js
+++ b/third_party/WebKit/Source/devtools/front_end/network/JSONView.js
@@ -42,7 +42,7 @@ Network.JSONView = class extends UI.VBox {
/** @type {?UI.SearchableView} */
this._searchableView;
- /** @type {!Components.ObjectPropertiesSection} */
+ /** @type {!ObjectUI.ObjectPropertiesSection} */
this._treeOutline;
/** @type {number} */
this._currentSearchFocusIndex = 0;
@@ -146,7 +146,7 @@ Network.JSONView = class extends UI.VBox {
var obj = SDK.RemoteObject.fromLocalObject(this._parsedJSON.data);
var title = this._parsedJSON.prefix + obj.description + this._parsedJSON.suffix;
- this._treeOutline = new Components.ObjectPropertiesSection(obj, title);
+ this._treeOutline = new ObjectUI.ObjectPropertiesSection(obj, title);
this._treeOutline.setEditable(false);
this._treeOutline.expand();
this.element.appendChild(this._treeOutline.element);
@@ -199,7 +199,7 @@ Network.JSONView = class extends UI.VBox {
this._currentSearchTreeElements = [];
for (var element = this._treeOutline.rootElement(); element; element = element.traverseNextTreeElement(false)) {
- if (!(element instanceof Components.ObjectPropertyTreeElement))
+ if (!(element instanceof ObjectUI.ObjectPropertyTreeElement))
continue;
element.revertHighlightChanges();
}
@@ -220,7 +220,7 @@ Network.JSONView = class extends UI.VBox {
this._searchRegex = searchConfig.toSearchRegex(true);
for (var element = this._treeOutline.rootElement(); element; element = element.traverseNextTreeElement(false)) {
- if (!(element instanceof Components.ObjectPropertyTreeElement))
+ if (!(element instanceof ObjectUI.ObjectPropertyTreeElement))
continue;
var hasMatch = element.setSearchRegex(this._searchRegex);
if (hasMatch)

Powered by Google App Engine
This is Rietveld 408576698