| Index: Source/bindings/tests/results/V8TestInterfacePython.h
|
| diff --git a/Source/bindings/tests/results/V8TestActiveDOMObject.h b/Source/bindings/tests/results/V8TestInterfacePython.h
|
| similarity index 71%
|
| rename from Source/bindings/tests/results/V8TestActiveDOMObject.h
|
| rename to Source/bindings/tests/results/V8TestInterfacePython.h
|
| index 3ed8ae2d026d73581a23fc6713facedc1ea01054..fd18b22c5340d245d6defc778cdd0cb3d94bb48b 100644
|
| --- a/Source/bindings/tests/results/V8TestActiveDOMObject.h
|
| +++ b/Source/bindings/tests/results/V8TestInterfacePython.h
|
| @@ -30,131 +30,130 @@
|
|
|
| // This file has been auto-generated by code_generator_v8.pm. DO NOT MODIFY!
|
|
|
| -#ifndef V8TestActiveDOMObject_h
|
| -#define V8TestActiveDOMObject_h
|
| +#ifndef V8TestInterfacePython_h
|
| +#define V8TestInterfacePython_h
|
|
|
| -#include "bindings/tests/idls/TestActiveDOMObject.h"
|
| +#if ENABLE(CONDITION)
|
| +#include "bindings/tests/idls/TestInterfacePython.h"
|
| #include "bindings/v8/V8Binding.h"
|
| #include "bindings/v8/V8DOMWrapper.h"
|
| #include "bindings/v8/WrapperTypeInfo.h"
|
|
|
| namespace WebCore {
|
|
|
| -class V8TestActiveDOMObject {
|
| +class V8TestInterfacePython {
|
| public:
|
| static bool hasInstance(v8::Handle<v8::Value>, v8::Isolate*, WrapperWorldType);
|
| static bool hasInstanceInAnyWorld(v8::Handle<v8::Value>, v8::Isolate*);
|
| static v8::Handle<v8::FunctionTemplate> GetTemplate(v8::Isolate*, WrapperWorldType);
|
| - static TestActiveDOMObject* toNative(v8::Handle<v8::Object> object)
|
| + static TestInterfacePython* toNative(v8::Handle<v8::Object> object)
|
| {
|
| return fromInternalPointer(object->GetAlignedPointerFromInternalField(v8DOMWrapperObjectIndex));
|
| }
|
| static void derefObject(void*);
|
| static const WrapperTypeInfo wrapperTypeInfo;
|
| + static void visitDOMWrapper(void*, const v8::Persistent<v8::Object>&, v8::Isolate*);
|
| + static ActiveDOMObject* toActiveDOMObject(v8::Handle<v8::Object>);
|
| + static void legacyCallCustom(const v8::FunctionCallbackInfo<v8::Value>&);
|
| static const int internalFieldCount = v8DefaultWrapperInternalFieldCount + 0;
|
| - static inline void* toInternalPointer(TestActiveDOMObject* impl)
|
| + static inline void* toInternalPointer(TestInterfacePython* impl)
|
| {
|
| return impl;
|
| }
|
|
|
| - static inline TestActiveDOMObject* fromInternalPointer(void* object)
|
| + static inline TestInterfacePython* fromInternalPointer(void* object)
|
| {
|
| - return static_cast<TestActiveDOMObject*>(object);
|
| + return static_cast<TestInterfacePython*>(object);
|
| }
|
| - static void installPerContextEnabledProperties(v8::Handle<v8::Object>, TestActiveDOMObject*, v8::Isolate*) { }
|
| + static void installPerContextEnabledProperties(v8::Handle<v8::Object>, TestInterfacePython*, v8::Isolate*) { }
|
| static void installPerContextEnabledMethods(v8::Handle<v8::Object>, v8::Isolate*) { }
|
|
|
| private:
|
| - friend v8::Handle<v8::Object> wrap(TestActiveDOMObject*, v8::Handle<v8::Object> creationContext, v8::Isolate*);
|
| - static v8::Handle<v8::Object> createWrapper(PassRefPtr<TestActiveDOMObject>, v8::Handle<v8::Object> creationContext, v8::Isolate*);
|
| + friend v8::Handle<v8::Object> wrap(TestInterfacePython*, v8::Handle<v8::Object> creationContext, v8::Isolate*);
|
| + static v8::Handle<v8::Object> createWrapper(PassRefPtr<TestInterfacePython>, v8::Handle<v8::Object> creationContext, v8::Isolate*);
|
| };
|
|
|
| template<>
|
| -class WrapperTypeTraits<TestActiveDOMObject > {
|
| +class WrapperTypeTraits<TestInterfacePython > {
|
| public:
|
| - static const WrapperTypeInfo* wrapperTypeInfo() { return &V8TestActiveDOMObject::wrapperTypeInfo; }
|
| + static const WrapperTypeInfo* wrapperTypeInfo() { return &V8TestInterfacePython::wrapperTypeInfo; }
|
| };
|
|
|
| -inline v8::Handle<v8::Object> wrap(TestActiveDOMObject* impl, v8::Handle<v8::Object> creationContext, v8::Isolate* isolate)
|
| -{
|
| - ASSERT(impl);
|
| - ASSERT(!DOMDataStore::containsWrapper<V8TestActiveDOMObject>(impl, isolate));
|
| - return V8TestActiveDOMObject::createWrapper(impl, creationContext, isolate);
|
| -}
|
| +v8::Handle<v8::Object> wrap(TestInterfacePython* impl, v8::Handle<v8::Object> creationContext, v8::Isolate*);
|
|
|
| -inline v8::Handle<v8::Value> toV8(TestActiveDOMObject* impl, v8::Handle<v8::Object> creationContext, v8::Isolate* isolate)
|
| +inline v8::Handle<v8::Value> toV8(TestInterfacePython* impl, v8::Handle<v8::Object> creationContext, v8::Isolate* isolate)
|
| {
|
| if (UNLIKELY(!impl))
|
| return v8::Null(isolate);
|
| - v8::Handle<v8::Value> wrapper = DOMDataStore::getWrapper<V8TestActiveDOMObject>(impl, isolate);
|
| + v8::Handle<v8::Value> wrapper = DOMDataStore::getWrapper<V8TestInterfacePython>(impl, isolate);
|
| if (!wrapper.IsEmpty())
|
| return wrapper;
|
| return wrap(impl, creationContext, isolate);
|
| }
|
|
|
| template<typename CallbackInfo>
|
| -inline void v8SetReturnValue(const CallbackInfo& callbackInfo, TestActiveDOMObject* impl)
|
| +inline void v8SetReturnValue(const CallbackInfo& callbackInfo, TestInterfacePython* impl)
|
| {
|
| if (UNLIKELY(!impl)) {
|
| v8SetReturnValueNull(callbackInfo);
|
| return;
|
| }
|
| - if (DOMDataStore::setReturnValueFromWrapper<V8TestActiveDOMObject>(callbackInfo.GetReturnValue(), impl))
|
| + if (DOMDataStore::setReturnValueFromWrapper<V8TestInterfacePython>(callbackInfo.GetReturnValue(), impl))
|
| return;
|
| v8::Handle<v8::Object> wrapper = wrap(impl, callbackInfo.Holder(), callbackInfo.GetIsolate());
|
| v8SetReturnValue(callbackInfo, wrapper);
|
| }
|
|
|
| template<typename CallbackInfo>
|
| -inline void v8SetReturnValueForMainWorld(const CallbackInfo& callbackInfo, TestActiveDOMObject* impl)
|
| +inline void v8SetReturnValueForMainWorld(const CallbackInfo& callbackInfo, TestInterfacePython* impl)
|
| {
|
| ASSERT(worldType(callbackInfo.GetIsolate()) == MainWorld);
|
| if (UNLIKELY(!impl)) {
|
| v8SetReturnValueNull(callbackInfo);
|
| return;
|
| }
|
| - if (DOMDataStore::setReturnValueFromWrapperForMainWorld<V8TestActiveDOMObject>(callbackInfo.GetReturnValue(), impl))
|
| + if (DOMDataStore::setReturnValueFromWrapperForMainWorld<V8TestInterfacePython>(callbackInfo.GetReturnValue(), impl))
|
| return;
|
| v8::Handle<v8::Value> wrapper = wrap(impl, callbackInfo.Holder(), callbackInfo.GetIsolate());
|
| v8SetReturnValue(callbackInfo, wrapper);
|
| }
|
|
|
| template<class CallbackInfo, class Wrappable>
|
| -inline void v8SetReturnValueFast(const CallbackInfo& callbackInfo, TestActiveDOMObject* impl, Wrappable* wrappable)
|
| +inline void v8SetReturnValueFast(const CallbackInfo& callbackInfo, TestInterfacePython* impl, Wrappable* wrappable)
|
| {
|
| if (UNLIKELY(!impl)) {
|
| v8SetReturnValueNull(callbackInfo);
|
| return;
|
| }
|
| - if (DOMDataStore::setReturnValueFromWrapperFast<V8TestActiveDOMObject>(callbackInfo.GetReturnValue(), impl, callbackInfo.Holder(), wrappable))
|
| + if (DOMDataStore::setReturnValueFromWrapperFast<V8TestInterfacePython>(callbackInfo.GetReturnValue(), impl, callbackInfo.Holder(), wrappable))
|
| return;
|
| v8::Handle<v8::Object> wrapper = wrap(impl, callbackInfo.Holder(), callbackInfo.GetIsolate());
|
| v8SetReturnValue(callbackInfo, wrapper);
|
| }
|
|
|
| -inline v8::Handle<v8::Value> toV8(PassRefPtr<TestActiveDOMObject > impl, v8::Handle<v8::Object> creationContext, v8::Isolate* isolate)
|
| +inline v8::Handle<v8::Value> toV8(PassRefPtr<TestInterfacePython > impl, v8::Handle<v8::Object> creationContext, v8::Isolate* isolate)
|
| {
|
| return toV8(impl.get(), creationContext, isolate);
|
| }
|
|
|
| template<class CallbackInfo>
|
| -inline void v8SetReturnValue(const CallbackInfo& callbackInfo, PassRefPtr<TestActiveDOMObject > impl)
|
| +inline void v8SetReturnValue(const CallbackInfo& callbackInfo, PassRefPtr<TestInterfacePython > impl)
|
| {
|
| v8SetReturnValue(callbackInfo, impl.get());
|
| }
|
|
|
| template<class CallbackInfo>
|
| -inline void v8SetReturnValueForMainWorld(const CallbackInfo& callbackInfo, PassRefPtr<TestActiveDOMObject > impl)
|
| +inline void v8SetReturnValueForMainWorld(const CallbackInfo& callbackInfo, PassRefPtr<TestInterfacePython > impl)
|
| {
|
| v8SetReturnValueForMainWorld(callbackInfo, impl.get());
|
| }
|
|
|
| template<class CallbackInfo, class Wrappable>
|
| -inline void v8SetReturnValueFast(const CallbackInfo& callbackInfo, PassRefPtr<TestActiveDOMObject > impl, Wrappable* wrappable)
|
| +inline void v8SetReturnValueFast(const CallbackInfo& callbackInfo, PassRefPtr<TestInterfacePython > impl, Wrappable* wrappable)
|
| {
|
| v8SetReturnValueFast(callbackInfo, impl.get(), wrappable);
|
| }
|
|
|
| }
|
| -
|
| -#endif // V8TestActiveDOMObject_h
|
| +#endif // ENABLE(CONDITION)
|
| +#endif // V8TestInterfacePython_h
|
|
|