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 V8TestObject { | 32 class V8TestObject { |
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 TestObj* toNative(v8::Handle<v8::Object> object) | 37 static TestObj* 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 EventTarget* toEventTarget(v8::Handle<v8::Object>); | 43 static EventTarget* toEventTarget(v8::Handle<v8::Object>); |
44 static void customMethodMethodCustom(const v8::FunctionCallbackInfo<v8::Valu
e>&); | 44 static void customMethodMethodCustom(const v8::FunctionCallbackInfo<v8::Valu
e>&); |
45 static void customMethodWithArgsMethodCustom(const v8::FunctionCallbackInfo<
v8::Value>&); | 45 static void customMethodWithArgsMethodCustom(const v8::FunctionCallbackInfo<
v8::Value>&); |
46 static void classMethod2MethodCustom(const v8::FunctionCallbackInfo<v8::Valu
e>&); | 46 static void classMethod2MethodCustom(const v8::FunctionCallbackInfo<v8::Valu
e>&); |
47 static void constructorCallback(const v8::FunctionCallbackInfo<v8::Value>&); | 47 static void constructorCallback(const v8::FunctionCallbackInfo<v8::Value>&); |
48 static void customAttrAttributeGetterCustom(v8::Local<v8::String> name, cons
t v8::PropertyCallbackInfo<v8::Value>&); | 48 static void customAttrAttributeGetterCustom(v8::Local<v8::String> name, cons
t v8::PropertyCallbackInfo<v8::Value>&); |
49 static void customAttrAttributeSetterCustom(v8::Local<v8::String> name, v8::
Local<v8::Value>, const v8::PropertyCallbackInfo<void>&); | 49 static void customAttrAttributeSetterCustom(v8::Local<v8::String> name, v8::
Local<v8::Value>, const v8::PropertyCallbackInfo<void>&); |
50 static const int eventListenerCacheIndex = v8DefaultWrapperInternalFieldCoun
t + 0; | 50 static const int eventListenerCacheIndex = v8DefaultWrapperInternalFieldCoun
t + 0; |
51 static const int internalFieldCount = v8DefaultWrapperInternalFieldCount + 1
; | 51 static const int internalFieldCount = v8DefaultWrapperInternalFieldCount + 1
; |
52 static inline void* toInternalPointer(TestObj* impl) | 52 static inline void* toInternalPointer(TestObj* impl) |
53 { | 53 { |
54 return V8EventTarget::toInternalPointer(impl); | 54 return V8EventTarget::toInternalPointer(impl); |
55 } | 55 } |
56 | 56 |
57 static inline TestObj* fromInternalPointer(void* object) | 57 static inline TestObj* fromInternalPointer(void* object) |
58 { | 58 { |
59 return static_cast<TestObj*>(V8EventTarget::fromInternalPointer(object))
; | 59 return static_cast<TestObj*>(V8EventTarget::fromInternalPointer(object))
; |
60 } | 60 } |
61 static void installPerContextEnabledProperties(v8::Handle<v8::Object>, TestO
bj*, v8::Isolate*); | 61 static void installPerContextEnabledProperties(v8::Handle<v8::Object>, TestO
bj*, v8::Isolate*); |
62 static void installPerContextEnabledPrototypeProperties(v8::Handle<v8::Objec
t>, v8::Isolate*); | 62 static void installPerContextEnabledPrototypeProperties(v8::Handle<v8::Objec
t>, v8::Isolate*); |
63 | 63 |
64 private: | 64 private: |
65 friend v8::Handle<v8::Object> wrap(TestObj*, v8::Handle<v8::Object> creation
Context, v8::Isolate*); | 65 friend v8::Handle<v8::Object> wrap(TestObj*, v8::Handle<v8::Object> creation
Context, v8::Isolate*); |
66 static v8::Handle<v8::Object> createWrapper(PassRefPtr<TestObj>, v8::Handle<
v8::Object> creationContext, v8::Isolate*); | 66 static v8::Handle<v8::Object> createWrapper(PassRefPtr<TestObj>, v8::Handle<
v8::Object> creationContext, v8::Isolate*); |
67 }; | 67 }; |
68 | 68 |
69 template<> | 69 template<> |
70 class WrapperTypeTraits<TestObj > { | 70 class WrapperTypeTraits<TestObj > { |
71 public: | 71 public: |
72 static WrapperTypeInfo* wrapperTypeInfo() { return &V8TestObject::wrapperTyp
eInfo; } | 72 static const WrapperTypeInfo* wrapperTypeInfo() { return &V8TestObject::wrap
perTypeInfo; } |
73 }; | 73 }; |
74 | 74 |
75 inline v8::Handle<v8::Object> wrap(TestObj* impl, v8::Handle<v8::Object> creatio
nContext, v8::Isolate* isolate) | 75 inline v8::Handle<v8::Object> wrap(TestObj* impl, v8::Handle<v8::Object> creatio
nContext, v8::Isolate* isolate) |
76 { | 76 { |
77 ASSERT(impl); | 77 ASSERT(impl); |
78 ASSERT(!DOMDataStore::containsWrapper<V8TestObject>(impl, isolate)); | 78 ASSERT(!DOMDataStore::containsWrapper<V8TestObject>(impl, isolate)); |
79 return V8TestObject::createWrapper(impl, creationContext, isolate); | 79 return V8TestObject::createWrapper(impl, creationContext, isolate); |
80 } | 80 } |
81 | 81 |
82 inline v8::Handle<v8::Value> toV8(TestObj* impl, v8::Handle<v8::Object> creation
Context, v8::Isolate* isolate) | 82 inline v8::Handle<v8::Value> toV8(TestObj* impl, v8::Handle<v8::Object> creation
Context, v8::Isolate* isolate) |
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
148 | 148 |
149 template<class CallbackInfo, class Wrappable> | 149 template<class CallbackInfo, class Wrappable> |
150 inline void v8SetReturnValueFast(const CallbackInfo& callbackInfo, PassRefPtr<Te
stObj > impl, Wrappable* wrappable) | 150 inline void v8SetReturnValueFast(const CallbackInfo& callbackInfo, PassRefPtr<Te
stObj > impl, Wrappable* wrappable) |
151 { | 151 { |
152 v8SetReturnValueFast(callbackInfo, impl.get(), wrappable); | 152 v8SetReturnValueFast(callbackInfo, impl.get(), wrappable); |
153 } | 153 } |
154 | 154 |
155 } | 155 } |
156 | 156 |
157 #endif // V8TestObject_h | 157 #endif // V8TestObject_h |
OLD | NEW |