Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(225)

Side by Side Diff: third_party/WebKit/Source/platform/animation/CompositorAnimation.h

Issue 2050123002: Remove OwnPtr from Blink. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address comments from Kent; merge. Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CompositorAnimation_h 5 #ifndef CompositorAnimation_h
6 #define CompositorAnimation_h 6 #define CompositorAnimation_h
7 7
8 #include "cc/animation/animation.h" 8 #include "cc/animation/animation.h"
9 #include "platform/PlatformExport.h" 9 #include "platform/PlatformExport.h"
10 #include "platform/animation/CompositorTargetProperty.h" 10 #include "platform/animation/CompositorTargetProperty.h"
11 #include "wtf/Noncopyable.h" 11 #include "wtf/Noncopyable.h"
12 #include "wtf/PassOwnPtr.h"
13
14 #include <memory> 12 #include <memory>
15 13
16 namespace cc { 14 namespace cc {
17 class Animation; 15 class Animation;
18 } 16 }
19 17
20 namespace blink { 18 namespace blink {
21 19
22 class CompositorAnimationCurve; 20 class CompositorAnimationCurve;
23 class CompositorFloatAnimationCurve; 21 class CompositorFloatAnimationCurve;
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 void setPlaybackRate(double); 55 void setPlaybackRate(double);
58 56
59 FillMode getFillMode() const; 57 FillMode getFillMode() const;
60 void setFillMode(FillMode); 58 void setFillMode(FillMode);
61 59
62 double iterationStart() const; 60 double iterationStart() const;
63 void setIterationStart(double); 61 void setIterationStart(double);
64 62
65 std::unique_ptr<cc::Animation> passAnimation(); 63 std::unique_ptr<cc::Animation> passAnimation();
66 64
67 PassOwnPtr<CompositorFloatAnimationCurve> floatCurveForTesting() const; 65 std::unique_ptr<CompositorFloatAnimationCurve> floatCurveForTesting() const;
68 66
69 private: 67 private:
70 std::unique_ptr<cc::Animation> m_animation; 68 std::unique_ptr<cc::Animation> m_animation;
71 }; 69 };
72 70
73 } // namespace blink 71 } // namespace blink
74 72
75 #endif // CompositorAnimation_h 73 #endif // CompositorAnimation_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698