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

Unified Diff: Source/bindings/tests/results/V8TestMediaQueryListListener.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/V8TestMediaQueryListListener.cpp
diff --git a/Source/bindings/tests/results/V8TestMediaQueryListListener.cpp b/Source/bindings/tests/results/V8TestMediaQueryListListener.cpp
index 8a8124ebd9dfae12e7bff9250743fe47637a11a9..ab7231d26ef1c344c5be2c918c281a2bda62e3fa 100644
--- a/Source/bindings/tests/results/V8TestMediaQueryListListener.cpp
+++ b/Source/bindings/tests/results/V8TestMediaQueryListListener.cpp
@@ -62,21 +62,21 @@ namespace TestMediaQueryListListenerV8Internal {
template <typename T> void V8_USE(T) { }
-static void methodMethod(const v8::FunctionCallbackInfo<v8::Value>& args)
+static void methodMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
{
- if (UNLIKELY(args.Length() < 1)) {
- throwTypeError(ExceptionMessages::failedToExecute("method", "TestMediaQueryListListener", ExceptionMessages::notEnoughArguments(1, args.Length())), args.GetIsolate());
+ if (UNLIKELY(info.Length() < 1)) {
+ throwTypeError(ExceptionMessages::failedToExecute("method", "TestMediaQueryListListener", ExceptionMessages::notEnoughArguments(1, info.Length())), info.GetIsolate());
return;
}
- TestMediaQueryListListener* imp = V8TestMediaQueryListListener::toNative(args.Holder());
- V8TRYCATCH_VOID(RefPtr<MediaQueryListListener>, listener, MediaQueryListListener::create(ScriptValue(args[0], args.GetIsolate())));
+ TestMediaQueryListListener* imp = V8TestMediaQueryListListener::toNative(info.Holder());
+ V8TRYCATCH_VOID(RefPtr<MediaQueryListListener>, listener, MediaQueryListListener::create(ScriptValue(info[0], info.GetIsolate())));
imp->method(listener);
}
-static void methodMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& args)
+static void methodMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info)
{
TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
- TestMediaQueryListListenerV8Internal::methodMethod(args);
+ TestMediaQueryListListenerV8Internal::methodMethod(info);
TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution");
}

Powered by Google App Engine
This is Rietveld 408576698