| Index: third_party/WebKit/Source/bindings/tests/results/core/V8TestInterface2.cpp
|
| diff --git a/third_party/WebKit/Source/bindings/tests/results/core/V8TestInterface2.cpp b/third_party/WebKit/Source/bindings/tests/results/core/V8TestInterface2.cpp
|
| index 0f985325dd03c550f8b00e8954f74c90cc7a758c..c6e5a3b18fe1951626b657bcc6861ba02c34ac58 100644
|
| --- a/third_party/WebKit/Source/bindings/tests/results/core/V8TestInterface2.cpp
|
| +++ b/third_party/WebKit/Source/bindings/tests/results/core/V8TestInterface2.cpp
|
| @@ -78,10 +78,6 @@ static void legacyCallerMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| v8SetReturnValue(info, impl->legacyCaller(index));
|
| }
|
|
|
| -CORE_EXPORT void legacyCallerMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) {
|
| - TestInterface2V8Internal::legacyCallerMethod(info);
|
| -}
|
| -
|
| static void itemMethod(const v8::FunctionCallbackInfo<v8::Value>& info) {
|
| ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionContext, "TestInterface2", "item");
|
|
|
| @@ -104,10 +100,6 @@ static void itemMethod(const v8::FunctionCallbackInfo<v8::Value>& info) {
|
| v8SetReturnValue(info, result);
|
| }
|
|
|
| -CORE_EXPORT void itemMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) {
|
| - TestInterface2V8Internal::itemMethod(info);
|
| -}
|
| -
|
| static void setItemMethod(const v8::FunctionCallbackInfo<v8::Value>& info) {
|
| ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionContext, "TestInterface2", "setItem");
|
|
|
| @@ -138,10 +130,6 @@ static void setItemMethod(const v8::FunctionCallbackInfo<v8::Value>& info) {
|
| v8SetReturnValue(info, result);
|
| }
|
|
|
| -CORE_EXPORT void setItemMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) {
|
| - TestInterface2V8Internal::setItemMethod(info);
|
| -}
|
| -
|
| static void deleteItemMethod(const v8::FunctionCallbackInfo<v8::Value>& info) {
|
| ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionContext, "TestInterface2", "deleteItem");
|
|
|
| @@ -164,10 +152,6 @@ static void deleteItemMethod(const v8::FunctionCallbackInfo<v8::Value>& info) {
|
| v8SetReturnValueBool(info, result);
|
| }
|
|
|
| -CORE_EXPORT void deleteItemMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) {
|
| - TestInterface2V8Internal::deleteItemMethod(info);
|
| -}
|
| -
|
| static void namedItemMethod(const v8::FunctionCallbackInfo<v8::Value>& info) {
|
| ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionContext, "TestInterface2", "namedItem");
|
|
|
| @@ -190,10 +174,6 @@ static void namedItemMethod(const v8::FunctionCallbackInfo<v8::Value>& info) {
|
| v8SetReturnValue(info, result);
|
| }
|
|
|
| -CORE_EXPORT void namedItemMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) {
|
| - TestInterface2V8Internal::namedItemMethod(info);
|
| -}
|
| -
|
| static void setNamedItemMethod(const v8::FunctionCallbackInfo<v8::Value>& info) {
|
| ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionContext, "TestInterface2", "setNamedItem");
|
|
|
| @@ -224,10 +204,6 @@ static void setNamedItemMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| v8SetReturnValue(info, result);
|
| }
|
|
|
| -CORE_EXPORT void setNamedItemMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) {
|
| - TestInterface2V8Internal::setNamedItemMethod(info);
|
| -}
|
| -
|
| static void deleteNamedItemMethod(const v8::FunctionCallbackInfo<v8::Value>& info) {
|
| ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionContext, "TestInterface2", "deleteNamedItem");
|
|
|
| @@ -250,20 +226,12 @@ static void deleteNamedItemMethod(const v8::FunctionCallbackInfo<v8::Value>& inf
|
| v8SetReturnValueBool(info, result);
|
| }
|
|
|
| -CORE_EXPORT void deleteNamedItemMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) {
|
| - TestInterface2V8Internal::deleteNamedItemMethod(info);
|
| -}
|
| -
|
| static void stringifierMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info) {
|
| TestInterface2* impl = V8TestInterface2::toImpl(info.Holder());
|
|
|
| v8SetReturnValueString(info, impl->stringifierMethod(), info.GetIsolate());
|
| }
|
|
|
| -CORE_EXPORT void stringifierMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) {
|
| - TestInterface2V8Internal::stringifierMethodMethod(info);
|
| -}
|
| -
|
| static void keysMethod(const v8::FunctionCallbackInfo<v8::Value>& info) {
|
| ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionContext, "TestInterface2", "keys");
|
|
|
| @@ -278,10 +246,6 @@ static void keysMethod(const v8::FunctionCallbackInfo<v8::Value>& info) {
|
| v8SetReturnValue(info, result);
|
| }
|
|
|
| -CORE_EXPORT void keysMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) {
|
| - TestInterface2V8Internal::keysMethod(info);
|
| -}
|
| -
|
| static void valuesMethod(const v8::FunctionCallbackInfo<v8::Value>& info) {
|
| ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionContext, "TestInterface2", "values");
|
|
|
| @@ -296,10 +260,6 @@ static void valuesMethod(const v8::FunctionCallbackInfo<v8::Value>& info) {
|
| v8SetReturnValue(info, result);
|
| }
|
|
|
| -CORE_EXPORT void valuesMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) {
|
| - TestInterface2V8Internal::valuesMethod(info);
|
| -}
|
| -
|
| static void entriesMethod(const v8::FunctionCallbackInfo<v8::Value>& info) {
|
| ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionContext, "TestInterface2", "entries");
|
|
|
| @@ -314,10 +274,6 @@ static void entriesMethod(const v8::FunctionCallbackInfo<v8::Value>& info) {
|
| v8SetReturnValue(info, result);
|
| }
|
|
|
| -CORE_EXPORT void entriesMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) {
|
| - TestInterface2V8Internal::entriesMethod(info);
|
| -}
|
| -
|
| static void forEachMethod(const v8::FunctionCallbackInfo<v8::Value>& info) {
|
| ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionContext, "TestInterface2", "forEach");
|
|
|
| @@ -347,10 +303,6 @@ static void forEachMethod(const v8::FunctionCallbackInfo<v8::Value>& info) {
|
| }
|
| }
|
|
|
| -CORE_EXPORT void forEachMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) {
|
| - TestInterface2V8Internal::forEachMethod(info);
|
| -}
|
| -
|
| static void hasMethod(const v8::FunctionCallbackInfo<v8::Value>& info) {
|
| ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionContext, "TestInterface2", "has");
|
|
|
| @@ -378,20 +330,12 @@ static void hasMethod(const v8::FunctionCallbackInfo<v8::Value>& info) {
|
| v8SetReturnValueBool(info, result);
|
| }
|
|
|
| -CORE_EXPORT void hasMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) {
|
| - TestInterface2V8Internal::hasMethod(info);
|
| -}
|
| -
|
| static void toStringMethod(const v8::FunctionCallbackInfo<v8::Value>& info) {
|
| TestInterface2* impl = V8TestInterface2::toImpl(info.Holder());
|
|
|
| v8SetReturnValueString(info, impl->stringifierMethod(), info.GetIsolate());
|
| }
|
|
|
| -CORE_EXPORT void toStringMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) {
|
| - TestInterface2V8Internal::toStringMethod(info);
|
| -}
|
| -
|
| static void iteratorMethod(const v8::FunctionCallbackInfo<v8::Value>& info) {
|
| ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionContext, "TestInterface2", "iterator");
|
|
|
| @@ -406,10 +350,6 @@ static void iteratorMethod(const v8::FunctionCallbackInfo<v8::Value>& info) {
|
| v8SetReturnValue(info, result);
|
| }
|
|
|
| -CORE_EXPORT void iteratorMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) {
|
| - TestInterface2V8Internal::iteratorMethod(info);
|
| -}
|
| -
|
| static void constructor(const v8::FunctionCallbackInfo<v8::Value>& info) {
|
| TestInterface2* impl = TestInterface2::create();
|
| v8::Local<v8::Object> wrapper = info.Holder();
|
| @@ -428,14 +368,6 @@ static void namedPropertyGetter(const AtomicString& name, const v8::PropertyCall
|
| v8SetReturnValueFast(info, result, impl);
|
| }
|
|
|
| -CORE_EXPORT void namedPropertyGetterCallback(v8::Local<v8::Name> name, const v8::PropertyCallbackInfo<v8::Value>& info) {
|
| - if (!name->IsString())
|
| - return;
|
| - const AtomicString& propertyName = toCoreAtomicString(name.As<v8::String>());
|
| -
|
| - TestInterface2V8Internal::namedPropertyGetter(propertyName, info);
|
| -}
|
| -
|
| static void namedPropertySetter(const AtomicString& name, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<v8::Value>& info) {
|
| const CString& nameInUtf8 = name.utf8();
|
| ExceptionState exceptionState(info.GetIsolate(), ExceptionState::SetterContext, "TestInterface2", nameInUtf8.data());
|
| @@ -455,14 +387,6 @@ static void namedPropertySetter(const AtomicString& name, v8::Local<v8::Value> v
|
| v8SetReturnValue(info, v8Value);
|
| }
|
|
|
| -CORE_EXPORT void namedPropertySetterCallback(v8::Local<v8::Name> name, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<v8::Value>& info) {
|
| - if (!name->IsString())
|
| - return;
|
| - const AtomicString& propertyName = toCoreAtomicString(name.As<v8::String>());
|
| -
|
| - TestInterface2V8Internal::namedPropertySetter(propertyName, v8Value, info);
|
| -}
|
| -
|
| static void namedPropertyDeleter(const AtomicString& name, const v8::PropertyCallbackInfo<v8::Boolean>& info) {
|
| const CString& nameInUtf8 = name.utf8();
|
| ExceptionState exceptionState(info.GetIsolate(), ExceptionState::DeletionContext, "TestInterface2", nameInUtf8.data());
|
| @@ -477,14 +401,6 @@ static void namedPropertyDeleter(const AtomicString& name, const v8::PropertyCal
|
| v8SetReturnValue(info, result == DeleteSuccess);
|
| }
|
|
|
| -CORE_EXPORT void namedPropertyDeleterCallback(v8::Local<v8::Name> name, const v8::PropertyCallbackInfo<v8::Boolean>& info) {
|
| - if (!name->IsString())
|
| - return;
|
| - const AtomicString& propertyName = toCoreAtomicString(name.As<v8::String>());
|
| -
|
| - TestInterface2V8Internal::namedPropertyDeleter(propertyName, info);
|
| -}
|
| -
|
| static void namedPropertyQuery(const AtomicString& name, const v8::PropertyCallbackInfo<v8::Integer>& info) {
|
| const CString& nameInUtf8 = name.utf8();
|
| ExceptionState exceptionState(info.GetIsolate(), ExceptionState::GetterContext, "TestInterface2", nameInUtf8.data());
|
| @@ -497,14 +413,6 @@ static void namedPropertyQuery(const AtomicString& name, const v8::PropertyCallb
|
| v8SetReturnValueInt(info, v8::None);
|
| }
|
|
|
| -CORE_EXPORT void namedPropertyQueryCallback(v8::Local<v8::Name> name, const v8::PropertyCallbackInfo<v8::Integer>& info) {
|
| - if (!name->IsString())
|
| - return;
|
| - const AtomicString& propertyName = toCoreAtomicString(name.As<v8::String>());
|
| -
|
| - TestInterface2V8Internal::namedPropertyQuery(propertyName, info);
|
| -}
|
| -
|
| static void namedPropertyEnumerator(const v8::PropertyCallbackInfo<v8::Array>& info) {
|
| ExceptionState exceptionState(info.GetIsolate(), ExceptionState::EnumerationContext, "TestInterface2");
|
|
|
| @@ -517,10 +425,6 @@ static void namedPropertyEnumerator(const v8::PropertyCallbackInfo<v8::Array>& i
|
| v8SetReturnValue(info, ToV8(names, info.Holder(), info.GetIsolate()).As<v8::Array>());
|
| }
|
|
|
| -CORE_EXPORT void namedPropertyEnumeratorCallback(const v8::PropertyCallbackInfo<v8::Array>& info) {
|
| - TestInterface2V8Internal::namedPropertyEnumerator(info);
|
| -}
|
| -
|
| static void indexedPropertyGetter(uint32_t index, const v8::PropertyCallbackInfo<v8::Value>& info) {
|
| ExceptionState exceptionState(info.GetIsolate(), ExceptionState::IndexedGetterContext, "TestInterface2");
|
|
|
| @@ -537,10 +441,6 @@ static void indexedPropertyGetter(uint32_t index, const v8::PropertyCallbackInfo
|
| v8SetReturnValueFast(info, result, impl);
|
| }
|
|
|
| -CORE_EXPORT void indexedPropertyGetterCallback(uint32_t index, const v8::PropertyCallbackInfo<v8::Value>& info) {
|
| - TestInterface2V8Internal::indexedPropertyGetter(index, info);
|
| -}
|
| -
|
| static void indexedPropertySetter(uint32_t index, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<v8::Value>& info) {
|
| ExceptionState exceptionState(info.GetIsolate(), ExceptionState::IndexedSetterContext, "TestInterface2");
|
|
|
| @@ -559,10 +459,6 @@ static void indexedPropertySetter(uint32_t index, v8::Local<v8::Value> v8Value,
|
| v8SetReturnValue(info, v8Value);
|
| }
|
|
|
| -CORE_EXPORT void indexedPropertySetterCallback(uint32_t index, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<v8::Value>& info) {
|
| - TestInterface2V8Internal::indexedPropertySetter(index, v8Value, info);
|
| -}
|
| -
|
| static void indexedPropertyDeleter(uint32_t index, const v8::PropertyCallbackInfo<v8::Boolean>& info) {
|
| ExceptionState exceptionState(info.GetIsolate(), ExceptionState::IndexedDeletionContext, "TestInterface2");
|
|
|
| @@ -576,11 +472,115 @@ static void indexedPropertyDeleter(uint32_t index, const v8::PropertyCallbackInf
|
| v8SetReturnValue(info, result == DeleteSuccess);
|
| }
|
|
|
| -CORE_EXPORT void indexedPropertyDeleterCallback(uint32_t index, const v8::PropertyCallbackInfo<v8::Boolean>& info) {
|
| - TestInterface2V8Internal::indexedPropertyDeleter(index, info);
|
| +} // namespace TestInterface2V8Internal
|
| +
|
| +void V8TestInterface2::legacyCallerMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) {
|
| + TestInterface2V8Internal::legacyCallerMethod(info);
|
| }
|
|
|
| -} // namespace TestInterface2V8Internal
|
| +void V8TestInterface2::itemMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) {
|
| + TestInterface2V8Internal::itemMethod(info);
|
| +}
|
| +
|
| +void V8TestInterface2::setItemMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) {
|
| + TestInterface2V8Internal::setItemMethod(info);
|
| +}
|
| +
|
| +void V8TestInterface2::deleteItemMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) {
|
| + TestInterface2V8Internal::deleteItemMethod(info);
|
| +}
|
| +
|
| +void V8TestInterface2::namedItemMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) {
|
| + TestInterface2V8Internal::namedItemMethod(info);
|
| +}
|
| +
|
| +void V8TestInterface2::setNamedItemMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) {
|
| + TestInterface2V8Internal::setNamedItemMethod(info);
|
| +}
|
| +
|
| +void V8TestInterface2::deleteNamedItemMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) {
|
| + TestInterface2V8Internal::deleteNamedItemMethod(info);
|
| +}
|
| +
|
| +void V8TestInterface2::stringifierMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) {
|
| + TestInterface2V8Internal::stringifierMethodMethod(info);
|
| +}
|
| +
|
| +void V8TestInterface2::keysMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) {
|
| + TestInterface2V8Internal::keysMethod(info);
|
| +}
|
| +
|
| +void V8TestInterface2::valuesMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) {
|
| + TestInterface2V8Internal::valuesMethod(info);
|
| +}
|
| +
|
| +void V8TestInterface2::entriesMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) {
|
| + TestInterface2V8Internal::entriesMethod(info);
|
| +}
|
| +
|
| +void V8TestInterface2::forEachMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) {
|
| + TestInterface2V8Internal::forEachMethod(info);
|
| +}
|
| +
|
| +void V8TestInterface2::hasMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) {
|
| + TestInterface2V8Internal::hasMethod(info);
|
| +}
|
| +
|
| +void V8TestInterface2::toStringMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) {
|
| + TestInterface2V8Internal::toStringMethod(info);
|
| +}
|
| +
|
| +void V8TestInterface2::iteratorMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) {
|
| + TestInterface2V8Internal::iteratorMethod(info);
|
| +}
|
| +
|
| +void V8TestInterface2::namedPropertyGetterCallback(v8::Local<v8::Name> name, const v8::PropertyCallbackInfo<v8::Value>& info) {
|
| + if (!name->IsString())
|
| + return;
|
| + const AtomicString& propertyName = toCoreAtomicString(name.As<v8::String>());
|
| +
|
| + TestInterface2V8Internal::namedPropertyGetter(propertyName, info);
|
| +}
|
| +
|
| +void V8TestInterface2::namedPropertySetterCallback(v8::Local<v8::Name> name, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<v8::Value>& info) {
|
| + if (!name->IsString())
|
| + return;
|
| + const AtomicString& propertyName = toCoreAtomicString(name.As<v8::String>());
|
| +
|
| + TestInterface2V8Internal::namedPropertySetter(propertyName, v8Value, info);
|
| +}
|
| +
|
| +void V8TestInterface2::namedPropertyDeleterCallback(v8::Local<v8::Name> name, const v8::PropertyCallbackInfo<v8::Boolean>& info) {
|
| + if (!name->IsString())
|
| + return;
|
| + const AtomicString& propertyName = toCoreAtomicString(name.As<v8::String>());
|
| +
|
| + TestInterface2V8Internal::namedPropertyDeleter(propertyName, info);
|
| +}
|
| +
|
| +void V8TestInterface2::namedPropertyQueryCallback(v8::Local<v8::Name> name, const v8::PropertyCallbackInfo<v8::Integer>& info) {
|
| + if (!name->IsString())
|
| + return;
|
| + const AtomicString& propertyName = toCoreAtomicString(name.As<v8::String>());
|
| +
|
| + TestInterface2V8Internal::namedPropertyQuery(propertyName, info);
|
| +}
|
| +
|
| +void V8TestInterface2::namedPropertyEnumeratorCallback(const v8::PropertyCallbackInfo<v8::Array>& info) {
|
| + TestInterface2V8Internal::namedPropertyEnumerator(info);
|
| +}
|
| +
|
| +void V8TestInterface2::indexedPropertyGetterCallback(uint32_t index, const v8::PropertyCallbackInfo<v8::Value>& info) {
|
| + TestInterface2V8Internal::indexedPropertyGetter(index, info);
|
| +}
|
| +
|
| +void V8TestInterface2::indexedPropertySetterCallback(uint32_t index, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<v8::Value>& info) {
|
| + TestInterface2V8Internal::indexedPropertySetter(index, v8Value, info);
|
| +}
|
| +
|
| +void V8TestInterface2::indexedPropertyDeleterCallback(uint32_t index, const v8::PropertyCallbackInfo<v8::Boolean>& info) {
|
| + TestInterface2V8Internal::indexedPropertyDeleter(index, info);
|
| +}
|
|
|
| void V8TestInterface2::visitDOMWrapper(v8::Isolate* isolate, ScriptWrappable* scriptWrappable, const v8::Persistent<v8::Object>& wrapper) {
|
| TestInterface2* impl = scriptWrappable->toImpl<TestInterface2>();
|
| @@ -593,20 +593,20 @@ void V8TestInterface2::visitDOMWrapper(v8::Isolate* isolate, ScriptWrappable* sc
|
| }
|
|
|
| const V8DOMConfiguration::MethodConfiguration V8TestInterface2Methods[] = {
|
| - {"legacyCaller", TestInterface2V8Internal::legacyCallerMethodCallback, 0, 1, v8::None, V8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolder},
|
| - {"item", TestInterface2V8Internal::itemMethodCallback, 0, 1, v8::None, V8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolder},
|
| - {"setItem", TestInterface2V8Internal::setItemMethodCallback, 0, 2, v8::None, V8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolder},
|
| - {"deleteItem", TestInterface2V8Internal::deleteItemMethodCallback, 0, 1, v8::None, V8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolder},
|
| - {"namedItem", TestInterface2V8Internal::namedItemMethodCallback, 0, 1, v8::None, V8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolder},
|
| - {"setNamedItem", TestInterface2V8Internal::setNamedItemMethodCallback, 0, 2, v8::None, V8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolder},
|
| - {"deleteNamedItem", TestInterface2V8Internal::deleteNamedItemMethodCallback, 0, 1, v8::None, V8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolder},
|
| - {"stringifierMethod", TestInterface2V8Internal::stringifierMethodMethodCallback, 0, 0, v8::None, V8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolder},
|
| - {"keys", TestInterface2V8Internal::keysMethodCallback, 0, 0, v8::None, V8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolder},
|
| - {"values", TestInterface2V8Internal::valuesMethodCallback, 0, 0, v8::None, V8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolder},
|
| - {"entries", TestInterface2V8Internal::entriesMethodCallback, 0, 0, v8::None, V8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolder},
|
| - {"forEach", TestInterface2V8Internal::forEachMethodCallback, 0, 1, v8::None, V8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolder},
|
| - {"has", TestInterface2V8Internal::hasMethodCallback, 0, 1, v8::None, V8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolder},
|
| - {"toString", TestInterface2V8Internal::toStringMethodCallback, 0, 0, v8::None, V8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolder},
|
| + {"legacyCaller", V8TestInterface2::legacyCallerMethodCallback, nullptr, 1, v8::None, V8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolder},
|
| + {"item", V8TestInterface2::itemMethodCallback, nullptr, 1, v8::None, V8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolder},
|
| + {"setItem", V8TestInterface2::setItemMethodCallback, nullptr, 2, v8::None, V8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolder},
|
| + {"deleteItem", V8TestInterface2::deleteItemMethodCallback, nullptr, 1, v8::None, V8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolder},
|
| + {"namedItem", V8TestInterface2::namedItemMethodCallback, nullptr, 1, v8::None, V8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolder},
|
| + {"setNamedItem", V8TestInterface2::setNamedItemMethodCallback, nullptr, 2, v8::None, V8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolder},
|
| + {"deleteNamedItem", V8TestInterface2::deleteNamedItemMethodCallback, nullptr, 1, v8::None, V8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolder},
|
| + {"stringifierMethod", V8TestInterface2::stringifierMethodMethodCallback, nullptr, 0, v8::None, V8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolder},
|
| + {"keys", V8TestInterface2::keysMethodCallback, nullptr, 0, v8::None, V8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolder},
|
| + {"values", V8TestInterface2::valuesMethodCallback, nullptr, 0, v8::None, V8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolder},
|
| + {"entries", V8TestInterface2::entriesMethodCallback, nullptr, 0, v8::None, V8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolder},
|
| + {"forEach", V8TestInterface2::forEachMethodCallback, nullptr, 1, v8::None, V8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolder},
|
| + {"has", V8TestInterface2::hasMethodCallback, nullptr, 1, v8::None, V8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolder},
|
| + {"toString", V8TestInterface2::toStringMethodCallback, nullptr, 0, v8::None, V8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolder},
|
| };
|
|
|
| void V8TestInterface2::constructorCallback(const v8::FunctionCallbackInfo<v8::Value>& info) {
|
| @@ -645,14 +645,14 @@ void V8TestInterface2::installV8TestInterface2Template(v8::Isolate* isolate, con
|
| V8DOMConfiguration::installMethods(isolate, world, instanceTemplate, prototypeTemplate, interfaceTemplate, signature, V8TestInterface2Methods, WTF_ARRAY_LENGTH(V8TestInterface2Methods));
|
|
|
| // Indexed properties
|
| - v8::IndexedPropertyHandlerConfiguration indexedPropertyHandlerConfig(TestInterface2V8Internal::indexedPropertyGetterCallback, TestInterface2V8Internal::indexedPropertySetterCallback, 0, TestInterface2V8Internal::indexedPropertyDeleterCallback, indexedPropertyEnumerator<TestInterface2>, v8::Local<v8::Value>(), v8::PropertyHandlerFlags::kNone);
|
| + v8::IndexedPropertyHandlerConfiguration indexedPropertyHandlerConfig(V8TestInterface2::indexedPropertyGetterCallback, V8TestInterface2::indexedPropertySetterCallback, nullptr, V8TestInterface2::indexedPropertyDeleterCallback, indexedPropertyEnumerator<TestInterface2>, v8::Local<v8::Value>(), v8::PropertyHandlerFlags::kNone);
|
| instanceTemplate->SetHandler(indexedPropertyHandlerConfig);
|
| // Named properties
|
| - v8::NamedPropertyHandlerConfiguration namedPropertyHandlerConfig(TestInterface2V8Internal::namedPropertyGetterCallback, TestInterface2V8Internal::namedPropertySetterCallback, TestInterface2V8Internal::namedPropertyQueryCallback, TestInterface2V8Internal::namedPropertyDeleterCallback, TestInterface2V8Internal::namedPropertyEnumeratorCallback, v8::Local<v8::Value>(), static_cast<v8::PropertyHandlerFlags>(int(v8::PropertyHandlerFlags::kOnlyInterceptStrings) | int(v8::PropertyHandlerFlags::kNonMasking)));
|
| + v8::NamedPropertyHandlerConfiguration namedPropertyHandlerConfig(V8TestInterface2::namedPropertyGetterCallback, V8TestInterface2::namedPropertySetterCallback, V8TestInterface2::namedPropertyQueryCallback, V8TestInterface2::namedPropertyDeleterCallback, V8TestInterface2::namedPropertyEnumeratorCallback, v8::Local<v8::Value>(), static_cast<v8::PropertyHandlerFlags>(int(v8::PropertyHandlerFlags::kOnlyInterceptStrings) | int(v8::PropertyHandlerFlags::kNonMasking)));
|
| instanceTemplate->SetHandler(namedPropertyHandlerConfig);
|
|
|
| // Iterator (@@iterator)
|
| - const V8DOMConfiguration::SymbolKeyedMethodConfiguration symbolKeyedIteratorConfiguration = { v8::Symbol::GetIterator, TestInterface2V8Internal::iteratorMethodCallback, 0, v8::DontEnum, V8DOMConfiguration::OnPrototype };
|
| + const V8DOMConfiguration::SymbolKeyedMethodConfiguration symbolKeyedIteratorConfiguration = { v8::Symbol::GetIterator, V8TestInterface2::iteratorMethodCallback, 0, v8::DontEnum, V8DOMConfiguration::OnPrototype };
|
| V8DOMConfiguration::installMethod(isolate, world, prototypeTemplate, signature, symbolKeyedIteratorConfiguration);
|
|
|
| instanceTemplate->SetCallAsFunctionHandler(TestInterface2V8Internal::legacyCallerMethodCallback);
|
|
|