OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2012 Google Inc. All rights reserved. | 2 * Copyright (C) 2012 Google Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
6 * met: | 6 * met: |
7 * | 7 * |
8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
(...skipping 13 matching lines...) Expand all Loading... |
24 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, | 24 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, |
25 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY | 25 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY |
26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | 26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | 27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
29 */ | 29 */ |
30 | 30 |
31 #ifndef DOMEditor_h | 31 #ifndef DOMEditor_h |
32 #define DOMEditor_h | 32 #define DOMEditor_h |
33 | 33 |
| 34 #include "core/inspector/protocol/Forward.h" |
34 #include "platform/heap/Handle.h" | 35 #include "platform/heap/Handle.h" |
35 #include "platform/inspector_protocol/InspectorProtocol.h" | |
36 #include "wtf/text/WTFString.h" | 36 #include "wtf/text/WTFString.h" |
37 | 37 |
38 namespace blink { | 38 namespace blink { |
39 | 39 |
40 class ContainerNode; | 40 class ContainerNode; |
41 class Element; | 41 class Element; |
42 class ExceptionState; | 42 class ExceptionState; |
43 class InspectorHistory; | 43 class InspectorHistory; |
44 class Node; | 44 class Node; |
45 class Text; | 45 class Text; |
46 | 46 |
| 47 using protocol::ErrorString; |
| 48 |
47 class DOMEditor final : public GarbageCollected<DOMEditor> { | 49 class DOMEditor final : public GarbageCollected<DOMEditor> { |
48 WTF_MAKE_NONCOPYABLE(DOMEditor); | 50 WTF_MAKE_NONCOPYABLE(DOMEditor); |
49 public: | 51 public: |
50 explicit DOMEditor(InspectorHistory*); | 52 explicit DOMEditor(InspectorHistory*); |
51 | 53 |
52 DECLARE_TRACE(); | 54 DECLARE_TRACE(); |
53 | 55 |
54 bool insertBefore(ContainerNode* parentNode, Node*, Node* anchorNode, Except
ionState&); | 56 bool insertBefore(ContainerNode* parentNode, Node*, Node* anchorNode, Except
ionState&); |
55 bool removeChild(ContainerNode* parentNode, Node*, ExceptionState&); | 57 bool removeChild(ContainerNode* parentNode, Node*, ExceptionState&); |
56 bool setAttribute(Element*, const String& name, const String& value, Excepti
onState&); | 58 bool setAttribute(Element*, const String& name, const String& value, Excepti
onState&); |
(...skipping 21 matching lines...) Expand all Loading... |
78 class ReplaceChildNodeAction; | 80 class ReplaceChildNodeAction; |
79 class SetNodeValueAction; | 81 class SetNodeValueAction; |
80 | 82 |
81 Member<InspectorHistory> m_history; | 83 Member<InspectorHistory> m_history; |
82 }; | 84 }; |
83 | 85 |
84 | 86 |
85 } // namespace blink | 87 } // namespace blink |
86 | 88 |
87 #endif // !defined(DOMEditor_h) | 89 #endif // !defined(DOMEditor_h) |
OLD | NEW |