OLD | NEW |
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 Loading... |
32 class V8TestEventConstructor { | 32 class V8TestEventConstructor { |
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 TestEventConstructor* toNative(v8::Handle<v8::Object> object) | 37 static TestEventConstructor* 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 wrapperTypeInfo; | 42 static const WrapperTypeInfo wrapperTypeInfo; |
43 static void constructorCallback(const v8::FunctionCallbackInfo<v8::Value>&); | 43 static void constructorCallback(const v8::FunctionCallbackInfo<v8::Value>&); |
44 static const int internalFieldCount = v8DefaultWrapperInternalFieldCount + 0
; | 44 static const int internalFieldCount = v8DefaultWrapperInternalFieldCount + 0
; |
45 static inline void* toInternalPointer(TestEventConstructor* impl) | 45 static inline void* toInternalPointer(TestEventConstructor* impl) |
46 { | 46 { |
47 return impl; | 47 return impl; |
48 } | 48 } |
49 | 49 |
50 static inline TestEventConstructor* fromInternalPointer(void* object) | 50 static inline TestEventConstructor* fromInternalPointer(void* object) |
51 { | 51 { |
52 return static_cast<TestEventConstructor*>(object); | 52 return static_cast<TestEventConstructor*>(object); |
53 } | 53 } |
54 static void installPerContextEnabledProperties(v8::Handle<v8::Object>, TestE
ventConstructor*, v8::Isolate*) { } | 54 static void installPerContextEnabledProperties(v8::Handle<v8::Object>, TestE
ventConstructor*, v8::Isolate*) { } |
55 static void installPerContextEnabledPrototypeProperties(v8::Handle<v8::Objec
t>, v8::Isolate*) { } | 55 static void installPerContextEnabledPrototypeProperties(v8::Handle<v8::Objec
t>, v8::Isolate*) { } |
56 | 56 |
57 private: | 57 private: |
58 friend v8::Handle<v8::Object> wrap(TestEventConstructor*, v8::Handle<v8::Obj
ect> creationContext, v8::Isolate*); | 58 friend v8::Handle<v8::Object> wrap(TestEventConstructor*, v8::Handle<v8::Obj
ect> creationContext, v8::Isolate*); |
59 static v8::Handle<v8::Object> createWrapper(PassRefPtr<TestEventConstructor>
, v8::Handle<v8::Object> creationContext, v8::Isolate*); | 59 static v8::Handle<v8::Object> createWrapper(PassRefPtr<TestEventConstructor>
, v8::Handle<v8::Object> creationContext, v8::Isolate*); |
60 }; | 60 }; |
61 | 61 |
62 template<> | 62 template<> |
63 class WrapperTypeTraits<TestEventConstructor > { | 63 class WrapperTypeTraits<TestEventConstructor > { |
64 public: | 64 public: |
65 static WrapperTypeInfo* wrapperTypeInfo() { return &V8TestEventConstructor::
wrapperTypeInfo; } | 65 static const WrapperTypeInfo* wrapperTypeInfo() { return &V8TestEventConstru
ctor::wrapperTypeInfo; } |
66 }; | 66 }; |
67 | 67 |
68 inline v8::Handle<v8::Object> wrap(TestEventConstructor* impl, v8::Handle<v8::Ob
ject> creationContext, v8::Isolate* isolate) | 68 inline v8::Handle<v8::Object> wrap(TestEventConstructor* impl, v8::Handle<v8::Ob
ject> creationContext, v8::Isolate* isolate) |
69 { | 69 { |
70 ASSERT(impl); | 70 ASSERT(impl); |
71 ASSERT(!DOMDataStore::containsWrapper<V8TestEventConstructor>(impl, isolate)
); | 71 ASSERT(!DOMDataStore::containsWrapper<V8TestEventConstructor>(impl, isolate)
); |
72 return V8TestEventConstructor::createWrapper(impl, creationContext, isolate)
; | 72 return V8TestEventConstructor::createWrapper(impl, creationContext, isolate)
; |
73 } | 73 } |
74 | 74 |
75 inline v8::Handle<v8::Value> toV8(TestEventConstructor* impl, v8::Handle<v8::Obj
ect> creationContext, v8::Isolate* isolate) | 75 inline v8::Handle<v8::Value> toV8(TestEventConstructor* impl, v8::Handle<v8::Obj
ect> creationContext, v8::Isolate* isolate) |
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
143 inline void v8SetReturnValueFast(const CallbackInfo& callbackInfo, PassRefPtr<Te
stEventConstructor > impl, Wrappable* wrappable) | 143 inline void v8SetReturnValueFast(const CallbackInfo& callbackInfo, PassRefPtr<Te
stEventConstructor > impl, Wrappable* wrappable) |
144 { | 144 { |
145 v8SetReturnValueFast(callbackInfo, impl.get(), wrappable); | 145 v8SetReturnValueFast(callbackInfo, impl.get(), wrappable); |
146 } | 146 } |
147 | 147 |
148 bool fillTestEventConstructorInit(TestEventConstructorInit&, const Dictionary&); | 148 bool fillTestEventConstructorInit(TestEventConstructorInit&, const Dictionary&); |
149 | 149 |
150 } | 150 } |
151 | 151 |
152 #endif // V8TestEventConstructor_h | 152 #endif // V8TestEventConstructor_h |
OLD | NEW |