| OLD | NEW |
| 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 #ifndef InspectorHighlight_h | 5 #ifndef InspectorHighlight_h |
| 6 #define InspectorHighlight_h | 6 #define InspectorHighlight_h |
| 7 | 7 |
| 8 #include "core/CoreExport.h" | 8 #include "core/CoreExport.h" |
| 9 #include "core/InspectorTypeBuilder.h" | 9 #include "core/InspectorTypeBuilder.h" |
| 10 #include "platform/geometry/FloatQuad.h" | 10 #include "platform/geometry/FloatQuad.h" |
| 11 #include "platform/geometry/LayoutRect.h" | 11 #include "platform/geometry/LayoutRect.h" |
| 12 #include "platform/graphics/Color.h" | 12 #include "platform/graphics/Color.h" |
| 13 #include "platform/heap/Handle.h" | 13 #include "platform/heap/Handle.h" |
| 14 | 14 |
| 15 namespace blink { | 15 namespace blink { |
| 16 | 16 |
| 17 class Color; | 17 class Color; |
| 18 class JSONValue; | 18 class JSONValue; |
| 19 | 19 |
| 20 struct CORE_EXPORT InspectorHighlightConfig { | 20 struct CORE_EXPORT InspectorHighlightConfig { |
| 21 WTF_MAKE_FAST_ALLOCATED(InspectorHighlightConfig); | 21 WTF_MAKE_FAST_ALLOCATED(InspectorHighlightConfig); |
| 22 public: | 22 public: |
| 23 InspectorHighlightConfig(); | 23 InspectorHighlightConfig(); |
| 24 InspectorHighlightConfig(const InspectorHighlightConfig&); |
| 24 | 25 |
| 25 Color content; | 26 Color content; |
| 26 Color contentOutline; | 27 Color contentOutline; |
| 27 Color padding; | 28 Color padding; |
| 28 Color border; | 29 Color border; |
| 29 Color margin; | 30 Color margin; |
| 30 Color eventTarget; | 31 Color eventTarget; |
| 31 Color shape; | 32 Color shape; |
| 32 Color shapeMargin; | 33 Color shapeMargin; |
| 33 | 34 |
| 34 bool showInfo; | 35 bool showInfo; |
| 35 bool showRulers; | 36 bool showRulers; |
| 36 bool showExtensionLines; | 37 bool showExtensionLines; |
| 37 bool showLayoutEditor; | |
| 38 bool displayAsMaterial; | 38 bool displayAsMaterial; |
| 39 }; | 39 }; |
| 40 | 40 |
| 41 class CORE_EXPORT InspectorHighlight { | 41 class CORE_EXPORT InspectorHighlight { |
| 42 STACK_ALLOCATED(); | 42 STACK_ALLOCATED(); |
| 43 public: | 43 public: |
| 44 InspectorHighlight(Node*, const InspectorHighlightConfig&, bool appendElemen
tInfo); | 44 InspectorHighlight(Node*, const InspectorHighlightConfig&, bool appendElemen
tInfo); |
| 45 InspectorHighlight(); | 45 InspectorHighlight(); |
| 46 ~InspectorHighlight(); | 46 ~InspectorHighlight(); |
| 47 | 47 |
| (...skipping 13 matching lines...) Expand all Loading... |
| 61 RefPtr<JSONObject> m_elementInfo; | 61 RefPtr<JSONObject> m_elementInfo; |
| 62 RefPtr<JSONArray> m_highlightPaths; | 62 RefPtr<JSONArray> m_highlightPaths; |
| 63 bool m_showRulers; | 63 bool m_showRulers; |
| 64 bool m_showExtensionLines; | 64 bool m_showExtensionLines; |
| 65 bool m_displayAsMaterial; | 65 bool m_displayAsMaterial; |
| 66 }; | 66 }; |
| 67 | 67 |
| 68 } // namespace blink | 68 } // namespace blink |
| 69 | 69 |
| 70 #endif // InspectorHighlight_h | 70 #endif // InspectorHighlight_h |
| OLD | NEW |