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

Side by Side Diff: Source/bindings/tests/results/V8TestExtendedEvent.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 23 matching lines...) Expand all
34 class V8TestExtendedEvent { 34 class V8TestExtendedEvent {
35 public: 35 public:
36 static bool HasInstance(v8::Handle<v8::Value>, v8::Isolate*, WrapperWorldTyp e); 36 static bool HasInstance(v8::Handle<v8::Value>, v8::Isolate*, WrapperWorldTyp e);
37 static bool HasInstanceInAnyWorld(v8::Handle<v8::Value>, v8::Isolate*); 37 static bool HasInstanceInAnyWorld(v8::Handle<v8::Value>, v8::Isolate*);
38 static v8::Handle<v8::FunctionTemplate> GetTemplate(v8::Isolate*, WrapperWor ldType); 38 static v8::Handle<v8::FunctionTemplate> GetTemplate(v8::Isolate*, WrapperWor ldType);
39 static Event* toNative(v8::Handle<v8::Object> object) 39 static Event* toNative(v8::Handle<v8::Object> object)
40 { 40 {
41 return fromInternalPointer(object->GetAlignedPointerFromInternalField(v8 DOMWrapperObjectIndex)); 41 return fromInternalPointer(object->GetAlignedPointerFromInternalField(v8 DOMWrapperObjectIndex));
42 } 42 }
43 static void derefObject(void*); 43 static void derefObject(void*);
44 static WrapperTypeInfo info; 44 static WrapperTypeInfo wrapperTypeInfo;
45 static void constructorCallback(const v8::FunctionCallbackInfo<v8::Value>&); 45 static void constructorCallback(const v8::FunctionCallbackInfo<v8::Value>&);
46 static const int internalFieldCount = v8DefaultWrapperInternalFieldCount + 0 ; 46 static const int internalFieldCount = v8DefaultWrapperInternalFieldCount + 0 ;
47 static inline void* toInternalPointer(Event* impl) 47 static inline void* toInternalPointer(Event* impl)
48 { 48 {
49 return V8TestEvent::toInternalPointer(impl); 49 return V8TestEvent::toInternalPointer(impl);
50 } 50 }
51 51
52 static inline Event* fromInternalPointer(void* object) 52 static inline Event* fromInternalPointer(void* object)
53 { 53 {
54 return static_cast<Event*>(V8TestEvent::fromInternalPointer(object)); 54 return static_cast<Event*>(V8TestEvent::fromInternalPointer(object));
55 } 55 }
56 static void installPerContextEnabledProperties(v8::Handle<v8::Object>, Event *, v8::Isolate*) { } 56 static void installPerContextEnabledProperties(v8::Handle<v8::Object>, Event *, v8::Isolate*) { }
57 static void installPerContextEnabledPrototypeProperties(v8::Handle<v8::Objec t>, v8::Isolate*) { } 57 static void installPerContextEnabledPrototypeProperties(v8::Handle<v8::Objec t>, v8::Isolate*) { }
58 58
59 private: 59 private:
60 friend v8::Handle<v8::Object> wrap(Event*, v8::Handle<v8::Object> creationCo ntext, v8::Isolate*); 60 friend v8::Handle<v8::Object> wrap(Event*, v8::Handle<v8::Object> creationCo ntext, v8::Isolate*);
61 static v8::Handle<v8::Object> createWrapper(PassRefPtr<Event>, v8::Handle<v8 ::Object> creationContext, v8::Isolate*); 61 static v8::Handle<v8::Object> createWrapper(PassRefPtr<Event>, v8::Handle<v8 ::Object> creationContext, v8::Isolate*);
62 }; 62 };
63 63
64 template<> 64 template<>
65 class WrapperTypeTraits<Event > { 65 class WrapperTypeTraits<Event > {
66 public: 66 public:
67 static WrapperTypeInfo* info() { return &V8TestExtendedEvent::info; } 67 static WrapperTypeInfo* wrapperTypeInfo() { return &V8TestExtendedEvent::wra pperTypeInfo; }
68 }; 68 };
69 69
70 inline v8::Handle<v8::Object> wrap(Event* impl, v8::Handle<v8::Object> creationC ontext, v8::Isolate* isolate) 70 inline v8::Handle<v8::Object> wrap(Event* impl, v8::Handle<v8::Object> creationC ontext, v8::Isolate* isolate)
71 { 71 {
72 ASSERT(impl); 72 ASSERT(impl);
73 ASSERT(!DOMDataStore::containsWrapper<V8TestExtendedEvent>(impl, isolate)); 73 ASSERT(!DOMDataStore::containsWrapper<V8TestExtendedEvent>(impl, isolate));
74 return V8TestExtendedEvent::createWrapper(impl, creationContext, isolate); 74 return V8TestExtendedEvent::createWrapper(impl, creationContext, isolate);
75 } 75 }
76 76
77 inline v8::Handle<v8::Value> toV8(Event* impl, v8::Handle<v8::Object> creationCo ntext, v8::Isolate* isolate) 77 inline v8::Handle<v8::Value> toV8(Event* impl, v8::Handle<v8::Object> creationCo ntext, v8::Isolate* isolate)
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
147 v8SetReturnValueFast(callbackInfo, impl.get(), wrappable); 147 v8SetReturnValueFast(callbackInfo, impl.get(), wrappable);
148 } 148 }
149 149
150 bool fillEventInit(EventInit&, const Dictionary&); 150 bool fillEventInit(EventInit&, const Dictionary&);
151 151
152 } 152 }
153 153
154 #endif // ENABLE(TEST) 154 #endif // ENABLE(TEST)
155 155
156 #endif // V8TestExtendedEvent_h 156 #endif // V8TestExtendedEvent_h
OLDNEW
« no previous file with comments | « Source/bindings/tests/results/V8TestException.cpp ('k') | Source/bindings/tests/results/V8TestExtendedEvent.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698