DescriptionCleanup: Add toDeviceMotionEvent and toDeviceOrientationEvent.
Adding toDeviceMotionEvent and toDeviceOrientationEvent conversion functions to replace static_cast, and update toWheelEvent and toGestureEvent so that they accept NULL argument for consistency.
In the earlier CL, the comparison for Event.interfaceName() was being done with EventNames::<event>, which is wrong.
The interfaceName() should be compared against eventNames().interfaceForDeviceMotionEvent.
BUG=None
TEST=None; no behavior change;
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=159671
Patch Set 1 #Patch Set 2 : #Patch Set 3 : Updated to ToT #Messages
Total messages: 11 (0 generated)
|