| OLD | NEW |
| 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 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 88 static DeviceMotionData* create(); | 88 static DeviceMotionData* create(); |
| 89 static DeviceMotionData* create( | 89 static DeviceMotionData* create( |
| 90 Acceleration*, | 90 Acceleration*, |
| 91 Acceleration* accelerationIncludingGravity, | 91 Acceleration* accelerationIncludingGravity, |
| 92 RotationRate*, | 92 RotationRate*, |
| 93 bool canProvideInterval, | 93 bool canProvideInterval, |
| 94 double interval); | 94 double interval); |
| 95 static DeviceMotionData* create(const WebDeviceMotionData&); | 95 static DeviceMotionData* create(const WebDeviceMotionData&); |
| 96 DECLARE_TRACE(); | 96 DECLARE_TRACE(); |
| 97 | 97 |
| 98 Acceleration* acceleration() const { return m_acceleration.get(); } | 98 Acceleration* getAcceleration() const { return m_acceleration.get(); } |
| 99 Acceleration* accelerationIncludingGravity() const { return m_accelerationIn
cludingGravity.get(); } | 99 Acceleration* getAccelerationIncludingGravity() const { return m_acceleratio
nIncludingGravity.get(); } |
| 100 RotationRate* rotationRate() const { return m_rotationRate.get(); } | 100 RotationRate* getRotationRate() const { return m_rotationRate.get(); } |
| 101 | 101 |
| 102 bool canProvideInterval() const { return m_canProvideInterval; } | 102 bool canProvideInterval() const { return m_canProvideInterval; } |
| 103 double interval() const { return m_interval; } | 103 double interval() const { return m_interval; } |
| 104 | 104 |
| 105 bool canProvideEventData() const; | 105 bool canProvideEventData() const; |
| 106 | 106 |
| 107 private: | 107 private: |
| 108 DeviceMotionData(); | 108 DeviceMotionData(); |
| 109 DeviceMotionData(Acceleration*, Acceleration* accelerationIncludingGravity,
RotationRate*, bool canProvideInterval, double interval); | 109 DeviceMotionData(Acceleration*, Acceleration* accelerationIncludingGravity,
RotationRate*, bool canProvideInterval, double interval); |
| 110 | 110 |
| 111 Member<Acceleration> m_acceleration; | 111 Member<Acceleration> m_acceleration; |
| 112 Member<Acceleration> m_accelerationIncludingGravity; | 112 Member<Acceleration> m_accelerationIncludingGravity; |
| 113 Member<RotationRate> m_rotationRate; | 113 Member<RotationRate> m_rotationRate; |
| 114 bool m_canProvideInterval; | 114 bool m_canProvideInterval; |
| 115 double m_interval; | 115 double m_interval; |
| 116 }; | 116 }; |
| 117 | 117 |
| 118 } // namespace blink | 118 } // namespace blink |
| 119 | 119 |
| 120 #endif // DeviceMotionData_h | 120 #endif // DeviceMotionData_h |
| OLD | NEW |