Chromium Code Reviews| 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; |
| + } |
| +}; |