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

Side by Side 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, 1 month 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2010 Apple Inc. All rights reserved. 2 * Copyright (C) 2010 Apple Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * * Redistributions of source code must retain the above copyright 7 * * Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * * Redistributions in binary form must reproduce the above copyright 9 * * Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
93 double gamma = gammaValue->NumberValue(); 93 double gamma = gammaValue->NumberValue();
94 94
95 if (!canProvideAlpha && !canProvideBeta && !canProvideGamma) 95 if (!canProvideAlpha && !canProvideBeta && !canProvideGamma)
96 return 0; 96 return 0;
97 97
98 return DeviceMotionData::RotationRate::create(canProvideAlpha, alpha, canPro videBeta, beta, canProvideGamma, gamma); 98 return DeviceMotionData::RotationRate::create(canProvideAlpha, alpha, canPro videBeta, beta, canProvideGamma, gamma);
99 } 99 }
100 100
101 } // namespace 101 } // namespace
102 102
103 void V8DeviceMotionEvent::initDeviceMotionEventMethodCustom(const v8::FunctionCa llbackInfo<v8::Value>& args) 103 void V8DeviceMotionEvent::initDeviceMotionEventMethodCustom(const v8::FunctionCa llbackInfo<v8::Value>& info)
104 { 104 {
105 DeviceMotionEvent* imp = V8DeviceMotionEvent::toNative(args.Holder()); 105 DeviceMotionEvent* imp = V8DeviceMotionEvent::toNative(info.Holder());
106 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, type, args[0]); 106 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, type, info[0]);
107 bool bubbles = args[1]->BooleanValue(); 107 bool bubbles = info[1]->BooleanValue();
108 bool cancelable = args[2]->BooleanValue(); 108 bool cancelable = info[2]->BooleanValue();
109 RefPtr<DeviceMotionData::Acceleration> acceleration = readAccelerationArgume nt(args[3]); 109 RefPtr<DeviceMotionData::Acceleration> acceleration = readAccelerationArgume nt(info[3]);
110 RefPtr<DeviceMotionData::Acceleration> accelerationIncludingGravity = readAc celerationArgument(args[4]); 110 RefPtr<DeviceMotionData::Acceleration> accelerationIncludingGravity = readAc celerationArgument(info[4]);
111 RefPtr<DeviceMotionData::RotationRate> rotationRate = readRotationRateArgume nt(args[5]); 111 RefPtr<DeviceMotionData::RotationRate> rotationRate = readRotationRateArgume nt(info[5]);
112 bool intervalProvided = !isUndefinedOrNull(args[6]); 112 bool intervalProvided = !isUndefinedOrNull(info[6]);
113 double interval = args[6]->NumberValue(); 113 double interval = info[6]->NumberValue();
114 RefPtr<DeviceMotionData> deviceMotionData = DeviceMotionData::create(acceler ation, accelerationIncludingGravity, rotationRate, intervalProvided, interval); 114 RefPtr<DeviceMotionData> deviceMotionData = DeviceMotionData::create(acceler ation, accelerationIncludingGravity, rotationRate, intervalProvided, interval);
115 imp->initDeviceMotionEvent(type, bubbles, cancelable, deviceMotionData.get() ); 115 imp->initDeviceMotionEvent(type, bubbles, cancelable, deviceMotionData.get() );
116 } 116 }
117 117
118 } // namespace WebCore 118 } // namespace WebCore
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698