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

Unified Diff: Source/bindings/v8/custom/V8CustomEventCustom.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/v8/custom/V8CustomEventCustom.cpp
diff --git a/Source/bindings/v8/custom/V8CustomEventCustom.cpp b/Source/bindings/v8/custom/V8CustomEventCustom.cpp
index e5c8f60f00da6bad5d54ea547f3f317dd7ee1a31..ae0866dab9ec4ee253b1fd5a439f60524693356b 100644
--- a/Source/bindings/v8/custom/V8CustomEventCustom.cpp
+++ b/Source/bindings/v8/custom/V8CustomEventCustom.cpp
@@ -78,22 +78,22 @@ void V8CustomEvent::detailAttributeGetterCustom(v8::Local<v8::String> name, cons
v8SetReturnValue(info, cacheState(info.Holder(), v8::Null(info.GetIsolate()), info.GetIsolate()));
}
-void V8CustomEvent::initCustomEventMethodCustom(const v8::FunctionCallbackInfo<v8::Value>& args)
+void V8CustomEvent::initCustomEventMethodCustom(const v8::FunctionCallbackInfo<v8::Value>& info)
{
- CustomEvent* event = V8CustomEvent::toNative(args.Holder());
+ CustomEvent* event = V8CustomEvent::toNative(info.Holder());
ASSERT(!event->serializedDetail());
- V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, typeArg, args[0]);
- V8TRYCATCH_VOID(bool, canBubbleArg, args[1]->BooleanValue());
- V8TRYCATCH_VOID(bool, cancelableArg, args[2]->BooleanValue());
- v8::Handle<v8::Value> detailsArg = args[3];
+ V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, typeArg, info[0]);
+ V8TRYCATCH_VOID(bool, canBubbleArg, info[1]->BooleanValue());
+ V8TRYCATCH_VOID(bool, cancelableArg, info[2]->BooleanValue());
+ v8::Handle<v8::Value> detailsArg = info[3];
event->initEvent(typeArg, canBubbleArg, cancelableArg);
if (!detailsArg.IsEmpty()) {
- args.Holder()->SetHiddenValue(V8HiddenPropertyName::detail(args.GetIsolate()), detailsArg);
- if (isolatedWorldForIsolate(args.GetIsolate()))
- event->setSerializedDetail(SerializedScriptValue::createAndSwallowExceptions(detailsArg, args.GetIsolate()));
+ info.Holder()->SetHiddenValue(V8HiddenPropertyName::detail(info.GetIsolate()), detailsArg);
+ if (isolatedWorldForIsolate(info.GetIsolate()))
+ event->setSerializedDetail(SerializedScriptValue::createAndSwallowExceptions(detailsArg, info.GetIsolate()));
}
}
« no previous file with comments | « Source/bindings/v8/custom/V8CryptoCustom.cpp ('k') | Source/bindings/v8/custom/V8DedicatedWorkerGlobalScopeCustom.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698