Index: Source/bindings/tests/results/V8NonCoreTestInterface.h |
diff --git a/Source/bindings/tests/results/V8TestEventConstructor.h b/Source/bindings/tests/results/V8NonCoreTestInterface.h |
similarity index 63% |
copy from Source/bindings/tests/results/V8TestEventConstructor.h |
copy to Source/bindings/tests/results/V8NonCoreTestInterface.h |
index 3414d975bf6e0436255fae62461dd02437e94df7..ca31bd75244c83c6c42e821717fa82c6f2f2c26f 100644 |
--- a/Source/bindings/tests/results/V8TestEventConstructor.h |
+++ b/Source/bindings/tests/results/V8NonCoreTestInterface.h |
@@ -18,135 +18,134 @@ |
Boston, MA 02111-1307, USA. |
*/ |
-#ifndef V8TestEventConstructor_h |
-#define V8TestEventConstructor_h |
+#ifndef V8NonCoreTestInterface_h |
+#define V8NonCoreTestInterface_h |
-#include "bindings/tests/idls/TestEventConstructor.h" |
+#include "bindings/tests/idls/testing/NonCoreTestInterface.h" |
#include "bindings/v8/V8Binding.h" |
#include "bindings/v8/V8DOMWrapper.h" |
#include "bindings/v8/WrapperTypeInfo.h" |
namespace WebCore { |
-class Dictionary; |
-class V8TestEventConstructor { |
+class V8NonCoreTestInterface { |
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 TestEventConstructor* toNative(v8::Handle<v8::Object> object) |
+ static NonCoreTestInterface* toNative(v8::Handle<v8::Object> object) |
{ |
return fromInternalPointer(object->GetAlignedPointerFromInternalField(v8DOMWrapperObjectIndex)); |
} |
static void derefObject(void*); |
static WrapperTypeInfo info; |
- static void constructorCallback(const v8::FunctionCallbackInfo<v8::Value>&); |
+#if ENABLE(Condition11) || ENABLE(Condition12) |
+ static void supplementalMethod3MethodCustom(const v8::FunctionCallbackInfo<v8::Value>&); |
+#endif // ENABLE(Condition11) || ENABLE(Condition12) |
static const int internalFieldCount = v8DefaultWrapperInternalFieldCount + 0; |
- static inline void* toInternalPointer(TestEventConstructor* impl) |
+ static inline void* toInternalPointer(NonCoreTestInterface* impl) |
{ |
return impl; |
} |
- static inline TestEventConstructor* fromInternalPointer(void* object) |
+ static inline NonCoreTestInterface* fromInternalPointer(void* object) |
{ |
- return static_cast<TestEventConstructor*>(object); |
+ return static_cast<NonCoreTestInterface*>(object); |
} |
- static void installPerContextProperties(v8::Handle<v8::Object>, TestEventConstructor*, v8::Isolate*) { } |
+ static void installPerContextProperties(v8::Handle<v8::Object>, NonCoreTestInterface*, v8::Isolate*); |
static void installPerContextPrototypeProperties(v8::Handle<v8::Object>, v8::Isolate*) { } |
private: |
- friend v8::Handle<v8::Object> wrap(TestEventConstructor*, v8::Handle<v8::Object> creationContext, v8::Isolate*); |
- static v8::Handle<v8::Object> createWrapper(PassRefPtr<TestEventConstructor>, v8::Handle<v8::Object> creationContext, v8::Isolate*); |
+ friend v8::Handle<v8::Object> wrap(NonCoreTestInterface*, v8::Handle<v8::Object> creationContext, v8::Isolate*); |
+ static v8::Handle<v8::Object> createWrapper(PassRefPtr<NonCoreTestInterface>, v8::Handle<v8::Object> creationContext, v8::Isolate*); |
}; |
template<> |
-class WrapperTypeTraits<TestEventConstructor > { |
+class WrapperTypeTraits<NonCoreTestInterface > { |
public: |
- static WrapperTypeInfo* info() { return &V8TestEventConstructor::info; } |
+ static WrapperTypeInfo* info() { return &V8NonCoreTestInterface::info; } |
}; |
-inline v8::Handle<v8::Object> wrap(TestEventConstructor* impl, v8::Handle<v8::Object> creationContext, v8::Isolate* isolate) |
+inline v8::Handle<v8::Object> wrap(NonCoreTestInterface* impl, v8::Handle<v8::Object> creationContext, v8::Isolate* isolate) |
{ |
ASSERT(impl); |
- ASSERT(!DOMDataStore::containsWrapper<V8TestEventConstructor>(impl, isolate)); |
- return V8TestEventConstructor::createWrapper(impl, creationContext, isolate); |
+ ASSERT(!DOMDataStore::containsWrapper<V8NonCoreTestInterface>(impl, isolate)); |
+ return V8NonCoreTestInterface::createWrapper(impl, creationContext, isolate); |
} |
-inline v8::Handle<v8::Value> toV8(TestEventConstructor* impl, v8::Handle<v8::Object> creationContext, v8::Isolate* isolate) |
+inline v8::Handle<v8::Value> toV8(NonCoreTestInterface* impl, v8::Handle<v8::Object> creationContext, v8::Isolate* isolate) |
{ |
if (UNLIKELY(!impl)) |
return v8NullWithCheck(isolate); |
- v8::Handle<v8::Value> wrapper = DOMDataStore::getWrapper<V8TestEventConstructor>(impl, isolate); |
+ v8::Handle<v8::Value> wrapper = DOMDataStore::getWrapper<V8NonCoreTestInterface>(impl, isolate); |
if (!wrapper.IsEmpty()) |
return wrapper; |
return wrap(impl, creationContext, isolate); |
} |
template<typename CallbackInfo> |
-inline void v8SetReturnValue(const CallbackInfo& callbackInfo, TestEventConstructor* impl, v8::Handle<v8::Object> creationContext) |
+inline void v8SetReturnValue(const CallbackInfo& callbackInfo, NonCoreTestInterface* impl, v8::Handle<v8::Object> creationContext) |
{ |
if (UNLIKELY(!impl)) { |
v8SetReturnValueNull(callbackInfo); |
return; |
} |
- if (DOMDataStore::setReturnValueFromWrapper<V8TestEventConstructor>(callbackInfo.GetReturnValue(), impl)) |
+ if (DOMDataStore::setReturnValueFromWrapper<V8NonCoreTestInterface>(callbackInfo.GetReturnValue(), impl)) |
return; |
v8::Handle<v8::Object> wrapper = wrap(impl, creationContext, callbackInfo.GetIsolate()); |
v8SetReturnValue(callbackInfo, wrapper); |
} |
template<typename CallbackInfo> |
-inline void v8SetReturnValueForMainWorld(const CallbackInfo& callbackInfo, TestEventConstructor* impl, v8::Handle<v8::Object> creationContext) |
+inline void v8SetReturnValueForMainWorld(const CallbackInfo& callbackInfo, NonCoreTestInterface* impl, v8::Handle<v8::Object> creationContext) |
{ |
ASSERT(worldType(callbackInfo.GetIsolate()) == MainWorld); |
if (UNLIKELY(!impl)) { |
v8SetReturnValueNull(callbackInfo); |
return; |
} |
- if (DOMDataStore::setReturnValueFromWrapperForMainWorld<V8TestEventConstructor>(callbackInfo.GetReturnValue(), impl)) |
+ if (DOMDataStore::setReturnValueFromWrapperForMainWorld<V8NonCoreTestInterface>(callbackInfo.GetReturnValue(), impl)) |
return; |
v8::Handle<v8::Value> wrapper = wrap(impl, creationContext, callbackInfo.GetIsolate()); |
v8SetReturnValue(callbackInfo, wrapper); |
} |
template<class CallbackInfo, class Wrappable> |
-inline void v8SetReturnValueFast(const CallbackInfo& callbackInfo, TestEventConstructor* impl, Wrappable* wrappable) |
+inline void v8SetReturnValueFast(const CallbackInfo& callbackInfo, NonCoreTestInterface* impl, Wrappable* wrappable) |
{ |
if (UNLIKELY(!impl)) { |
v8SetReturnValueNull(callbackInfo); |
return; |
} |
- if (DOMDataStore::setReturnValueFromWrapperFast<V8TestEventConstructor>(callbackInfo.GetReturnValue(), impl, callbackInfo.Holder(), wrappable)) |
+ if (DOMDataStore::setReturnValueFromWrapperFast<V8NonCoreTestInterface>(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<TestEventConstructor > impl, v8::Handle<v8::Object> creationContext, v8::Isolate* isolate) |
+inline v8::Handle<v8::Value> toV8(PassRefPtr<NonCoreTestInterface > 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<TestEventConstructor > impl, v8::Handle<v8::Object> creationContext) |
+inline void v8SetReturnValue(const CallbackInfo& callbackInfo, PassRefPtr<NonCoreTestInterface > impl, v8::Handle<v8::Object> creationContext) |
{ |
v8SetReturnValue(callbackInfo, impl.get(), creationContext); |
} |
template<class CallbackInfo> |
-inline void v8SetReturnValueForMainWorld(const CallbackInfo& callbackInfo, PassRefPtr<TestEventConstructor > impl, v8::Handle<v8::Object> creationContext) |
+inline void v8SetReturnValueForMainWorld(const CallbackInfo& callbackInfo, PassRefPtr<NonCoreTestInterface > impl, v8::Handle<v8::Object> creationContext) |
{ |
v8SetReturnValueForMainWorld(callbackInfo, impl.get(), creationContext); |
} |
template<class CallbackInfo, class Wrappable> |
-inline void v8SetReturnValueFast(const CallbackInfo& callbackInfo, PassRefPtr<TestEventConstructor > impl, Wrappable* wrappable) |
+inline void v8SetReturnValueFast(const CallbackInfo& callbackInfo, PassRefPtr<NonCoreTestInterface > impl, Wrappable* wrappable) |
{ |
v8SetReturnValueFast(callbackInfo, impl.get(), wrappable); |
} |
-bool fillTestEventConstructorInit(TestEventConstructorInit&, const Dictionary&); |
- |
} |
-#endif // V8TestEventConstructor_h |
+#endif // V8NonCoreTestInterface_h |