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

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

Issue 2797643002: Rewrite references to "wtf/" to "platform/wtf/" in platform/animation. (Closed)
Patch Set: Created 3 years, 8 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 CompositorFloatKeyframe_h 5 #ifndef CompositorFloatKeyframe_h
6 #define CompositorFloatKeyframe_h 6 #define CompositorFloatKeyframe_h
7 7
8 #include "cc/animation/keyframed_animation_curve.h" 8 #include "cc/animation/keyframed_animation_curve.h"
9 #include "platform/PlatformExport.h" 9 #include "platform/PlatformExport.h"
10 #include "platform/animation/CompositorKeyframe.h" 10 #include "platform/animation/CompositorKeyframe.h"
11 #include "wtf/Noncopyable.h" 11 #include "platform/wtf/Noncopyable.h"
12 12
13 namespace blink { 13 namespace blink {
14 14
15 class TimingFunction; 15 class TimingFunction;
16 16
17 class PLATFORM_EXPORT CompositorFloatKeyframe : public CompositorKeyframe { 17 class PLATFORM_EXPORT CompositorFloatKeyframe : public CompositorKeyframe {
18 WTF_MAKE_NONCOPYABLE(CompositorFloatKeyframe); 18 WTF_MAKE_NONCOPYABLE(CompositorFloatKeyframe);
19 19
20 public: 20 public:
21 CompositorFloatKeyframe(double time, float value, const TimingFunction&); 21 CompositorFloatKeyframe(double time, float value, const TimingFunction&);
22 CompositorFloatKeyframe(std::unique_ptr<cc::FloatKeyframe>); 22 CompositorFloatKeyframe(std::unique_ptr<cc::FloatKeyframe>);
23 ~CompositorFloatKeyframe() override; 23 ~CompositorFloatKeyframe() override;
24 24
25 // CompositorKeyframe implementation. 25 // CompositorKeyframe implementation.
26 double time() const override; 26 double time() const override;
27 const cc::TimingFunction* ccTimingFunction() const override; 27 const cc::TimingFunction* ccTimingFunction() const override;
28 28
29 float value() { return m_floatKeyframe->Value(); } 29 float value() { return m_floatKeyframe->Value(); }
30 std::unique_ptr<cc::FloatKeyframe> cloneToCC() const; 30 std::unique_ptr<cc::FloatKeyframe> cloneToCC() const;
31 31
32 private: 32 private:
33 std::unique_ptr<cc::FloatKeyframe> m_floatKeyframe; 33 std::unique_ptr<cc::FloatKeyframe> m_floatKeyframe;
34 }; 34 };
35 35
36 } // namespace blink 36 } // namespace blink
37 37
38 #endif // CompositorFloatKeyframe_h 38 #endif // CompositorFloatKeyframe_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698