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

Unified Diff: Source/bindings/tests/results/V8TestEventTarget.cpp

Issue 54283002: Rename |args| to |info| in V8 bindings (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 2 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/V8TestEventTarget.cpp
diff --git a/Source/bindings/tests/results/V8TestEventTarget.cpp b/Source/bindings/tests/results/V8TestEventTarget.cpp
index 3155de80d0c8e0960ef82615c4417225eaef444e..16f7ef7f2d2d66f2c3848f904a89658f3a811767 100644
--- a/Source/bindings/tests/results/V8TestEventTarget.cpp
+++ b/Source/bindings/tests/results/V8TestEventTarget.cpp
@@ -65,39 +65,39 @@ namespace TestEventTargetV8Internal {
template <typename T> void V8_USE(T) { }
-static void itemMethod(const v8::FunctionCallbackInfo<v8::Value>& args)
+static void itemMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
{
- if (UNLIKELY(args.Length() < 1)) {
- throwTypeError(ExceptionMessages::failedToExecute("item", "TestEventTarget", ExceptionMessages::notEnoughArguments(1, args.Length())), args.GetIsolate());
+ if (UNLIKELY(info.Length() < 1)) {
+ throwTypeError(ExceptionMessages::failedToExecute("item", "TestEventTarget", ExceptionMessages::notEnoughArguments(1, info.Length())), info.GetIsolate());
return;
}
- TestEventTarget* imp = V8TestEventTarget::toNative(args.Holder());
- V8TRYCATCH_VOID(unsigned, index, toUInt32(args[0]));
- v8SetReturnValue(args, imp->item(index));
+ TestEventTarget* imp = V8TestEventTarget::toNative(info.Holder());
+ V8TRYCATCH_VOID(unsigned, index, toUInt32(info[0]));
+ v8SetReturnValue(info, imp->item(index));
}
-static void itemMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& args)
+static void itemMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info)
{
TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
- TestEventTargetV8Internal::itemMethod(args);
+ TestEventTargetV8Internal::itemMethod(info);
TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution");
}
-static void namedItemMethod(const v8::FunctionCallbackInfo<v8::Value>& args)
+static void namedItemMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
{
- if (UNLIKELY(args.Length() < 1)) {
- throwTypeError(ExceptionMessages::failedToExecute("namedItem", "TestEventTarget", ExceptionMessages::notEnoughArguments(1, args.Length())), args.GetIsolate());
+ if (UNLIKELY(info.Length() < 1)) {
+ throwTypeError(ExceptionMessages::failedToExecute("namedItem", "TestEventTarget", ExceptionMessages::notEnoughArguments(1, info.Length())), info.GetIsolate());
return;
}
- TestEventTarget* imp = V8TestEventTarget::toNative(args.Holder());
- V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, name, args[0]);
- v8SetReturnValue(args, imp->namedItem(name));
+ TestEventTarget* imp = V8TestEventTarget::toNative(info.Holder());
+ V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, name, info[0]);
+ v8SetReturnValue(info, imp->namedItem(name));
}
-static void namedItemMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& args)
+static void namedItemMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info)
{
TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
- TestEventTargetV8Internal::namedItemMethod(args);
+ TestEventTargetV8Internal::namedItemMethod(info);
TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution");
}
« no previous file with comments | « Source/bindings/tests/results/V8TestEventConstructor.cpp ('k') | Source/bindings/tests/results/V8TestExtendedEvent.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698