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 |
+} |