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

Unified Diff: Source/bindings/v8/custom/V8DeviceMotionEventCustom.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/V8DeviceMotionEventCustom.cpp
diff --git a/Source/bindings/v8/custom/V8DeviceMotionEventCustom.cpp b/Source/bindings/v8/custom/V8DeviceMotionEventCustom.cpp
index 88ff30e6b94fc35426a7d7b520f57ad59b91b34a..b8a6f9c58e50c558527d9f839a02f0906db76fc3 100644
--- a/Source/bindings/v8/custom/V8DeviceMotionEventCustom.cpp
+++ b/Source/bindings/v8/custom/V8DeviceMotionEventCustom.cpp
@@ -100,17 +100,17 @@ RefPtr<DeviceMotionData::RotationRate> readRotationRateArgument(v8::Local<v8::Va
} // namespace
-void V8DeviceMotionEvent::initDeviceMotionEventMethodCustom(const v8::FunctionCallbackInfo<v8::Value>& args)
+void V8DeviceMotionEvent::initDeviceMotionEventMethodCustom(const v8::FunctionCallbackInfo<v8::Value>& info)
{
- DeviceMotionEvent* imp = V8DeviceMotionEvent::toNative(args.Holder());
- V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, type, args[0]);
- bool bubbles = args[1]->BooleanValue();
- bool cancelable = args[2]->BooleanValue();
- RefPtr<DeviceMotionData::Acceleration> acceleration = readAccelerationArgument(args[3]);
- RefPtr<DeviceMotionData::Acceleration> accelerationIncludingGravity = readAccelerationArgument(args[4]);
- RefPtr<DeviceMotionData::RotationRate> rotationRate = readRotationRateArgument(args[5]);
- bool intervalProvided = !isUndefinedOrNull(args[6]);
- double interval = args[6]->NumberValue();
+ DeviceMotionEvent* imp = V8DeviceMotionEvent::toNative(info.Holder());
+ V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, type, info[0]);
+ bool bubbles = info[1]->BooleanValue();
+ bool cancelable = info[2]->BooleanValue();
+ RefPtr<DeviceMotionData::Acceleration> acceleration = readAccelerationArgument(info[3]);
+ RefPtr<DeviceMotionData::Acceleration> accelerationIncludingGravity = readAccelerationArgument(info[4]);
+ RefPtr<DeviceMotionData::RotationRate> rotationRate = readRotationRateArgument(info[5]);
+ bool intervalProvided = !isUndefinedOrNull(info[6]);
+ double interval = info[6]->NumberValue();
RefPtr<DeviceMotionData> deviceMotionData = DeviceMotionData::create(acceleration, accelerationIncludingGravity, rotationRate, intervalProvided, interval);
imp->initDeviceMotionEvent(type, bubbles, cancelable, deviceMotionData.get());
}

Powered by Google App Engine
This is Rietveld 408576698