Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(480)

Unified Diff: Source/core/dom/Node.h

Issue 478243002: bindings: Adds virtual ScriptWrappable::wrap method. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Synced. Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/core/dom/NamedNodeMap.h ('k') | Source/core/dom/Node.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/dom/Node.h
diff --git a/Source/core/dom/Node.h b/Source/core/dom/Node.h
index 43d17eec3b5ea77ed86722e1ae0d5be48aef36d8..98ea05cb5beb6899d4cedf83dd752c80eb693edb 100644
--- a/Source/core/dom/Node.h
+++ b/Source/core/dom/Node.h
@@ -122,12 +122,12 @@ protected:
#endif
class Node : NODE_BASE_CLASSES {
+ DEFINE_EVENT_TARGET_REFCOUNTING_WILL_BE_REMOVED(TreeShared<Node>);
+ DEFINE_WRAPPERTYPEINFO();
+ WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(Node);
friend class Document;
friend class TreeScope;
friend class TreeScopeAdopter;
-
- DEFINE_EVENT_TARGET_REFCOUNTING_WILL_BE_REMOVED(TreeShared<Node>);
- WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(Node);
public:
enum NodeType {
ELEMENT_NODE = 1,
@@ -660,6 +660,8 @@ public:
unsigned lengthOfContents() const;
+ virtual v8::Handle<v8::Object> wrap(v8::Handle<v8::Object> creationContext, v8::Isolate*) OVERRIDE;
+
private:
enum NodeFlags {
HasRareDataFlag = 1,
@@ -890,4 +892,4 @@ void showTree(const blink::Node*);
void showNodePath(const blink::Node*);
#endif
-#endif
+#endif // Node_h
« no previous file with comments | « Source/core/dom/NamedNodeMap.h ('k') | Source/core/dom/Node.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698