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

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

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 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 f23d850ed13472d4598941341a59acecc28f73cd..a549992460355bce5dea9fadebc0fbc3cdb757be 100644
--- a/Source/core/inspector/LayoutEditor.h
+++ b/Source/core/inspector/LayoutEditor.h
@@ -8,7 +8,7 @@
#include "core/CSSPropertyNames.h"
#include "core/CoreExport.h"
#include "core/css/CSSPrimitiveValue.h"
-#include "core/dom/Node.h"
+#include "core/dom/Element.h"
#include "platform/heap/Handle.h"
#include "wtf/PassOwnPtr.h"
#include "wtf/RefPtr.h"
@@ -18,36 +18,41 @@ namespace blink {
class CSSPrimitiveValue;
class InspectorCSSAgent;
+class InspectorDOMAgent;
class JSONArray;
class JSONObject;
class CORE_EXPORT LayoutEditor final : public NoBaseWillBeGarbageCollectedFinalized<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*);
+ void selectNode(Node*);
+ Node* node() { return m_element.get(); }
PassRefPtr<JSONObject> buildJSONInfo() const;
void overlayStartedPropertyChange(const String&);
void overlayPropertyChanged(float);
void overlayEndedPropertyChange();
+ void clearSelection(bool);
DECLARE_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;
};
} // 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