X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=src%2Fthird_party%2FWebKit%2FSource%2Fbindings%2Fmodules%2Fv8%2Fcustom%2FV8DeviceMotionEventCustom.cpp;h=83981e1098f78d6a2a3f7e1e2c53401cc17e411e;hb=3545e9f2671f595d2a2f3ee75ca0393b01e35ef6;hp=a8726c44a8de5598624de7a4d704a9cd5146ce6b;hpb=7d210d4c7e9ba36e635eabc5b5780495f8a63292;p=platform%2Fframework%2Fweb%2Fcrosswalk.git diff --git a/src/third_party/WebKit/Source/bindings/modules/v8/custom/V8DeviceMotionEventCustom.cpp b/src/third_party/WebKit/Source/bindings/modules/v8/custom/V8DeviceMotionEventCustom.cpp index a8726c4..83981e1 100644 --- a/src/third_party/WebKit/Source/bindings/modules/v8/custom/V8DeviceMotionEventCustom.cpp +++ b/src/third_party/WebKit/Source/bindings/modules/v8/custom/V8DeviceMotionEventCustom.cpp @@ -34,7 +34,7 @@ namespace blink { namespace { -PassRefPtrWillBeRawPtr readAccelerationArgument(v8::Local value, v8::Isolate* isolate) +DeviceMotionData::Acceleration* readAccelerationArgument(v8::Local value, v8::Isolate* isolate) { if (isUndefinedOrNull(value)) return nullptr; @@ -66,7 +66,7 @@ PassRefPtrWillBeRawPtr readAccelerationArgument( return DeviceMotionData::Acceleration::create(canProvideX, x, canProvideY, y, canProvideZ, z); } -PassRefPtrWillBeRawPtr readRotationRateArgument(v8::Local value, v8::Isolate* isolate) +DeviceMotionData::RotationRate* readRotationRateArgument(v8::Local value, v8::Isolate* isolate) { if (isUndefinedOrNull(value)) return nullptr; @@ -102,18 +102,18 @@ PassRefPtrWillBeRawPtr readRotationRateArgument( void V8DeviceMotionEvent::initDeviceMotionEventMethodCustom(const v8::FunctionCallbackInfo& info) { - DeviceMotionEvent* impl = V8DeviceMotionEvent::toNative(info.Holder()); + DeviceMotionEvent* impl = V8DeviceMotionEvent::toImpl(info.Holder()); v8::Isolate* isolate = info.GetIsolate(); TOSTRING_VOID(V8StringResource<>, type, info[0]); bool bubbles = info[1]->BooleanValue(); bool cancelable = info[2]->BooleanValue(); - RefPtrWillBeRawPtr acceleration = readAccelerationArgument(info[3], isolate); - RefPtrWillBeRawPtr accelerationIncludingGravity = readAccelerationArgument(info[4], isolate); - RefPtrWillBeRawPtr rotationRate = readRotationRateArgument(info[5], isolate); + DeviceMotionData::Acceleration* acceleration = readAccelerationArgument(info[3], isolate); + DeviceMotionData::Acceleration* accelerationIncludingGravity = readAccelerationArgument(info[4], isolate); + DeviceMotionData::RotationRate* rotationRate = readRotationRateArgument(info[5], isolate); bool intervalProvided = !isUndefinedOrNull(info[6]); double interval = info[6]->NumberValue(); - RefPtrWillBeRawPtr deviceMotionData = DeviceMotionData::create(acceleration.release(), accelerationIncludingGravity.release(), rotationRate.release(), intervalProvided, interval); - impl->initDeviceMotionEvent(type, bubbles, cancelable, deviceMotionData.get()); + DeviceMotionData* deviceMotionData = DeviceMotionData::create(acceleration, accelerationIncludingGravity, rotationRate, intervalProvided, interval); + impl->initDeviceMotionEvent(type, bubbles, cancelable, deviceMotionData); } } // namespace blink