| 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 20 matching lines...) Expand all Loading... |
| 31 class V8TestObjectPython { | 31 class V8TestObjectPython { |
| 32 public: | 32 public: |
| 33 static bool HasInstance(v8::Handle<v8::Value>, v8::Isolate*, WrapperWorldTyp
e); | 33 static bool HasInstance(v8::Handle<v8::Value>, v8::Isolate*, WrapperWorldTyp
e); |
| 34 static bool HasInstanceInAnyWorld(v8::Handle<v8::Value>, v8::Isolate*); | 34 static bool HasInstanceInAnyWorld(v8::Handle<v8::Value>, v8::Isolate*); |
| 35 static v8::Handle<v8::FunctionTemplate> GetTemplate(v8::Isolate*, WrapperWor
ldType); | 35 static v8::Handle<v8::FunctionTemplate> GetTemplate(v8::Isolate*, WrapperWor
ldType); |
| 36 static TestObjectPython* toNative(v8::Handle<v8::Object> object) | 36 static TestObjectPython* toNative(v8::Handle<v8::Object> object) |
| 37 { | 37 { |
| 38 return fromInternalPointer(object->GetAlignedPointerFromInternalField(v8
DOMWrapperObjectIndex)); | 38 return fromInternalPointer(object->GetAlignedPointerFromInternalField(v8
DOMWrapperObjectIndex)); |
| 39 } | 39 } |
| 40 static void derefObject(void*); | 40 static void derefObject(void*); |
| 41 static WrapperTypeInfo wrapperTypeInfo; | 41 static const WrapperTypeInfo wrapperTypeInfo; |
| 42 static void customLongAttributeAttributeGetterCustom(v8::Local<v8::String> n
ame, const v8::PropertyCallbackInfo<v8::Value>&); | 42 static void customLongAttributeAttributeGetterCustom(v8::Local<v8::String> n
ame, const v8::PropertyCallbackInfo<v8::Value>&); |
| 43 static void customLongAttributeAttributeSetterCustom(v8::Local<v8::String> n
ame, v8::Local<v8::Value>, const v8::PropertyCallbackInfo<void>&); | 43 static void customLongAttributeAttributeSetterCustom(v8::Local<v8::String> n
ame, v8::Local<v8::Value>, const v8::PropertyCallbackInfo<void>&); |
| 44 static void customGetterLongAttributeAttributeGetterCustom(v8::Local<v8::Str
ing> name, const v8::PropertyCallbackInfo<v8::Value>&); | 44 static void customGetterLongAttributeAttributeGetterCustom(v8::Local<v8::Str
ing> name, const v8::PropertyCallbackInfo<v8::Value>&); |
| 45 static void customSetterLongAttributeAttributeSetterCustom(v8::Local<v8::Str
ing> name, v8::Local<v8::Value>, const v8::PropertyCallbackInfo<void>&); | 45 static void customSetterLongAttributeAttributeSetterCustom(v8::Local<v8::Str
ing> name, v8::Local<v8::Value>, const v8::PropertyCallbackInfo<void>&); |
| 46 #if ENABLE(Condition) | 46 #if ENABLE(Condition) |
| 47 static void customLongAttributeAttributeGetterCustom(v8::Local<v8::String> n
ame, const v8::PropertyCallbackInfo<v8::Value>&); | 47 static void customLongAttributeAttributeGetterCustom(v8::Local<v8::String> n
ame, const v8::PropertyCallbackInfo<v8::Value>&); |
| 48 #endif // ENABLE(Condition) | 48 #endif // ENABLE(Condition) |
| 49 #if ENABLE(Condition) | 49 #if ENABLE(Condition) |
| 50 static void customLongAttributeAttributeSetterCustom(v8::Local<v8::String> n
ame, v8::Local<v8::Value>, const v8::PropertyCallbackInfo<void>&); | 50 static void customLongAttributeAttributeSetterCustom(v8::Local<v8::String> n
ame, v8::Local<v8::Value>, const v8::PropertyCallbackInfo<void>&); |
| 51 #endif // ENABLE(Condition) | 51 #endif // ENABLE(Condition) |
| (...skipping 15 matching lines...) Expand all Loading... |
| 67 static void installPerContextEnabledPrototypeProperties(v8::Handle<v8::Objec
t>, v8::Isolate*) { } | 67 static void installPerContextEnabledPrototypeProperties(v8::Handle<v8::Objec
t>, v8::Isolate*) { } |
| 68 | 68 |
| 69 private: | 69 private: |
| 70 friend v8::Handle<v8::Object> wrap(TestObjectPython*, v8::Handle<v8::Object>
creationContext, v8::Isolate*); | 70 friend v8::Handle<v8::Object> wrap(TestObjectPython*, v8::Handle<v8::Object>
creationContext, v8::Isolate*); |
| 71 static v8::Handle<v8::Object> createWrapper(PassRefPtr<TestObjectPython>, v8
::Handle<v8::Object> creationContext, v8::Isolate*); | 71 static v8::Handle<v8::Object> createWrapper(PassRefPtr<TestObjectPython>, v8
::Handle<v8::Object> creationContext, v8::Isolate*); |
| 72 }; | 72 }; |
| 73 | 73 |
| 74 template<> | 74 template<> |
| 75 class WrapperTypeTraits<TestObjectPython > { | 75 class WrapperTypeTraits<TestObjectPython > { |
| 76 public: | 76 public: |
| 77 static WrapperTypeInfo* wrapperTypeInfo() { return &V8TestObjectPython::wrap
perTypeInfo; } | 77 static const WrapperTypeInfo* wrapperTypeInfo() { return &V8TestObjectPython
::wrapperTypeInfo; } |
| 78 }; | 78 }; |
| 79 | 79 |
| 80 inline v8::Handle<v8::Object> wrap(TestObjectPython* impl, v8::Handle<v8::Object
> creationContext, v8::Isolate* isolate) | 80 inline v8::Handle<v8::Object> wrap(TestObjectPython* impl, v8::Handle<v8::Object
> creationContext, v8::Isolate* isolate) |
| 81 { | 81 { |
| 82 ASSERT(impl); | 82 ASSERT(impl); |
| 83 ASSERT(!DOMDataStore::containsWrapper<V8TestObjectPython>(impl, isolate)); | 83 ASSERT(!DOMDataStore::containsWrapper<V8TestObjectPython>(impl, isolate)); |
| 84 return V8TestObjectPython::createWrapper(impl, creationContext, isolate); | 84 return V8TestObjectPython::createWrapper(impl, creationContext, isolate); |
| 85 } | 85 } |
| 86 | 86 |
| 87 inline v8::Handle<v8::Value> toV8(TestObjectPython* impl, v8::Handle<v8::Object>
creationContext, v8::Isolate* isolate) | 87 inline v8::Handle<v8::Value> toV8(TestObjectPython* impl, v8::Handle<v8::Object>
creationContext, v8::Isolate* isolate) |
| (...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 153 | 153 |
| 154 template<class CallbackInfo, class Wrappable> | 154 template<class CallbackInfo, class Wrappable> |
| 155 inline void v8SetReturnValueFast(const CallbackInfo& callbackInfo, PassRefPtr<Te
stObjectPython > impl, Wrappable* wrappable) | 155 inline void v8SetReturnValueFast(const CallbackInfo& callbackInfo, PassRefPtr<Te
stObjectPython > impl, Wrappable* wrappable) |
| 156 { | 156 { |
| 157 v8SetReturnValueFast(callbackInfo, impl.get(), wrappable); | 157 v8SetReturnValueFast(callbackInfo, impl.get(), wrappable); |
| 158 } | 158 } |
| 159 | 159 |
| 160 } | 160 } |
| 161 | 161 |
| 162 #endif // V8TestObjectPython_h | 162 #endif // V8TestObjectPython_h |
| OLD | NEW |