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

Side by Side Diff: cc/animation/timing_function.h

Issue 2032643003: CC Animation: Erase EaseTimingFunction helpers. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@gmock
Patch Set: 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
« no previous file with comments | « cc/animation/scroll_offset_animations_impl.cc ('k') | cc/animation/timing_function.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2012 The Chromium Authors. All rights reserved. 1 // Copyright 2012 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 CC_ANIMATION_TIMING_FUNCTION_H_ 5 #ifndef CC_ANIMATION_TIMING_FUNCTION_H_
6 #define CC_ANIMATION_TIMING_FUNCTION_H_ 6 #define CC_ANIMATION_TIMING_FUNCTION_H_
7 7
8 #include <memory> 8 #include <memory>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 double x2, 62 double x2,
63 double y2); 63 double y2);
64 64
65 gfx::CubicBezier bezier_; 65 gfx::CubicBezier bezier_;
66 EaseType ease_type_; 66 EaseType ease_type_;
67 67
68 private: 68 private:
69 DISALLOW_ASSIGN(CubicBezierTimingFunction); 69 DISALLOW_ASSIGN(CubicBezierTimingFunction);
70 }; 70 };
71 71
72 class CC_EXPORT EaseTimingFunction {
73 public:
74 static std::unique_ptr<TimingFunction> Create();
75
76 private:
77 DISALLOW_IMPLICIT_CONSTRUCTORS(EaseTimingFunction);
78 };
79
80 class CC_EXPORT EaseInTimingFunction {
81 public:
82 static std::unique_ptr<TimingFunction> Create();
83
84 private:
85 DISALLOW_IMPLICIT_CONSTRUCTORS(EaseInTimingFunction);
86 };
87
88 class CC_EXPORT EaseOutTimingFunction {
89 public:
90 static std::unique_ptr<TimingFunction> Create();
91
92 private:
93 DISALLOW_IMPLICIT_CONSTRUCTORS(EaseOutTimingFunction);
94 };
95
96 class CC_EXPORT EaseInOutTimingFunction {
97 public:
98 static std::unique_ptr<TimingFunction> Create();
99
100 private:
101 DISALLOW_IMPLICIT_CONSTRUCTORS(EaseInOutTimingFunction);
102 };
103
104 class CC_EXPORT StepsTimingFunction : public TimingFunction { 72 class CC_EXPORT StepsTimingFunction : public TimingFunction {
105 public: 73 public:
106 // Web Animations specification, 3.12.4. Timing in discrete steps. 74 // Web Animations specification, 3.12.4. Timing in discrete steps.
107 enum class StepPosition { START, MIDDLE, END }; 75 enum class StepPosition { START, MIDDLE, END };
108 76
109 static std::unique_ptr<StepsTimingFunction> Create( 77 static std::unique_ptr<StepsTimingFunction> Create(
110 int steps, 78 int steps,
111 StepPosition step_position); 79 StepPosition step_position);
112 ~StepsTimingFunction() override; 80 ~StepsTimingFunction() override;
113 81
(...skipping 10 matching lines...) Expand all
124 private: 92 private:
125 int steps_; 93 int steps_;
126 float steps_start_offset_; 94 float steps_start_offset_;
127 95
128 DISALLOW_ASSIGN(StepsTimingFunction); 96 DISALLOW_ASSIGN(StepsTimingFunction);
129 }; 97 };
130 98
131 } // namespace cc 99 } // namespace cc
132 100
133 #endif // CC_ANIMATION_TIMING_FUNCTION_H_ 101 #endif // CC_ANIMATION_TIMING_FUNCTION_H_
OLDNEW
« no previous file with comments | « cc/animation/scroll_offset_animations_impl.cc ('k') | cc/animation/timing_function.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698