| 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 14 matching lines...) Expand all Loading... |
| 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 "platform/heap/Handle.h" | 34 #include "platform/heap/Handle.h" |
| 35 #include "platform/inspector_protocol/TypeBuilder.h" |
| 35 #include "wtf/text/WTFString.h" | 36 #include "wtf/text/WTFString.h" |
| 36 | 37 |
| 37 namespace blink { | 38 namespace blink { |
| 38 | 39 |
| 39 class ContainerNode; | 40 class ContainerNode; |
| 40 class Element; | 41 class Element; |
| 41 class ExceptionState; | 42 class ExceptionState; |
| 42 class InspectorHistory; | 43 class InspectorHistory; |
| 43 class Node; | 44 class Node; |
| 44 class Text; | 45 class Text; |
| 45 | 46 |
| 46 typedef String ErrorString; | |
| 47 | |
| 48 class DOMEditor final : public NoBaseWillBeGarbageCollected<DOMEditor> { | 47 class DOMEditor final : public NoBaseWillBeGarbageCollected<DOMEditor> { |
| 49 WTF_MAKE_NONCOPYABLE(DOMEditor); | 48 WTF_MAKE_NONCOPYABLE(DOMEditor); |
| 50 USING_FAST_MALLOC_WILL_BE_REMOVED(DOMEditor); | 49 USING_FAST_MALLOC_WILL_BE_REMOVED(DOMEditor); |
| 51 public: | 50 public: |
| 52 explicit DOMEditor(InspectorHistory*); | 51 explicit DOMEditor(InspectorHistory*); |
| 53 | 52 |
| 54 DECLARE_TRACE(); | 53 DECLARE_TRACE(); |
| 55 | 54 |
| 56 bool insertBefore(ContainerNode* parentNode, PassRefPtrWillBeRawPtr<Node>, N
ode* anchorNode, ExceptionState&); | 55 bool insertBefore(ContainerNode* parentNode, PassRefPtrWillBeRawPtr<Node>, N
ode* anchorNode, ExceptionState&); |
| 57 bool removeChild(ContainerNode* parentNode, Node*, ExceptionState&); | 56 bool removeChild(ContainerNode* parentNode, Node*, ExceptionState&); |
| (...skipping 22 matching lines...) Expand all Loading... |
| 80 class ReplaceChildNodeAction; | 79 class ReplaceChildNodeAction; |
| 81 class SetNodeValueAction; | 80 class SetNodeValueAction; |
| 82 | 81 |
| 83 RawPtrWillBeMember<InspectorHistory> m_history; | 82 RawPtrWillBeMember<InspectorHistory> m_history; |
| 84 }; | 83 }; |
| 85 | 84 |
| 86 | 85 |
| 87 } // namespace blink | 86 } // namespace blink |
| 88 | 87 |
| 89 #endif // !defined(DOMEditor_h) | 88 #endif // !defined(DOMEditor_h) |
| OLD | NEW |