| Index: Source/bindings/tests/results/V8TestActiveDOMObjectInterface.h
|
| diff --git a/Source/bindings/tests/results/V8TestActiveDOMObject.h b/Source/bindings/tests/results/V8TestActiveDOMObjectInterface.h
|
| similarity index 70%
|
| copy from Source/bindings/tests/results/V8TestActiveDOMObject.h
|
| copy to Source/bindings/tests/results/V8TestActiveDOMObjectInterface.h
|
| index de31f3e379459c77cac6440e6dbb84105a460da0..f2032e232251df6cce1f2a74269dba9455b72360 100644
|
| --- a/Source/bindings/tests/results/V8TestActiveDOMObject.h
|
| +++ b/Source/bindings/tests/results/V8TestActiveDOMObjectInterface.h
|
| @@ -30,131 +30,132 @@
|
|
|
| // This file has been auto-generated by code_generator_v8.pm. DO NOT MODIFY!
|
|
|
| -#ifndef V8TestActiveDOMObject_h
|
| -#define V8TestActiveDOMObject_h
|
| +#ifndef V8TestActiveDOMObjectInterface_h
|
| +#define V8TestActiveDOMObjectInterface_h
|
|
|
| -#include "bindings/tests/idls/TestActiveDOMObject.h"
|
| +#include "bindings/tests/idls/TestActiveDOMObjectInterface.h"
|
| #include "bindings/v8/V8Binding.h"
|
| #include "bindings/v8/V8DOMWrapper.h"
|
| #include "bindings/v8/WrapperTypeInfo.h"
|
|
|
| namespace WebCore {
|
|
|
| -class V8TestActiveDOMObject {
|
| +class V8TestActiveDOMObjectInterface {
|
| 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 TestActiveDOMObjectInterface* toNative(v8::Handle<v8::Object> object)
|
| {
|
| return fromInternalPointer(object->GetAlignedPointerFromInternalField(v8DOMWrapperObjectIndex));
|
| }
|
| static void derefObject(void*);
|
| static const WrapperTypeInfo wrapperTypeInfo;
|
| + static ActiveDOMObject* toActiveDOMObject(v8::Handle<v8::Object>);
|
| static const int internalFieldCount = v8DefaultWrapperInternalFieldCount + 0;
|
| - static inline void* toInternalPointer(TestActiveDOMObject* impl)
|
| + static inline void* toInternalPointer(TestActiveDOMObjectInterface* impl)
|
| {
|
| return impl;
|
| }
|
|
|
| - static inline TestActiveDOMObject* fromInternalPointer(void* object)
|
| + static inline TestActiveDOMObjectInterface* fromInternalPointer(void* object)
|
| {
|
| - return static_cast<TestActiveDOMObject*>(object);
|
| + return static_cast<TestActiveDOMObjectInterface*>(object);
|
| }
|
| - static void installPerContextEnabledProperties(v8::Handle<v8::Object>, TestActiveDOMObject*, v8::Isolate*) { }
|
| + static void installPerContextEnabledProperties(v8::Handle<v8::Object>, TestActiveDOMObjectInterface*, 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(TestActiveDOMObjectInterface*, v8::Handle<v8::Object> creationContext, v8::Isolate*);
|
| + static v8::Handle<v8::Object> createWrapper(PassRefPtr<TestActiveDOMObjectInterface>, v8::Handle<v8::Object> creationContext, v8::Isolate*);
|
| };
|
|
|
| template<>
|
| -class WrapperTypeTraits<TestActiveDOMObject > {
|
| +class WrapperTypeTraits<TestActiveDOMObjectInterface > {
|
| public:
|
| - static const WrapperTypeInfo* wrapperTypeInfo() { return &V8TestActiveDOMObject::wrapperTypeInfo; }
|
| + static const WrapperTypeInfo* wrapperTypeInfo() { return &V8TestActiveDOMObjectInterface::wrapperTypeInfo; }
|
| };
|
|
|
| -inline v8::Handle<v8::Object> wrap(TestActiveDOMObject* impl, v8::Handle<v8::Object> creationContext, v8::Isolate* isolate)
|
| +inline v8::Handle<v8::Object> wrap(TestActiveDOMObjectInterface* impl, v8::Handle<v8::Object> creationContext, v8::Isolate* isolate)
|
| {
|
| ASSERT(impl);
|
| - ASSERT(!DOMDataStore::containsWrapper<V8TestActiveDOMObject>(impl, isolate));
|
| - return V8TestActiveDOMObject::createWrapper(impl, creationContext, isolate);
|
| + ASSERT(!DOMDataStore::containsWrapper<V8TestActiveDOMObjectInterface>(impl, isolate));
|
| + return V8TestActiveDOMObjectInterface::createWrapper(impl, creationContext, isolate);
|
| }
|
|
|
| -inline v8::Handle<v8::Value> toV8(TestActiveDOMObject* impl, v8::Handle<v8::Object> creationContext, v8::Isolate* isolate)
|
| +inline v8::Handle<v8::Value> toV8(TestActiveDOMObjectInterface* impl, v8::Handle<v8::Object> creationContext, v8::Isolate* isolate)
|
| {
|
| if (UNLIKELY(!impl))
|
| return v8NullWithCheck(isolate);
|
| - v8::Handle<v8::Value> wrapper = DOMDataStore::getWrapper<V8TestActiveDOMObject>(impl, isolate);
|
| + v8::Handle<v8::Value> wrapper = DOMDataStore::getWrapper<V8TestActiveDOMObjectInterface>(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, TestActiveDOMObjectInterface* impl)
|
| {
|
| if (UNLIKELY(!impl)) {
|
| v8SetReturnValueNull(callbackInfo);
|
| return;
|
| }
|
| - if (DOMDataStore::setReturnValueFromWrapper<V8TestActiveDOMObject>(callbackInfo.GetReturnValue(), impl))
|
| + if (DOMDataStore::setReturnValueFromWrapper<V8TestActiveDOMObjectInterface>(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, TestActiveDOMObjectInterface* impl)
|
| {
|
| ASSERT(worldType(callbackInfo.GetIsolate()) == MainWorld);
|
| if (UNLIKELY(!impl)) {
|
| v8SetReturnValueNull(callbackInfo);
|
| return;
|
| }
|
| - if (DOMDataStore::setReturnValueFromWrapperForMainWorld<V8TestActiveDOMObject>(callbackInfo.GetReturnValue(), impl))
|
| + if (DOMDataStore::setReturnValueFromWrapperForMainWorld<V8TestActiveDOMObjectInterface>(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, TestActiveDOMObjectInterface* impl, Wrappable* wrappable)
|
| {
|
| if (UNLIKELY(!impl)) {
|
| v8SetReturnValueNull(callbackInfo);
|
| return;
|
| }
|
| - if (DOMDataStore::setReturnValueFromWrapperFast<V8TestActiveDOMObject>(callbackInfo.GetReturnValue(), impl, callbackInfo.Holder(), wrappable))
|
| + if (DOMDataStore::setReturnValueFromWrapperFast<V8TestActiveDOMObjectInterface>(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<TestActiveDOMObjectInterface > 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<TestActiveDOMObjectInterface > impl)
|
| {
|
| v8SetReturnValue(callbackInfo, impl.get());
|
| }
|
|
|
| template<class CallbackInfo>
|
| -inline void v8SetReturnValueForMainWorld(const CallbackInfo& callbackInfo, PassRefPtr<TestActiveDOMObject > impl)
|
| +inline void v8SetReturnValueForMainWorld(const CallbackInfo& callbackInfo, PassRefPtr<TestActiveDOMObjectInterface > 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<TestActiveDOMObjectInterface > impl, Wrappable* wrappable)
|
| {
|
| v8SetReturnValueFast(callbackInfo, impl.get(), wrappable);
|
| }
|
|
|
| }
|
|
|
| -#endif // V8TestActiveDOMObject_h
|
| +#endif // V8TestActiveDOMObjectInterface_h
|
|
|