| 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 LayoutEditor_h | 5 #ifndef LayoutEditor_h |
| 6 #define LayoutEditor_h | 6 #define LayoutEditor_h |
| 7 | 7 |
| 8 #include "core/CSSPropertyNames.h" | 8 #include "core/CSSPropertyNames.h" |
| 9 #include "core/CoreExport.h" | 9 #include "core/CoreExport.h" |
| 10 #include "core/css/CSSPrimitiveValue.h" | 10 #include "core/css/CSSPrimitiveValue.h" |
| 11 #include "core/dom/Element.h" | 11 #include "core/dom/Element.h" |
| 12 #include "platform/heap/Handle.h" | 12 #include "platform/heap/Handle.h" |
| 13 #include "wtf/PassOwnPtr.h" | 13 #include "wtf/PassOwnPtr.h" |
| 14 #include "wtf/RefPtr.h" | 14 #include "wtf/RefPtr.h" |
| 15 #include "wtf/text/WTFString.h" | 15 #include "wtf/text/WTFString.h" |
| 16 | 16 |
| 17 namespace blink { | 17 namespace blink { |
| 18 | 18 |
| 19 class CSSPrimitiveValue; | 19 class CSSPrimitiveValue; |
| 20 class InspectorCSSAgent; | 20 class InspectorCSSAgent; |
| 21 class InspectorDOMAgent; | 21 class InspectorDOMAgent; |
| 22 class JSONArray; | 22 class JSONArray; |
| 23 class JSONObject; | 23 class JSONObject; |
| 24 | 24 |
| 25 class CORE_EXPORT LayoutEditor final : public NoBaseWillBeGarbageCollectedFinali
zed<LayoutEditor> { | 25 class CORE_EXPORT LayoutEditor final : public NoBaseWillBeGarbageCollectedFinali
zed<LayoutEditor> { |
| 26 WTF_MAKE_FAST_ALLOCATED_WILL_BE_REMOVED(LayoutEditor); |
| 26 public: | 27 public: |
| 27 static PassOwnPtrWillBeRawPtr<LayoutEditor> create(InspectorCSSAgent* cssAge
nt, InspectorDOMAgent* domAgent) | 28 static PassOwnPtrWillBeRawPtr<LayoutEditor> create(InspectorCSSAgent* cssAge
nt, InspectorDOMAgent* domAgent) |
| 28 { | 29 { |
| 29 return adoptPtrWillBeNoop(new LayoutEditor(cssAgent, domAgent)); | 30 return adoptPtrWillBeNoop(new LayoutEditor(cssAgent, domAgent)); |
| 30 } | 31 } |
| 31 | 32 |
| 32 void selectNode(Node*); | 33 void selectNode(Node*); |
| 33 Node* node() { return m_element.get(); } | 34 Node* node() { return m_element.get(); } |
| 34 PassRefPtr<JSONObject> buildJSONInfo() const; | 35 PassRefPtr<JSONObject> buildJSONInfo() const; |
| 35 void overlayStartedPropertyChange(const String&); | 36 void overlayStartedPropertyChange(const String&); |
| (...skipping 16 matching lines...) Expand all Loading... |
| 52 float m_propertyInitialValue; | 53 float m_propertyInitialValue; |
| 53 float m_factor; | 54 float m_factor; |
| 54 CSSPrimitiveValue::UnitType m_valueUnitType; | 55 CSSPrimitiveValue::UnitType m_valueUnitType; |
| 55 bool m_isDirty; | 56 bool m_isDirty; |
| 56 }; | 57 }; |
| 57 | 58 |
| 58 } // namespace blink | 59 } // namespace blink |
| 59 | 60 |
| 60 | 61 |
| 61 #endif // !defined(LayoutEditor_h) | 62 #endif // !defined(LayoutEditor_h) |
| OLD | NEW |