Index: Source/core/inspector/LayoutEditor.h |
diff --git a/Source/core/inspector/LayoutEditor.h b/Source/core/inspector/LayoutEditor.h |
index 29c25cf7c4c1f8852a00a600a9a528f7469406ff..739ce707881c5a4bbbe3f8f297768f3b30f8fa43 100644 |
--- a/Source/core/inspector/LayoutEditor.h |
+++ b/Source/core/inspector/LayoutEditor.h |
@@ -8,7 +8,8 @@ |
#include "core/CSSPropertyNames.h" |
#include "core/CoreExport.h" |
#include "core/css/CSSPrimitiveValue.h" |
-#include "core/dom/Node.h" |
+#include "core/dom/Element.h" |
+#include "core/inspector/InspectorHighlight.h" |
#include "platform/heap/Handle.h" |
#include "wtf/PassOwnPtr.h" |
#include "wtf/RefPtr.h" |
@@ -18,37 +19,45 @@ namespace blink { |
class CSSPrimitiveValue; |
class InspectorCSSAgent; |
+class InspectorDOMAgent; |
class JSONArray; |
class JSONObject; |
class CORE_EXPORT LayoutEditor final: public NoBaseWillBeGarbageCollectedFinalized<LayoutEditor> { |
WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(LayoutEditor); |
public: |
- static PassOwnPtrWillBeRawPtr<LayoutEditor> create(InspectorCSSAgent* cssAgent) |
+ static PassOwnPtrWillBeRawPtr<LayoutEditor> create(InspectorCSSAgent* cssAgent, InspectorDOMAgent* domAgent) |
{ |
- return adoptPtrWillBeNoop(new LayoutEditor(cssAgent)); |
+ return adoptPtrWillBeNoop(new LayoutEditor(cssAgent, domAgent)); |
} |
void setNode(Node*); |
+ Node* node() { return m_element.get(); } |
PassRefPtr<JSONObject> buildJSONInfo() const; |
void overlayStartedPropertyChange(const String&); |
void overlayPropertyChanged(float); |
void overlayEndedPropertyChange(); |
+ void clearSelection(bool); |
+ void setHighlightConfig(const InspectorHighlightConfig& highlightConfig) { m_highlightConfig = adoptPtr(new InspectorHighlightConfig(highlightConfig)); } |
+ InspectorHighlightConfig& highlightConfig() { return *m_highlightConfig.get(); } |
DECLARE_VIRTUAL_TRACE(); |
private: |
- explicit LayoutEditor(InspectorCSSAgent*); |
+ LayoutEditor(InspectorCSSAgent*, InspectorDOMAgent*); |
RefPtrWillBeRawPtr<CSSPrimitiveValue> getPropertyCSSValue(CSSPropertyID) const; |
PassRefPtr<JSONObject> createValueDescription(const String&) const; |
void appendAnchorFor(JSONArray*, const String&, const String&, const FloatPoint&, const FloatPoint&) const; |
RefPtrWillBeMember<Element> m_element; |
RawPtrWillBeMember<InspectorCSSAgent> m_cssAgent; |
+ RawPtrWillBeMember<InspectorDOMAgent> m_domAgent; |
CSSPropertyID m_changingProperty; |
float m_propertyInitialValue; |
float m_factor; |
CSSPrimitiveValue::UnitType m_valueUnitType; |
+ bool m_isDirty; |
+ OwnPtr<InspectorHighlightConfig> m_highlightConfig; |
}; |
} // namespace blink |