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

Unified Diff: Source/WebCore/inspector/InspectorOverlay.h

Issue 11366221: Merge 133885 - Web Inspector: Add option to disable rulers (Elements panel) (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/1312/
Patch Set: Created 8 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
« no previous file with comments | « Source/WebCore/inspector/InspectorDOMAgent.cpp ('k') | Source/WebCore/inspector/InspectorOverlay.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/WebCore/inspector/InspectorOverlay.h
===================================================================
--- Source/WebCore/inspector/InspectorOverlay.h (revision 134412)
+++ Source/WebCore/inspector/InspectorOverlay.h (working copy)
@@ -58,6 +58,7 @@
Color border;
Color margin;
bool showInfo;
+ bool showRulers;
};
enum HighlightType {
@@ -66,13 +67,20 @@
};
struct Highlight {
- void setColors(const HighlightConfig& highlightConfig)
+ Highlight()
+ : type(HighlightTypeNode)
+ , showRulers(false)
{
+ }
+
+ void setDataFromConfig(const HighlightConfig& highlightConfig)
+ {
contentColor = highlightConfig.content;
contentOutlineColor = highlightConfig.contentOutline;
paddingColor = highlightConfig.padding;
borderColor = highlightConfig.border;
marginColor = highlightConfig.margin;
+ showRulers = highlightConfig.showRulers;
}
Color contentColor;
@@ -85,6 +93,7 @@
// When the type is Rects, this is just a list of quads.
HighlightType type;
Vector<FloatQuad> quads;
+ bool showRulers;
};
class InspectorOverlay {
« no previous file with comments | « Source/WebCore/inspector/InspectorDOMAgent.cpp ('k') | Source/WebCore/inspector/InspectorOverlay.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698