Upstream version 10.39.225.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / Source / modules / device_orientation / DeviceAcceleration.h
index dde45dc..eec41af 100644 (file)
 #include "bindings/core/v8/ScriptWrappable.h"
 #include "modules/device_orientation/DeviceMotionData.h"
 #include "platform/heap/Handle.h"
-#include "wtf/RefCounted.h"
 
 namespace blink {
 
-class DeviceAcceleration : public RefCountedWillBeGarbageCollected<DeviceAcceleration>, public ScriptWrappable {
+class DeviceAcceleration FINAL : public GarbageCollected<DeviceAcceleration>, public ScriptWrappable {
+    DEFINE_WRAPPERTYPEINFO();
 public:
-    static PassRefPtrWillBeRawPtr<DeviceAcceleration> create(PassRefPtrWillBeRawPtr<DeviceMotionData::Acceleration> acceleration)
+    static DeviceAcceleration* create(DeviceMotionData::Acceleration* acceleration)
     {
-        return adoptRefWillBeNoop(new DeviceAcceleration(acceleration));
+        return new DeviceAcceleration(acceleration);
     }
     void trace(Visitor*);
 
@@ -46,9 +46,9 @@ public:
     double z(bool& isNull) const;
 
 private:
-    DeviceAcceleration(PassRefPtrWillBeRawPtr<DeviceMotionData::Acceleration>);
+    explicit DeviceAcceleration(DeviceMotionData::Acceleration*);
 
-    RefPtrWillBeMember<DeviceMotionData::Acceleration> m_acceleration;
+    Member<DeviceMotionData::Acceleration> m_acceleration;
 };
 
 } // namespace blink