Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(770)

Unified Diff: Source/bindings/tests/results/core/V8TestInterfaceEventInitConstructor.cpp

Issue 447523003: Move most DOM attributes to prototype chains Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: Source/bindings/tests/results/core/V8TestInterfaceEventInitConstructor.cpp
diff --git a/Source/bindings/tests/results/core/V8TestInterfaceEventInitConstructor.cpp b/Source/bindings/tests/results/core/V8TestInterfaceEventInitConstructor.cpp
index de4760007f7d9cbca644d989cba5df38039814d3..ef5b3d7f81b52d855f7bf8b37774e4cd68af8289 100644
--- a/Source/bindings/tests/results/core/V8TestInterfaceEventInitConstructor.cpp
+++ b/Source/bindings/tests/results/core/V8TestInterfaceEventInitConstructor.cpp
@@ -31,14 +31,14 @@ const WrapperTypeInfo& TestInterfaceEventInitConstructor::s_wrapperTypeInfo = V8
namespace TestInterfaceEventInitConstructorV8Internal {
-static void readonlyStringAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Value>& info)
+static void readonlyStringAttributeAttributeGetter(const v8::FunctionCallbackInfo<v8::Value>& info)
{
v8::Local<v8::Object> holder = info.Holder();
TestInterfaceEventInitConstructor* impl = V8TestInterfaceEventInitConstructor::toImpl(holder);
v8SetReturnValueString(info, impl->readonlyStringAttribute(), info.GetIsolate());
}
-static void readonlyStringAttributeAttributeGetterCallback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info)
+static void readonlyStringAttributeAttributeGetterCallback(const v8::FunctionCallbackInfo<v8::Value>& info)
{
TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
TestInterfaceEventInitConstructorV8Internal::readonlyStringAttributeAttributeGetter(info);
@@ -72,8 +72,8 @@ static void constructor(const v8::FunctionCallbackInfo<v8::Value>& info)
} // namespace TestInterfaceEventInitConstructorV8Internal
-static const V8DOMConfiguration::AttributeConfiguration V8TestInterfaceEventInitConstructorAttributes[] = {
- {"readonlyStringAttribute", TestInterfaceEventInitConstructorV8Internal::readonlyStringAttributeAttributeGetterCallback, 0, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnInstance},
+static const V8DOMConfiguration::AccessorConfiguration V8TestInterfaceEventInitConstructorAccessors[] = {
+ {"readonlyStringAttribute", TestInterfaceEventInitConstructorV8Internal::readonlyStringAttributeAttributeGetterCallback, 0, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts},
};
void V8TestInterfaceEventInitConstructor::constructorCallback(const v8::FunctionCallbackInfo<v8::Value>& info)
@@ -98,8 +98,8 @@ static void installV8TestInterfaceEventInitConstructorTemplate(v8::Local<v8::Fun
v8::Local<v8::Signature> defaultSignature;
defaultSignature = V8DOMConfiguration::installDOMClassTemplate(isolate, functionTemplate, "TestInterfaceEventInitConstructor", V8Event::domTemplate(isolate), V8TestInterfaceEventInitConstructor::internalFieldCount,
- V8TestInterfaceEventInitConstructorAttributes, WTF_ARRAY_LENGTH(V8TestInterfaceEventInitConstructorAttributes),
0, 0,
+ V8TestInterfaceEventInitConstructorAccessors, WTF_ARRAY_LENGTH(V8TestInterfaceEventInitConstructorAccessors),
0, 0);
functionTemplate->SetCallHandler(V8TestInterfaceEventInitConstructor::constructorCallback);
functionTemplate->SetLength(2);

Powered by Google App Engine
This is Rietveld 408576698