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

Side by Side Diff: Source/core/inspector/InspectorHighlight.cpp

Issue 1311783003: Devtools[LayoutEditor]: Rework layout-editor workflow (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@resize
Patch Set: Address comments Created 5 years, 3 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 unified diff | Download patch
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "config.h" 5 #include "config.h"
6 #include "core/inspector/InspectorHighlight.h" 6 #include "core/inspector/InspectorHighlight.h"
7 7
8 #include "core/dom/ClientRect.h" 8 #include "core/dom/ClientRect.h"
9 #include "core/dom/PseudoElement.h" 9 #include "core/dom/PseudoElement.h"
10 #include "core/frame/FrameView.h" 10 #include "core/frame/FrameView.h"
(...skipping 207 matching lines...) Expand 10 before | Expand all | Expand 10 after
218 , m_showRulers(false) 218 , m_showRulers(false)
219 , m_showExtensionLines(false) 219 , m_showExtensionLines(false)
220 , m_displayAsMaterial(false) 220 , m_displayAsMaterial(false)
221 { 221 {
222 } 222 }
223 223
224 InspectorHighlightConfig::InspectorHighlightConfig() 224 InspectorHighlightConfig::InspectorHighlightConfig()
225 : showInfo(false) 225 : showInfo(false)
226 , showRulers(false) 226 , showRulers(false)
227 , showExtensionLines(false) 227 , showExtensionLines(false)
228 , showLayoutEditor(false)
229 , displayAsMaterial(false) 228 , displayAsMaterial(false)
230 { 229 {
231 } 230 }
232 231
233 InspectorHighlight::InspectorHighlight(Node* node, const InspectorHighlightConfi g& highlightConfig, bool appendElementInfo) 232 InspectorHighlight::InspectorHighlight(Node* node, const InspectorHighlightConfi g& highlightConfig, bool appendElementInfo)
234 : m_highlightPaths(JSONArray::create()) 233 : m_highlightPaths(JSONArray::create())
235 , m_showRulers(highlightConfig.showRulers) 234 , m_showRulers(highlightConfig.showRulers)
236 , m_showExtensionLines(highlightConfig.showExtensionLines) 235 , m_showExtensionLines(highlightConfig.showExtensionLines)
237 , m_displayAsMaterial(highlightConfig.displayAsMaterial) 236 , m_displayAsMaterial(highlightConfig.displayAsMaterial)
238 { 237 {
(...skipping 201 matching lines...) Expand 10 before | Expand all | Expand 10 after
440 config.contentOutline = Color(128, 0, 0, 0); 439 config.contentOutline = Color(128, 0, 0, 0);
441 config.padding = Color(0, 255, 0, 0); 440 config.padding = Color(0, 255, 0, 0);
442 config.border = Color(0, 0, 255, 0); 441 config.border = Color(0, 0, 255, 0);
443 config.margin = Color(255, 255, 255, 0); 442 config.margin = Color(255, 255, 255, 0);
444 config.eventTarget = Color(128, 128, 128, 0); 443 config.eventTarget = Color(128, 128, 128, 0);
445 config.shape = Color(0, 0, 0, 0); 444 config.shape = Color(0, 0, 0, 0);
446 config.shapeMargin = Color(128, 128, 128, 0); 445 config.shapeMargin = Color(128, 128, 128, 0);
447 config.showInfo = true; 446 config.showInfo = true;
448 config.showRulers = true; 447 config.showRulers = true;
449 config.showExtensionLines = true; 448 config.showExtensionLines = true;
450 config.showLayoutEditor = false;
451 config.displayAsMaterial = false; 449 config.displayAsMaterial = false;
452 return config; 450 return config;
453 } 451 }
454 452
455 } // namespace blink 453 } // namespace blink
OLDNEW
« no previous file with comments | « Source/core/inspector/InspectorHighlight.h ('k') | Source/core/inspector/InspectorOverlayHost.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698