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/dom/Node.h" | 10 #include "core/dom/Node.h" |
10 #include "core/inspector/InspectorOverlayHost.h" | 11 #include "core/inspector/InspectorOverlayHost.h" |
11 #include "platform/heap/Handle.h" | 12 #include "platform/heap/Handle.h" |
12 #include "wtf/PassOwnPtr.h" | 13 #include "wtf/PassOwnPtr.h" |
13 #include "wtf/RefPtr.h" | 14 #include "wtf/RefPtr.h" |
14 #include "wtf/text/WTFString.h" | 15 #include "wtf/text/WTFString.h" |
15 | 16 |
16 namespace blink { | 17 namespace blink { |
17 | 18 |
18 class JSONObject; | 19 class JSONObject; |
19 class InspectorCSSAgent; | 20 class InspectorCSSAgent; |
20 | 21 |
21 class LayoutEditor final: public NoBaseWillBeGarbageCollectedFinalized<LayoutEdi
tor>, public InspectorOverlayHost::LayoutEditorListener { | 22 class CORE_EXPORT LayoutEditor final: public NoBaseWillBeGarbageCollectedFinaliz
ed<LayoutEditor>, public InspectorOverlayHost::LayoutEditorListener { |
22 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(LayoutEditor); | 23 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(LayoutEditor); |
23 public: | 24 public: |
24 static PassOwnPtrWillBeRawPtr<LayoutEditor> create(InspectorCSSAgent* cssAge
nt) | 25 static PassOwnPtrWillBeRawPtr<LayoutEditor> create(InspectorCSSAgent* cssAge
nt) |
25 { | 26 { |
26 return adoptPtrWillBeNoop(new LayoutEditor(cssAgent)); | 27 return adoptPtrWillBeNoop(new LayoutEditor(cssAgent)); |
27 } | 28 } |
28 | 29 |
29 void setNode(Node*); | 30 void setNode(Node*); |
30 PassRefPtr<JSONObject> buildJSONInfo() const; | 31 PassRefPtr<JSONObject> buildJSONInfo() const; |
31 | 32 |
(...skipping 10 matching lines...) Expand all Loading... |
42 RefPtrWillBeMember<Node> m_node; | 43 RefPtrWillBeMember<Node> m_node; |
43 RawPtrWillBeMember<InspectorCSSAgent> m_cssAgent; | 44 RawPtrWillBeMember<InspectorCSSAgent> m_cssAgent; |
44 CSSPropertyID m_changingProperty; | 45 CSSPropertyID m_changingProperty; |
45 float m_propertyInitialValue; | 46 float m_propertyInitialValue; |
46 }; | 47 }; |
47 | 48 |
48 } // namespace blink | 49 } // namespace blink |
49 | 50 |
50 | 51 |
51 #endif // !defined(LayoutEditor_h) | 52 #endif // !defined(LayoutEditor_h) |
OLD | NEW |