Chromium Code Reviews| Index: cc/animation/timing_function.h |
| diff --git a/cc/animation/timing_function.h b/cc/animation/timing_function.h |
| index 30cbd0d73bb96843d4c58a07799a1140afe7162e..7740fde75f4dc54445621880e8fa11b43721935e 100644 |
| --- a/cc/animation/timing_function.h |
| +++ b/cc/animation/timing_function.h |
| @@ -21,6 +21,9 @@ class CC_EXPORT TimingFunction : public FloatAnimationCurve { |
| protected: |
| TimingFunction(); |
| + |
| + private: |
| + DISALLOW_ASSIGN(TimingFunction); |
| }; |
| class CC_EXPORT CubicBezierTimingFunction : public TimingFunction { |
| @@ -40,26 +43,41 @@ class CC_EXPORT CubicBezierTimingFunction : public TimingFunction { |
| SkScalar y1_; |
| SkScalar x2_; |
| SkScalar y2_; |
| + |
| + private: |
| + DISALLOW_ASSIGN(CubicBezierTimingFunction); |
| }; |
| class CC_EXPORT EaseTimingFunction { |
| public: |
| static scoped_ptr<TimingFunction> Create(); |
| + |
| + private: |
| + DISALLOW_COPY_AND_ASSIGN(EaseTimingFunction); |
|
jamesr
2013/03/26 22:06:03
why not DISALLOW_IMPLICIT_... here?
danakj
2013/03/26 22:20:49
Oh, good catch. The Create() call is not calling a
|
| }; |
| class CC_EXPORT EaseInTimingFunction { |
| public: |
| static scoped_ptr<TimingFunction> Create(); |
| + |
| + private: |
| + DISALLOW_COPY_AND_ASSIGN(EaseInTimingFunction); |
| }; |
| class CC_EXPORT EaseOutTimingFunction { |
| public: |
| static scoped_ptr<TimingFunction> Create(); |
| + |
| + private: |
| + DISALLOW_COPY_AND_ASSIGN(EaseOutTimingFunction); |
| }; |
| class CC_EXPORT EaseInOutTimingFunction { |
| public: |
| static scoped_ptr<TimingFunction> Create(); |
| + |
| + private: |
| + DISALLOW_COPY_AND_ASSIGN(EaseInOutTimingFunction); |
| }; |
| } // namespace cc |