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

Unified Diff: third_party/WebKit/Source/devtools/front_end/object_ui/RemoteObjectPreviewFormatter.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/object_ui/RemoteObjectPreviewFormatter.js
diff --git a/third_party/WebKit/Source/devtools/front_end/components/RemoteObjectPreviewFormatter.js b/third_party/WebKit/Source/devtools/front_end/object_ui/RemoteObjectPreviewFormatter.js
similarity index 96%
rename from third_party/WebKit/Source/devtools/front_end/components/RemoteObjectPreviewFormatter.js
rename to third_party/WebKit/Source/devtools/front_end/object_ui/RemoteObjectPreviewFormatter.js
index 8266ac35ff4630a2c876aaf51b6610579a4786f6..cc2234f9a834ff8b48616fec293d7e3fd8c1f0d4 100644
--- a/third_party/WebKit/Source/devtools/front_end/components/RemoteObjectPreviewFormatter.js
+++ b/third_party/WebKit/Source/devtools/front_end/object_ui/RemoteObjectPreviewFormatter.js
@@ -4,7 +4,7 @@
/**
* @unrestricted
*/
-Components.RemoteObjectPreviewFormatter = class {
+ObjectUI.RemoteObjectPreviewFormatter = class {
/**
* @param {!Protocol.Runtime.PropertyPreview} a
* @param {!Protocol.Runtime.PropertyPreview} b
@@ -77,7 +77,7 @@ Components.RemoteObjectPreviewFormatter = class {
*/
_appendObjectPropertiesPreview(parentElement, preview) {
var properties = preview.properties.filter(p => p.type !== 'accessor')
- .stableSort(Components.RemoteObjectPreviewFormatter._objectPropertyComparator);
+ .stableSort(ObjectUI.RemoteObjectPreviewFormatter._objectPropertyComparator);
for (var i = 0; i < properties.length; ++i) {
if (i > 0)
parentElement.createTextChild(', ');
@@ -97,7 +97,7 @@ Components.RemoteObjectPreviewFormatter = class {
var arrayLength = SDK.RemoteObject.arrayLength(preview);
var indexProperties = preview.properties.filter(p => toArrayIndex(p.name) !== -1).stableSort(arrayEntryComparator);
var otherProperties = preview.properties.filter(p => toArrayIndex(p.name) === -1)
- .stableSort(Components.RemoteObjectPreviewFormatter._objectPropertyComparator);
+ .stableSort(ObjectUI.RemoteObjectPreviewFormatter._objectPropertyComparator);
/**
* @param {!Protocol.Runtime.PropertyPreview} a

Powered by Google App Engine
This is Rietveld 408576698