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

Unified Diff: Source/core/inspector/LayoutEditor.h

Issue 1206833003: Devtools[LayoutEditor]: Pass data about property change from InspectorOverlayPage (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Address pfeldman's comment Created 5 years, 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/core/inspector/InspectorOverlayPage.html ('k') | Source/core/inspector/LayoutEditor.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/inspector/LayoutEditor.h
diff --git a/Source/core/inspector/LayoutEditor.h b/Source/core/inspector/LayoutEditor.h
index 6980b2fc6bb9fb92a8afaf0517c0cbb560916f0e..5d13532141168189f503be0e746c139b38bd031f 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(InspectorCSSAgent* cssAgent)
{
- return adoptPtrWillBeNoop(new LayoutEditor(node));
+ return adoptPtrWillBeNoop(new LayoutEditor(cssAgent));
}
+
+ void setNode(Node*);
PassRefPtr<JSONObject> buildJSONInfo() const;
DEFINE_INLINE_TRACE()
{
visitor->trace(m_node);
+ visitor->trace(m_cssAgent);
}
private:
- explicit LayoutEditor(Node*);
+ explicit LayoutEditor(InspectorCSSAgent*);
+
+ // InspectorOverlayHost::LayoutEditorListener implementation.
+ void overlayStartedPropertyChange(const String&) override;
+ void overlayPropertyChanged(float) override;
+ void overlayEndedPropertyChange() override;
RefPtrWillBeMember<Node> m_node;
+ RawPtrWillBeMember<InspectorCSSAgent> m_cssAgent;
+ CSSPropertyID m_changingProperty;
+ float m_propertyInitialValue;
};
} // namespace blink
« no previous file with comments | « Source/core/inspector/InspectorOverlayPage.html ('k') | Source/core/inspector/LayoutEditor.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698