| Index: third_party/WebKit/Source/bindings/tests/results/core/V8TestInterface3.cpp
|
| diff --git a/third_party/WebKit/Source/bindings/tests/results/core/V8TestInterface3.cpp b/third_party/WebKit/Source/bindings/tests/results/core/V8TestInterface3.cpp
|
| index d5081acff0068be32cb2f0edb5e2bc74c08de2aa..228435e1d800020e856e71b4907400eb8e48f66b 100644
|
| --- a/third_party/WebKit/Source/bindings/tests/results/core/V8TestInterface3.cpp
|
| +++ b/third_party/WebKit/Source/bindings/tests/results/core/V8TestInterface3.cpp
|
| @@ -39,6 +39,18 @@ const WrapperTypeInfo& TestInterface3::s_wrapperTypeInfo = V8TestInterface3::wra
|
|
|
| namespace TestInterface3V8Internal {
|
|
|
| +static void readonlyStringifierAttributeAttributeGetter(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| +{
|
| + v8::Local<v8::Object> holder = info.Holder();
|
| + TestInterface3* impl = V8TestInterface3::toImpl(holder);
|
| + v8SetReturnValueString(info, impl->readonlyStringifierAttribute(), info.GetIsolate());
|
| +}
|
| +
|
| +static void readonlyStringifierAttributeAttributeGetterCallback(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| +{
|
| + TestInterface3V8Internal::readonlyStringifierAttributeAttributeGetter(info);
|
| +}
|
| +
|
| static void voidMethodDocumentMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| if (UNLIKELY(info.Length() < 1)) {
|
| @@ -149,6 +161,17 @@ static void forEachMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& inf
|
| TestInterface3V8Internal::forEachMethod(info);
|
| }
|
|
|
| +static void toStringMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| +{
|
| + TestInterface3* impl = V8TestInterface3::toImpl(info.Holder());
|
| + v8SetReturnValueString(info, impl->readonlyStringifierAttribute(), info.GetIsolate());
|
| +}
|
| +
|
| +static void toStringMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| +{
|
| + TestInterface3V8Internal::toStringMethod(info);
|
| +}
|
| +
|
| static void iteratorMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| ExceptionState exceptionState(ExceptionState::ExecutionContext, "iterator", "TestInterface3", info.Holder(), info.GetIsolate());
|
| @@ -209,8 +232,13 @@ static void namedPropertyEnumeratorCallback(const v8::PropertyCallbackInfo<v8::A
|
|
|
| } // namespace TestInterface3V8Internal
|
|
|
| +const V8DOMConfiguration::AccessorConfiguration V8TestInterface3Accessors[] = {
|
| + {"readonlyStringifierAttribute", TestInterface3V8Internal::readonlyStringifierAttributeAttributeGetterCallback, 0, 0, 0, 0, v8::DEFAULT, static_cast<v8::PropertyAttribute>(v8::ReadOnly), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolder},
|
| +};
|
| +
|
| const V8DOMConfiguration::MethodConfiguration V8TestInterface3Methods[] = {
|
| {"voidMethodDocument", TestInterface3V8Internal::voidMethodDocumentMethodCallback, 0, 1, v8::None, V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnPrototype},
|
| + {"toString", TestInterface3V8Internal::toStringMethodCallback, 0, 0, v8::None, V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnPrototype},
|
| };
|
|
|
| static void installV8TestInterface3Template(v8::Isolate* isolate, const DOMWrapperWorld& world, v8::Local<v8::FunctionTemplate> interfaceTemplate)
|
| @@ -224,6 +252,7 @@ static void installV8TestInterface3Template(v8::Isolate* isolate, const DOMWrapp
|
| v8::Local<v8::ObjectTemplate> prototypeTemplate = interfaceTemplate->PrototypeTemplate();
|
| ALLOW_UNUSED_LOCAL(prototypeTemplate);
|
| // Register DOM constants, attributes and operations.
|
| + V8DOMConfiguration::installAccessors(isolate, world, instanceTemplate, prototypeTemplate, interfaceTemplate, signature, V8TestInterface3Accessors, WTF_ARRAY_LENGTH(V8TestInterface3Accessors));
|
| V8DOMConfiguration::installMethods(isolate, world, instanceTemplate, prototypeTemplate, interfaceTemplate, signature, V8TestInterface3Methods, WTF_ARRAY_LENGTH(V8TestInterface3Methods));
|
|
|
| // Indexed properties
|
|
|