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

Unified Diff: Source/devtools/front_end/StylesSidebarPane.js

Issue 213423010: DevTools: Migrate General tab settings to extensions (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 9 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: Source/devtools/front_end/StylesSidebarPane.js
diff --git a/Source/devtools/front_end/StylesSidebarPane.js b/Source/devtools/front_end/StylesSidebarPane.js
index d98c1cf65e2968ccdd61a9b8ed9023d940255fc4..b02f3aa67077dfc8b61f028e7749305d6d6d4906 100644
--- a/Source/devtools/front_end/StylesSidebarPane.js
+++ b/Source/devtools/front_end/StylesSidebarPane.js
@@ -3246,3 +3246,29 @@ WebInspector.StylesSidebarPane.CSSPropertyPrompt.prototype = {
__proto__: WebInspector.TextPrompt.prototype
}
+
+/**
+ * @constructor
+ * @extends {WebInspector.SelectUISettingDelegate}
+ */
+WebInspector.StylesSidebarPane.ColorFormatSettingDelegate = function()
+{
+ WebInspector.SelectUISettingDelegate.call(this);
+}
+
+WebInspector.StylesSidebarPane.ColorFormatSettingDelegate.prototype = {
+ /**
+ * @return {!Array.<!Array.<*>>}
+ */
+ settingOptions: function()
+ {
+ return [
+ [ WebInspector.UIString("As authored"), WebInspector.Color.Format.Original ],
pfeldman 2014/03/27 15:27:14 Lets be brave enough to get it from descriptor.
apavlov 2014/03/28 10:21:23 Done.
+ [ "HEX: #DAC0DE", WebInspector.Color.Format.HEX ],
+ [ "RGB: rgb(128, 255, 255)", WebInspector.Color.Format.RGB ],
+ [ "HSL: hsl(300, 80%, 90%)", WebInspector.Color.Format.HSL ]
+ ];
+ },
+
+ __proto__: WebInspector.SelectUISettingDelegate.prototype
+}

Powered by Google App Engine
This is Rietveld 408576698