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

Unified Diff: Source/core/inspector/InspectorHighlight.h

Issue 1204453002: Devtools: Create layout editor experiment (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Address comments Created 5 years, 6 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/core/inspector/InspectorHighlight.h
diff --git a/Source/core/inspector/InspectorHighlight.h b/Source/core/inspector/InspectorHighlight.h
index 5549b36b02fa2f061fa46b0efc0cafd961ed8dd6..54eea7b4f0909350f886fdbd41d75211ae5a9f0c 100644
--- a/Source/core/inspector/InspectorHighlight.h
+++ b/Source/core/inspector/InspectorHighlight.h
@@ -15,6 +15,7 @@
namespace blink {
class Color;
+class JSONObject;
class JSONValue;
struct InspectorHighlightConfig {
@@ -32,6 +33,7 @@ public:
bool showInfo;
bool showRulers;
bool showExtensionLines;
+ bool showLayoutEditor;
};
class CORE_EXPORT InspectorHighlight {
@@ -43,6 +45,9 @@ public:
static bool getBoxModel(Node*, RefPtr<TypeBuilder::DOM::BoxModel>&);
static InspectorHighlightConfig defaultConfig();
+ static PassOwnPtr<InspectorHighlightConfig> highlightConfigFromInspectorObject(JSONObject*);
+ static PassOwnPtr<InspectorHighlightConfig> highlightConfigWithColors(const RefPtr<JSONObject>*, const RefPtr<JSONObject>*);
+
void appendPath(PassRefPtr<JSONArrayBase> path, const Color& fillColor, const Color& outlineColor);
void appendQuad(const FloatQuad&, const Color& fillColor, const Color& outlineColor = Color::transparent);

Powered by Google App Engine
This is Rietveld 408576698