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

Unified Diff: third_party/WebKit/Source/devtools/front_end/object_ui/ObjectPropertiesSection.js

Issue 2714833002: DevTools: use interface for ObjectUI and make it a non-autostart module (Closed)
Patch Set: format 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/ObjectPropertiesSection.js
diff --git a/third_party/WebKit/Source/devtools/front_end/object_ui/ObjectPropertiesSection.js b/third_party/WebKit/Source/devtools/front_end/object_ui/ObjectPropertiesSection.js
index 24307f6add19147fe4b8ab407041ca07726214c1..095b017a8cbffb6bcfd5f5b8c34c2dd46f03b859 100644
--- a/third_party/WebKit/Source/devtools/front_end/object_ui/ObjectPropertiesSection.js
+++ b/third_party/WebKit/Source/devtools/front_end/object_ui/ObjectPropertiesSection.js
@@ -1350,3 +1350,29 @@ ObjectUI.ObjectPropertiesSectionExpandController = class {
ObjectUI.ObjectPropertiesSectionExpandController._cachedPathSymbol = Symbol('cachedPath');
ObjectUI.ObjectPropertiesSectionExpandController._treeOutlineId = Symbol('treeOutlineId');
+
+
+/**
+ * @implements {Common.RemoteObjectRenderer}
+ */
+ObjectUI.ObjectPropertiesSection.Renderer = class {
+ /**
+ * @override
+ * @param {!Object} object
+ * @param {!Common.RemoteObjectRenderer.Options=} options
+ * @return {?Element}
+ */
+ render(object, options) {
+ if (!(object instanceof SDK.RemoteObject))
+ return null;
+ options = options || {};
+ var title = options.title;
+ var section = new ObjectUI.ObjectPropertiesSection(object, title);
+ if (!title)
+ section.titleLessMode();
+ if (options.expand)
+ section.expand();
+ section.editable = options.editable;
dgozman 2017/02/25 01:27:29 !!options.editable
chenwilliam 2017/04/07 20:59:27 Done.
+ return section.element;
+ }
+};

Powered by Google App Engine
This is Rietveld 408576698