Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 /* | 1 /* |
| 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) | 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) |
| 3 * (C) 1999 Antti Koivisto (koivisto@kde.org) | 3 * (C) 1999 Antti Koivisto (koivisto@kde.org) |
| 4 * (C) 2001 Dirk Mueller (mueller@kde.org) | 4 * (C) 2001 Dirk Mueller (mueller@kde.org) |
| 5 * Copyright (C) 2004-2011, 2014 Apple Inc. All rights reserved. | 5 * Copyright (C) 2004-2011, 2014 Apple Inc. All rights reserved. |
| 6 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t orchmobile.com/) | 6 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t orchmobile.com/) |
| 7 * | 7 * |
| 8 * This library is free software; you can redistribute it and/or | 8 * This library is free software; you can redistribute it and/or |
| 9 * modify it under the terms of the GNU Library General Public | 9 * modify it under the terms of the GNU Library General Public |
| 10 * License as published by the Free Software Foundation; either | 10 * License as published by the Free Software Foundation; either |
| (...skipping 10 matching lines...) Expand all Loading... | |
| 21 * Boston, MA 02110-1301, USA. | 21 * Boston, MA 02110-1301, USA. |
| 22 * | 22 * |
| 23 */ | 23 */ |
| 24 | 24 |
| 25 #ifndef Node_h | 25 #ifndef Node_h |
| 26 #define Node_h | 26 #define Node_h |
| 27 | 27 |
| 28 #include "bindings/core/v8/ExceptionStatePlaceholder.h" | 28 #include "bindings/core/v8/ExceptionStatePlaceholder.h" |
| 29 #include "bindings/core/v8/NodeOrString.h" | 29 #include "bindings/core/v8/NodeOrString.h" |
| 30 #include "core/CoreExport.h" | 30 #include "core/CoreExport.h" |
| 31 #include "core/dom/GetRootNodeOptions.h" | |
|
kochi
2016/07/25 04:48:03
Strictly speaking you don't have to include this i
hayato
2016/07/25 05:03:43
Done
| |
| 31 #include "core/dom/MutationObserver.h" | 32 #include "core/dom/MutationObserver.h" |
| 32 #include "core/dom/SimulatedClickOptions.h" | 33 #include "core/dom/SimulatedClickOptions.h" |
| 33 #include "core/dom/TreeScope.h" | 34 #include "core/dom/TreeScope.h" |
| 34 #include "core/editing/EditingBoundary.h" | 35 #include "core/editing/EditingBoundary.h" |
| 35 #include "core/events/EventTarget.h" | 36 #include "core/events/EventTarget.h" |
| 36 #include "core/style/ComputedStyleConstants.h" | 37 #include "core/style/ComputedStyleConstants.h" |
| 37 #include "platform/geometry/LayoutRect.h" | 38 #include "platform/geometry/LayoutRect.h" |
| 38 #include "platform/heap/Handle.h" | 39 #include "platform/heap/Handle.h" |
| 39 #include "wtf/Forward.h" | 40 #include "wtf/Forward.h" |
| 40 | 41 |
| (...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 194 virtual NodeType getNodeType() const = 0; | 195 virtual NodeType getNodeType() const = 0; |
| 195 ContainerNode* parentNode() const; | 196 ContainerNode* parentNode() const; |
| 196 Element* parentElement() const; | 197 Element* parentElement() const; |
| 197 ContainerNode* parentElementOrShadowRoot() const; | 198 ContainerNode* parentElementOrShadowRoot() const; |
| 198 ContainerNode* parentElementOrDocumentFragment() const; | 199 ContainerNode* parentElementOrDocumentFragment() const; |
| 199 Node* previousSibling() const { return m_previous; } | 200 Node* previousSibling() const { return m_previous; } |
| 200 Node* nextSibling() const { return m_next; } | 201 Node* nextSibling() const { return m_next; } |
| 201 NodeList* childNodes(); | 202 NodeList* childNodes(); |
| 202 Node* firstChild() const; | 203 Node* firstChild() const; |
| 203 Node* lastChild() const; | 204 Node* lastChild() const; |
| 205 Node* getRootNode(const GetRootNodeOptions&) const; | |
| 204 Node& treeRoot() const; | 206 Node& treeRoot() const; |
| 205 Node& shadowIncludingRoot() const; | 207 Node& shadowIncludingRoot() const; |
| 206 bool isUnclosedNodeOf(const Node&) const; | 208 bool isUnclosedNodeOf(const Node&) const; |
| 207 | 209 |
| 208 void prepend(const HeapVector<NodeOrString>&, ExceptionState&); | 210 void prepend(const HeapVector<NodeOrString>&, ExceptionState&); |
| 209 void append(const HeapVector<NodeOrString>&, ExceptionState&); | 211 void append(const HeapVector<NodeOrString>&, ExceptionState&); |
| 210 void before(const HeapVector<NodeOrString>&, ExceptionState&); | 212 void before(const HeapVector<NodeOrString>&, ExceptionState&); |
| 211 void after(const HeapVector<NodeOrString>&, ExceptionState&); | 213 void after(const HeapVector<NodeOrString>&, ExceptionState&); |
| 212 void replaceWith(const HeapVector<NodeOrString>&, ExceptionState&); | 214 void replaceWith(const HeapVector<NodeOrString>&, ExceptionState&); |
| 213 void remove(ExceptionState& = ASSERT_NO_EXCEPTION); | 215 void remove(ExceptionState& = ASSERT_NO_EXCEPTION); |
| (...skipping 676 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 890 } // namespace blink | 892 } // namespace blink |
| 891 | 893 |
| 892 #ifndef NDEBUG | 894 #ifndef NDEBUG |
| 893 // Outside the WebCore namespace for ease of invocation from gdb. | 895 // Outside the WebCore namespace for ease of invocation from gdb. |
| 894 void showNode(const blink::Node*); | 896 void showNode(const blink::Node*); |
| 895 void showTree(const blink::Node*); | 897 void showTree(const blink::Node*); |
| 896 void showNodePath(const blink::Node*); | 898 void showNodePath(const blink::Node*); |
| 897 #endif | 899 #endif |
| 898 | 900 |
| 899 #endif // Node_h | 901 #endif // Node_h |
| OLD | NEW |