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

Unified Diff: third_party/WebKit/Source/devtools/front_end/ui/ColorSwatch.js

Issue 2230183004: DevTools: Add shadow-editor swatch/icon before box-shadows and text-shadows (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: New image swatches.png Created 4 years, 4 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: third_party/WebKit/Source/devtools/front_end/ui/ColorSwatch.js
diff --git a/third_party/WebKit/Source/devtools/front_end/ui/ColorSwatch.js b/third_party/WebKit/Source/devtools/front_end/ui/ColorSwatch.js
index f35a7cfb36048d9d1e676fc5c6e7d5f093b973cc..d8299e7ec6818cf20044b299925d943a752c076e 100644
--- a/third_party/WebKit/Source/devtools/front_end/ui/ColorSwatch.js
+++ b/third_party/WebKit/Source/devtools/front_end/ui/ColorSwatch.js
@@ -163,3 +163,16 @@ WebInspector.ColorSwatch._nextColorFormat = function(color, curFormat)
return cf.RGBA;
}
}
+
+WebInspector.ShadowSwatch = {}
+
+/**
+ * @return {!Element}
+ */
+WebInspector.ShadowSwatch.create = function()
+{
+ var element = createElementWithClass("span", "shadow-icon");
+ var root = WebInspector.createShadowRootWithCoreStyles(element, "ui/shadowSwatch.css");
+ root.createChild("span", "shadow-swatch");
+ return element;
+}

Powered by Google App Engine
This is Rietveld 408576698