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

Side by Side Diff: third_party/WebKit/Source/core/animation/animatable/AnimatableLengthPoint.h

Issue 2750293003: Delete unused AnimatableValue code (Closed)
Patch Set: Fix unit tests Created 3 years, 9 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 /* 1 /*
2 * Copyright (C) 2013 Google Inc. All rights reserved. 2 * Copyright (C) 2013 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 25 matching lines...) Expand all
36 namespace blink { 36 namespace blink {
37 37
38 class AnimatableLengthPoint final : public AnimatableValue { 38 class AnimatableLengthPoint final : public AnimatableValue {
39 public: 39 public:
40 ~AnimatableLengthPoint() override {} 40 ~AnimatableLengthPoint() override {}
41 static PassRefPtr<AnimatableLengthPoint> create( 41 static PassRefPtr<AnimatableLengthPoint> create(
42 PassRefPtr<AnimatableValue> x, 42 PassRefPtr<AnimatableValue> x,
43 PassRefPtr<AnimatableValue> y) { 43 PassRefPtr<AnimatableValue> y) {
44 return adoptRef(new AnimatableLengthPoint(std::move(x), std::move(y))); 44 return adoptRef(new AnimatableLengthPoint(std::move(x), std::move(y)));
45 } 45 }
46 const AnimatableValue* x() const { return m_x.get(); }
47 const AnimatableValue* y() const { return m_y.get(); }
48
49 protected:
50 PassRefPtr<AnimatableValue> interpolateTo(const AnimatableValue*,
51 double fraction) const override;
52 bool usesDefaultInterpolationWith(const AnimatableValue*) const override;
53 46
54 private: 47 private:
55 AnimatableLengthPoint(PassRefPtr<AnimatableValue> x, 48 AnimatableLengthPoint(PassRefPtr<AnimatableValue> x,
56 PassRefPtr<AnimatableValue> y) 49 PassRefPtr<AnimatableValue> y)
57 : m_x(x), m_y(y) {} 50 : m_x(x), m_y(y) {}
58 AnimatableType type() const override { return TypeLengthPoint; } 51 AnimatableType type() const override { return TypeLengthPoint; }
59 bool equalTo(const AnimatableValue*) const override; 52 bool equalTo(const AnimatableValue*) const override;
60 53
61 RefPtr<AnimatableValue> m_x; 54 RefPtr<AnimatableValue> m_x;
62 RefPtr<AnimatableValue> m_y; 55 RefPtr<AnimatableValue> m_y;
63 }; 56 };
64 57
65 DEFINE_ANIMATABLE_VALUE_TYPE_CASTS(AnimatableLengthPoint, isLengthPoint()); 58 DEFINE_ANIMATABLE_VALUE_TYPE_CASTS(AnimatableLengthPoint, isLengthPoint());
66 59
67 } // namespace blink 60 } // namespace blink
68 61
69 #endif // AnimatableLengthPoint_h 62 #endif // AnimatableLengthPoint_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698