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

Side by Side Diff: Source/bindings/tests/results/V8TestNode.h

Issue 39393004: IDL compiler: rename WrapperTypeInfo info => wrapperTypeInfo (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 2 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 /* 1 /*
2 This file is part of the Blink open source project. 2 This file is part of the Blink open source project.
3 This file has been auto-generated by CodeGeneratorV8.pm. DO NOT MODIFY! 3 This file has been auto-generated by CodeGeneratorV8.pm. DO NOT MODIFY!
4 4
5 This library is free software; you can redistribute it and/or 5 This library is free software; you can redistribute it and/or
6 modify it under the terms of the GNU Library General Public 6 modify it under the terms of the GNU Library General Public
7 License as published by the Free Software Foundation; either 7 License as published by the Free Software Foundation; either
8 version 2 of the License, or (at your option) any later version. 8 version 2 of the License, or (at your option) any later version.
9 9
10 This library is distributed in the hope that it will be useful, 10 This library is distributed in the hope that it will be useful,
(...skipping 21 matching lines...) Expand all
32 class V8TestNode { 32 class V8TestNode {
33 public: 33 public:
34 static bool HasInstance(v8::Handle<v8::Value>, v8::Isolate*, WrapperWorldTyp e); 34 static bool HasInstance(v8::Handle<v8::Value>, v8::Isolate*, WrapperWorldTyp e);
35 static bool HasInstanceInAnyWorld(v8::Handle<v8::Value>, v8::Isolate*); 35 static bool HasInstanceInAnyWorld(v8::Handle<v8::Value>, v8::Isolate*);
36 static v8::Handle<v8::FunctionTemplate> GetTemplate(v8::Isolate*, WrapperWor ldType); 36 static v8::Handle<v8::FunctionTemplate> GetTemplate(v8::Isolate*, WrapperWor ldType);
37 static TestNode* toNative(v8::Handle<v8::Object> object) 37 static TestNode* toNative(v8::Handle<v8::Object> object)
38 { 38 {
39 return fromInternalPointer(object->GetAlignedPointerFromInternalField(v8 DOMWrapperObjectIndex)); 39 return fromInternalPointer(object->GetAlignedPointerFromInternalField(v8 DOMWrapperObjectIndex));
40 } 40 }
41 static void derefObject(void*); 41 static void derefObject(void*);
42 static WrapperTypeInfo info; 42 static WrapperTypeInfo wrapperTypeInfo;
43 static EventTarget* toEventTarget(v8::Handle<v8::Object>); 43 static EventTarget* toEventTarget(v8::Handle<v8::Object>);
44 static void constructorCallback(const v8::FunctionCallbackInfo<v8::Value>&); 44 static void constructorCallback(const v8::FunctionCallbackInfo<v8::Value>&);
45 static const int internalFieldCount = v8DefaultWrapperInternalFieldCount + 0 ; 45 static const int internalFieldCount = v8DefaultWrapperInternalFieldCount + 0 ;
46 static inline void* toInternalPointer(TestNode* impl) 46 static inline void* toInternalPointer(TestNode* impl)
47 { 47 {
48 return V8Node::toInternalPointer(impl); 48 return V8Node::toInternalPointer(impl);
49 } 49 }
50 50
51 static inline TestNode* fromInternalPointer(void* object) 51 static inline TestNode* fromInternalPointer(void* object)
52 { 52 {
53 return static_cast<TestNode*>(V8Node::fromInternalPointer(object)); 53 return static_cast<TestNode*>(V8Node::fromInternalPointer(object));
54 } 54 }
55 static void installPerContextEnabledProperties(v8::Handle<v8::Object>, TestN ode*, v8::Isolate*) { } 55 static void installPerContextEnabledProperties(v8::Handle<v8::Object>, TestN ode*, v8::Isolate*) { }
56 static void installPerContextEnabledPrototypeProperties(v8::Handle<v8::Objec t>, v8::Isolate*) { } 56 static void installPerContextEnabledPrototypeProperties(v8::Handle<v8::Objec t>, v8::Isolate*) { }
57 57
58 private: 58 private:
59 friend v8::Handle<v8::Object> wrap(TestNode*, v8::Handle<v8::Object> creatio nContext, v8::Isolate*); 59 friend v8::Handle<v8::Object> wrap(TestNode*, v8::Handle<v8::Object> creatio nContext, v8::Isolate*);
60 static v8::Handle<v8::Object> createWrapper(PassRefPtr<TestNode>, v8::Handle <v8::Object> creationContext, v8::Isolate*); 60 static v8::Handle<v8::Object> createWrapper(PassRefPtr<TestNode>, v8::Handle <v8::Object> creationContext, v8::Isolate*);
61 }; 61 };
62 62
63 template<> 63 template<>
64 class WrapperTypeTraits<TestNode > { 64 class WrapperTypeTraits<TestNode > {
65 public: 65 public:
66 static WrapperTypeInfo* info() { return &V8TestNode::info; } 66 static WrapperTypeInfo* wrapperTypeInfo() { return &V8TestNode::wrapperTypeI nfo; }
67 }; 67 };
68 68
69 inline v8::Handle<v8::Object> wrap(TestNode* impl, v8::Handle<v8::Object> creati onContext, v8::Isolate* isolate) 69 inline v8::Handle<v8::Object> wrap(TestNode* impl, v8::Handle<v8::Object> creati onContext, v8::Isolate* isolate)
70 { 70 {
71 ASSERT(impl); 71 ASSERT(impl);
72 ASSERT(!DOMDataStore::containsWrapper<V8TestNode>(impl, isolate)); 72 ASSERT(!DOMDataStore::containsWrapper<V8TestNode>(impl, isolate));
73 return V8TestNode::createWrapper(impl, creationContext, isolate); 73 return V8TestNode::createWrapper(impl, creationContext, isolate);
74 } 74 }
75 75
76 inline v8::Handle<v8::Value> toV8(TestNode* impl, v8::Handle<v8::Object> creatio nContext, v8::Isolate* isolate) 76 inline v8::Handle<v8::Value> toV8(TestNode* impl, v8::Handle<v8::Object> creatio nContext, v8::Isolate* isolate)
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
142 142
143 template<class CallbackInfo, class Wrappable> 143 template<class CallbackInfo, class Wrappable>
144 inline void v8SetReturnValueFast(const CallbackInfo& callbackInfo, PassRefPtr<Te stNode > impl, Wrappable* wrappable) 144 inline void v8SetReturnValueFast(const CallbackInfo& callbackInfo, PassRefPtr<Te stNode > impl, Wrappable* wrappable)
145 { 145 {
146 v8SetReturnValueFast(callbackInfo, impl.get(), wrappable); 146 v8SetReturnValueFast(callbackInfo, impl.get(), wrappable);
147 } 147 }
148 148
149 } 149 }
150 150
151 #endif // V8TestNode_h 151 #endif // V8TestNode_h
OLDNEW
« no previous file with comments | « Source/bindings/tests/results/V8TestNamedConstructor.cpp ('k') | Source/bindings/tests/results/V8TestNode.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698