| Index: third_party/WebKit/Source/platform/exported/WebActiveGestureAnimation.h
|
| diff --git a/third_party/WebKit/Source/platform/exported/WebActiveGestureAnimation.h b/third_party/WebKit/Source/platform/exported/WebActiveGestureAnimation.h
|
| index 4510ff8bb45d0eb9fcacb3821cc6e6cbce5d4cc8..9ca0bec701a10dd59e4c46de71fa0f640b63d14d 100644
|
| --- a/third_party/WebKit/Source/platform/exported/WebActiveGestureAnimation.h
|
| +++ b/third_party/WebKit/Source/platform/exported/WebActiveGestureAnimation.h
|
| @@ -29,8 +29,7 @@
|
| #include "platform/PlatformExport.h"
|
| #include "wtf/Allocator.h"
|
| #include "wtf/Noncopyable.h"
|
| -#include "wtf/OwnPtr.h"
|
| -#include "wtf/PassOwnPtr.h"
|
| +#include <memory>
|
|
|
| namespace blink {
|
|
|
| @@ -45,19 +44,19 @@ class PLATFORM_EXPORT WebActiveGestureAnimation {
|
| USING_FAST_MALLOC(WebActiveGestureAnimation);
|
| WTF_MAKE_NONCOPYABLE(WebActiveGestureAnimation);
|
| public:
|
| - static PassOwnPtr<WebActiveGestureAnimation> createAtAnimationStart(PassOwnPtr<WebGestureCurve>, WebGestureCurveTarget*);
|
| - static PassOwnPtr<WebActiveGestureAnimation> createWithTimeOffset(PassOwnPtr<WebGestureCurve>, WebGestureCurveTarget*, double startTime);
|
| + static std::unique_ptr<WebActiveGestureAnimation> createAtAnimationStart(std::unique_ptr<WebGestureCurve>, WebGestureCurveTarget*);
|
| + static std::unique_ptr<WebActiveGestureAnimation> createWithTimeOffset(std::unique_ptr<WebGestureCurve>, WebGestureCurveTarget*, double startTime);
|
| ~WebActiveGestureAnimation();
|
|
|
| bool animate(double time);
|
|
|
| private:
|
| // Assumes a valid WebGestureCurveTarget that outlives the animation.
|
| - WebActiveGestureAnimation(PassOwnPtr<WebGestureCurve>, WebGestureCurveTarget*, double startTime, bool waitingForFirstTick);
|
| + WebActiveGestureAnimation(std::unique_ptr<WebGestureCurve>, WebGestureCurveTarget*, double startTime, bool waitingForFirstTick);
|
|
|
| double m_startTime;
|
| bool m_waitingForFirstTick;
|
| - OwnPtr<WebGestureCurve> m_curve;
|
| + std::unique_ptr<WebGestureCurve> m_curve;
|
| WebGestureCurveTarget* m_target;
|
| };
|
|
|
|
|