12013-03-21 Peter Beverloo <peter@chromium.org>
2
3 Implement the DeviceAcceleration and DeviceRotationRate IDL objects
4 https://bugs.webkit.org/show_bug.cgi?id=112910
5
6 Reviewed by NOBODY (OOPS!).
7
8 Remove the custom bindings --except for the event initialization
9 methods-- in favor of implementing the IDL objects as defined by
10 the specification. This patch adds the DeviceAcceleration and
11 DeviceRotationRate objects.
12
13 There should be no observable change in behavior. This is being
14 excersized by the existing layout tests.
15
16 * CMakeLists.txt:
17 * DerivedSources.make:
18 * DerivedSources.pri:
19 * GNUmakefile.list.am:
20 * Target.pri:
21 * WebCore.gypi:
22 * bindings/js/JSDeviceMotionEventCustom.cpp:
23 * bindings/js/JSDeviceOrientationEventCustom.cpp:
24 * bindings/v8/custom/V8DeviceMotionEventCustom.cpp:
25 * bindings/v8/custom/V8DeviceOrientationEventCustom.cpp:
26 * dom/DOMAllInOne.cpp:
27 * dom/DeviceAcceleration.cpp: Added.
28 (WebCore):
29 (WebCore::DeviceAcceleration::DeviceAcceleration):
30 (WebCore::DeviceAcceleration::x):
31 (WebCore::DeviceAcceleration::y):
32 (WebCore::DeviceAcceleration::z):
33 * dom/DeviceAcceleration.h: Added.
34 (WebCore):
35 (DeviceAcceleration):
36 (WebCore::DeviceAcceleration::create):
37 * dom/DeviceAcceleration.idl: Added.
38 * dom/DeviceMotionEvent.cpp:
39 (WebCore::DeviceMotionEvent::initDeviceMotionEvent):
40 (WebCore):
41 (WebCore::DeviceMotionEvent::acceleration):
42 (WebCore::DeviceMotionEvent::accelerationIncludingGravity):
43 (WebCore::DeviceMotionEvent::rotationRate):
44 (WebCore::DeviceMotionEvent::interval):
45 * dom/DeviceMotionEvent.h:
46 (WebCore):
47 (DeviceMotionEvent):
48 * dom/DeviceMotionEvent.idl:
49 * dom/DeviceOrientationEvent.cpp:
50 (WebCore::DeviceOrientationEvent::alpha):
51 (WebCore):
52 (WebCore::DeviceOrientationEvent::beta):
53 (WebCore::DeviceOrientationEvent::gamma):
54 (WebCore::DeviceOrientationEvent::absolute):
55 * dom/DeviceOrientationEvent.h:
56 (DeviceOrientationEvent):
57 * dom/DeviceOrientationEvent.idl:
58 * dom/DeviceRotationRate.cpp: Added.
59 (WebCore):
60 (WebCore::DeviceRotationRate::DeviceRotationRate):
61 (WebCore::DeviceRotationRate::alpha):
62 (WebCore::DeviceRotationRate::beta):
63 (WebCore::DeviceRotationRate::gamma):
64 * dom/DeviceRotationRate.h: Added.
65 (WebCore):
66 (DeviceRotationRate):
67 (WebCore::DeviceRotationRate::create):
68 * dom/DeviceRotationRate.idl: Added.
69