Index: Source/devtools/front_end/ui/Section.js |
diff --git a/Source/devtools/front_end/components/Section.js b/Source/devtools/front_end/ui/Section.js |
similarity index 88% |
rename from Source/devtools/front_end/components/Section.js |
rename to Source/devtools/front_end/ui/Section.js |
index 1ce317b0e9c2257ee1f9308799e808d2a8cd7677..374d0ee69c52bdb1b10ffd9726a4fb1270964e74 100644 |
--- a/Source/devtools/front_end/components/Section.js |
+++ b/Source/devtools/front_end/ui/Section.js |
@@ -218,3 +218,27 @@ WebInspector.Section.prototype = { |
event.consume(); |
} |
} |
+ |
+/** |
+ * @constructor |
+ * @extends {WebInspector.Section} |
+ * @param {string|!Element} title |
+ * @param {string=} subtitle |
+ */ |
+WebInspector.PropertiesSection = function(title, subtitle) |
+{ |
+ WebInspector.Section.call(this, title, subtitle); |
+ |
+ this.headerElement.classList.add("monospace"); |
+ this.propertiesElement = createElement("ol"); |
+ this.propertiesElement.className = "properties properties-tree monospace"; |
+ this.propertiesTreeOutline = new TreeOutline(this.propertiesElement, true); |
+ this.propertiesTreeOutline.setFocusable(false); |
+ this.propertiesTreeOutline.section = this; |
+ |
+ this.element.appendChild(this.propertiesElement); |
+} |
+ |
+WebInspector.PropertiesSection.prototype = { |
+ __proto__: WebInspector.Section.prototype |
+} |