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 V8TestInterface { | 32 class V8TestInterface { |
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 TestInterface* toNative(v8::Handle<v8::Object> object) | 37 static TestInterface* 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 ActiveDOMObject* toActiveDOMObject(v8::Handle<v8::Object>); | 43 static ActiveDOMObject* toActiveDOMObject(v8::Handle<v8::Object>); |
44 static void implementsMethod3MethodCustom(const v8::FunctionCallbackInfo<v8:
:Value>&); | 44 static void implementsMethod3MethodCustom(const v8::FunctionCallbackInfo<v8:
:Value>&); |
45 #if ENABLE(Condition11) || ENABLE(Condition12) | 45 #if ENABLE(Condition11) || ENABLE(Condition12) |
46 static void supplementalMethod3MethodCustom(const v8::FunctionCallbackInfo<v
8::Value>&); | 46 static void supplementalMethod3MethodCustom(const v8::FunctionCallbackInfo<v
8::Value>&); |
47 #endif // ENABLE(Condition11) || ENABLE(Condition12) | 47 #endif // ENABLE(Condition11) || ENABLE(Condition12) |
48 static void constructorCallback(const v8::FunctionCallbackInfo<v8::Value>&); | 48 static void constructorCallback(const v8::FunctionCallbackInfo<v8::Value>&); |
49 static void namedPropertySetterCustom(v8::Local<v8::String>, v8::Local<v8::V
alue>, const v8::PropertyCallbackInfo<v8::Value>&); | 49 static void namedPropertySetterCustom(v8::Local<v8::String>, v8::Local<v8::V
alue>, const v8::PropertyCallbackInfo<v8::Value>&); |
50 static const int internalFieldCount = v8DefaultWrapperInternalFieldCount + 0
; | 50 static const int internalFieldCount = v8DefaultWrapperInternalFieldCount + 0
; |
51 static inline void* toInternalPointer(TestInterface* impl) | 51 static inline void* toInternalPointer(TestInterface* impl) |
52 { | 52 { |
53 return impl; | 53 return impl; |
54 } | 54 } |
55 | 55 |
56 static inline TestInterface* fromInternalPointer(void* object) | 56 static inline TestInterface* fromInternalPointer(void* object) |
57 { | 57 { |
58 return static_cast<TestInterface*>(object); | 58 return static_cast<TestInterface*>(object); |
59 } | 59 } |
60 static void installPerContextEnabledProperties(v8::Handle<v8::Object>, TestI
nterface*, v8::Isolate*); | 60 static void installPerContextEnabledProperties(v8::Handle<v8::Object>, TestI
nterface*, v8::Isolate*); |
61 static void installPerContextEnabledPrototypeProperties(v8::Handle<v8::Objec
t>, v8::Isolate*) { } | 61 static void installPerContextEnabledPrototypeProperties(v8::Handle<v8::Objec
t>, v8::Isolate*) { } |
62 | 62 |
63 private: | 63 private: |
64 friend v8::Handle<v8::Object> wrap(TestInterface*, v8::Handle<v8::Object> cr
eationContext, v8::Isolate*); | 64 friend v8::Handle<v8::Object> wrap(TestInterface*, v8::Handle<v8::Object> cr
eationContext, v8::Isolate*); |
65 static v8::Handle<v8::Object> createWrapper(PassRefPtr<TestInterface>, v8::H
andle<v8::Object> creationContext, v8::Isolate*); | 65 static v8::Handle<v8::Object> createWrapper(PassRefPtr<TestInterface>, v8::H
andle<v8::Object> creationContext, v8::Isolate*); |
66 }; | 66 }; |
67 | 67 |
68 template<> | 68 template<> |
69 class WrapperTypeTraits<TestInterface > { | 69 class WrapperTypeTraits<TestInterface > { |
70 public: | 70 public: |
71 static WrapperTypeInfo* info() { return &V8TestInterface::info; } | 71 static WrapperTypeInfo* wrapperTypeInfo() { return &V8TestInterface::wrapper
TypeInfo; } |
72 }; | 72 }; |
73 | 73 |
74 inline v8::Handle<v8::Object> wrap(TestInterface* impl, v8::Handle<v8::Object> c
reationContext, v8::Isolate* isolate) | 74 inline v8::Handle<v8::Object> wrap(TestInterface* impl, v8::Handle<v8::Object> c
reationContext, v8::Isolate* isolate) |
75 { | 75 { |
76 ASSERT(impl); | 76 ASSERT(impl); |
77 ASSERT(!DOMDataStore::containsWrapper<V8TestInterface>(impl, isolate)); | 77 ASSERT(!DOMDataStore::containsWrapper<V8TestInterface>(impl, isolate)); |
78 return V8TestInterface::createWrapper(impl, creationContext, isolate); | 78 return V8TestInterface::createWrapper(impl, creationContext, isolate); |
79 } | 79 } |
80 | 80 |
81 inline v8::Handle<v8::Value> toV8(TestInterface* impl, v8::Handle<v8::Object> cr
eationContext, v8::Isolate* isolate) | 81 inline v8::Handle<v8::Value> toV8(TestInterface* impl, v8::Handle<v8::Object> cr
eationContext, v8::Isolate* isolate) |
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
149 inline void v8SetReturnValueFast(const CallbackInfo& callbackInfo, PassRefPtr<Te
stInterface > impl, Wrappable* wrappable) | 149 inline void v8SetReturnValueFast(const CallbackInfo& callbackInfo, PassRefPtr<Te
stInterface > impl, Wrappable* wrappable) |
150 { | 150 { |
151 v8SetReturnValueFast(callbackInfo, impl.get(), wrappable); | 151 v8SetReturnValueFast(callbackInfo, impl.get(), wrappable); |
152 } | 152 } |
153 | 153 |
154 } | 154 } |
155 | 155 |
156 #endif // ENABLE(Condition1) || ENABLE(Condition2) | 156 #endif // ENABLE(Condition1) || ENABLE(Condition2) |
157 | 157 |
158 #endif // V8TestInterface_h | 158 #endif // V8TestInterface_h |
OLD | NEW |