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

Unified Diff: Source/devtools/front_end/ui/Section.js

Issue 714423005: DevTools: move front-end files from components to ui. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 1 month 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: 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
+}

Powered by Google App Engine
This is Rietveld 408576698