Chromium Code Reviews| Index: Source/core/inspector/LayoutEditor.h |
| diff --git a/Source/core/inspector/LayoutEditor.h b/Source/core/inspector/LayoutEditor.h |
| index 6980b2fc6bb9fb92a8afaf0517c0cbb560916f0e..771b81a68d8d6746f843ac23da4a47d93df7c2ee 100644 |
| --- a/Source/core/inspector/LayoutEditor.h |
| +++ b/Source/core/inspector/LayoutEditor.h |
| @@ -5,32 +5,47 @@ |
| #ifndef LayoutEditor_h |
| #define LayoutEditor_h |
| +#include "core/CSSPropertyNames.h" |
| +#include "core/dom/Node.h" |
| +#include "core/inspector/InspectorOverlayHost.h" |
| #include "platform/heap/Handle.h" |
| #include "wtf/PassOwnPtr.h" |
| #include "wtf/RefPtr.h" |
| +#include "wtf/text/WTFString.h" |
| namespace blink { |
| class JSONObject; |
| -class Node; |
| +class InspectorCSSAgent; |
| -class LayoutEditor final : public NoBaseWillBeGarbageCollected<LayoutEditor> { |
| +class LayoutEditor final: public NoBaseWillBeGarbageCollected<LayoutEditor>, public InspectorOverlayHost::LayoutEditorListener { |
| public: |
| - static PassOwnPtrWillBeRawPtr<LayoutEditor> create(Node* node) |
| + static PassOwnPtrWillBeRawPtr<LayoutEditor> create() |
| { |
| - return adoptPtrWillBeNoop(new LayoutEditor(node)); |
| + return adoptPtrWillBeNoop(new LayoutEditor()); |
| } |
| + |
| + void setCSSAgent(InspectorCSSAgent* cssAgent) { m_cssAgent = cssAgent; } |
| + void setNode(Node* node) { m_node = node; } |
|
dgozman
2015/06/25 10:10:39
Let's reset everything on each setNode.
sergeyv
2015/06/25 12:19:16
Done.
|
| PassRefPtr<JSONObject> buildJSONInfo() const; |
| DEFINE_INLINE_TRACE() |
| { |
| visitor->trace(m_node); |
| + visitor->trace(m_cssAgent); |
| } |
| private: |
| - explicit LayoutEditor(Node*); |
| + LayoutEditor(); |
| + |
| + void overlayStartedPropertyChange(const String&) override; |
|
dgozman
2015/06/25 10:10:39
// InspectorOverlayHost::LayoutEditorListener impl
sergeyv
2015/06/25 12:19:16
Done.
|
| + void overlayPropertyChanged(float delta) override; |
| + void overlayEndedPropertyChange() override; |
| RefPtrWillBeMember<Node> m_node; |
| + RawPtrWillBeMember<InspectorCSSAgent> m_cssAgent; |
| + CSSPropertyID m_changingProperty; |
| + float m_propertyInitialValue; |
| }; |
| } // namespace blink |