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

Unified Diff: Source/bindings/v8/custom/V8DeviceOrientationEventCustom.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/V8DeviceOrientationEventCustom.cpp
diff --git a/Source/bindings/v8/custom/V8DeviceOrientationEventCustom.cpp b/Source/bindings/v8/custom/V8DeviceOrientationEventCustom.cpp
index 38929a8d77fa081ce518bac6018d5bfc157c03d7..ef2a0a92e485e7d364dfbc757611f0aa5a172971 100644
--- a/Source/bindings/v8/custom/V8DeviceOrientationEventCustom.cpp
+++ b/Source/bindings/v8/custom/V8DeviceOrientationEventCustom.cpp
@@ -32,22 +32,22 @@
namespace WebCore {
-void V8DeviceOrientationEvent::initDeviceOrientationEventMethodCustom(const v8::FunctionCallbackInfo<v8::Value>& args)
+void V8DeviceOrientationEvent::initDeviceOrientationEventMethodCustom(const v8::FunctionCallbackInfo<v8::Value>& info)
{
- DeviceOrientationEvent* imp = V8DeviceOrientationEvent::toNative(args.Holder());
- V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, type, args[0]);
- bool bubbles = args[1]->BooleanValue();
- bool cancelable = args[2]->BooleanValue();
+ DeviceOrientationEvent* imp = V8DeviceOrientationEvent::toNative(info.Holder());
+ V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, type, info[0]);
+ bool bubbles = info[1]->BooleanValue();
+ bool cancelable = info[2]->BooleanValue();
// If alpha, beta, gamma or absolute are null or undefined, mark them as not provided.
// Otherwise, use the standard JavaScript conversion.
- bool alphaProvided = !isUndefinedOrNull(args[3]);
- double alpha = args[3]->NumberValue();
- bool betaProvided = !isUndefinedOrNull(args[4]);
- double beta = args[4]->NumberValue();
- bool gammaProvided = !isUndefinedOrNull(args[5]);
- double gamma = args[5]->NumberValue();
- bool absoluteProvided = !isUndefinedOrNull(args[6]);
- bool absolute = args[6]->BooleanValue();
+ bool alphaProvided = !isUndefinedOrNull(info[3]);
+ double alpha = info[3]->NumberValue();
+ bool betaProvided = !isUndefinedOrNull(info[4]);
+ double beta = info[4]->NumberValue();
+ bool gammaProvided = !isUndefinedOrNull(info[5]);
+ double gamma = info[5]->NumberValue();
+ bool absoluteProvided = !isUndefinedOrNull(info[6]);
+ bool absolute = info[6]->BooleanValue();
RefPtr<DeviceOrientationData> orientation = DeviceOrientationData::create(alphaProvided, alpha, betaProvided, beta, gammaProvided, gamma, absoluteProvided, absolute);
imp->initDeviceOrientationEvent(type, bubbles, cancelable, orientation.get());
}
« no previous file with comments | « Source/bindings/v8/custom/V8DeviceMotionEventCustom.cpp ('k') | Source/bindings/v8/custom/V8DocumentCustom.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698