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

Side by Side Diff: third_party/WebKit/Source/core/animation/animatable/AnimatableLengthPoint3D.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) 2014 Google Inc. All rights reserved. 2 * Copyright (C) 2014 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 27 matching lines...) Expand all
38 class AnimatableLengthPoint3D final : public AnimatableValue { 38 class AnimatableLengthPoint3D final : public AnimatableValue {
39 public: 39 public:
40 ~AnimatableLengthPoint3D() override {} 40 ~AnimatableLengthPoint3D() override {}
41 static PassRefPtr<AnimatableLengthPoint3D> create( 41 static PassRefPtr<AnimatableLengthPoint3D> create(
42 PassRefPtr<AnimatableValue> x, 42 PassRefPtr<AnimatableValue> x,
43 PassRefPtr<AnimatableValue> y, 43 PassRefPtr<AnimatableValue> y,
44 PassRefPtr<AnimatableValue> z) { 44 PassRefPtr<AnimatableValue> z) {
45 return adoptRef( 45 return adoptRef(
46 new AnimatableLengthPoint3D(std::move(x), std::move(y), std::move(z))); 46 new AnimatableLengthPoint3D(std::move(x), std::move(y), std::move(z)));
47 } 47 }
48 const AnimatableValue* x() const { return m_x.get(); }
49 const AnimatableValue* y() const { return m_y.get(); }
50 const AnimatableValue* z() const { return m_z.get(); }
51
52 protected:
53 PassRefPtr<AnimatableValue> interpolateTo(const AnimatableValue*,
54 double fraction) const override;
55 48
56 private: 49 private:
57 AnimatableLengthPoint3D(PassRefPtr<AnimatableValue> x, 50 AnimatableLengthPoint3D(PassRefPtr<AnimatableValue> x,
58 PassRefPtr<AnimatableValue> y, 51 PassRefPtr<AnimatableValue> y,
59 PassRefPtr<AnimatableValue> z) 52 PassRefPtr<AnimatableValue> z)
60 : m_x(x), m_y(y), m_z(z) {} 53 : m_x(x), m_y(y), m_z(z) {}
61 AnimatableType type() const override { return TypeLengthPoint3D; } 54 AnimatableType type() const override { return TypeLengthPoint3D; }
62 bool equalTo(const AnimatableValue*) const override; 55 bool equalTo(const AnimatableValue*) const override;
63 56
64 RefPtr<AnimatableValue> m_x; 57 RefPtr<AnimatableValue> m_x;
65 RefPtr<AnimatableValue> m_y; 58 RefPtr<AnimatableValue> m_y;
66 RefPtr<AnimatableValue> m_z; 59 RefPtr<AnimatableValue> m_z;
67 }; 60 };
68 61
69 DEFINE_ANIMATABLE_VALUE_TYPE_CASTS(AnimatableLengthPoint3D, isLengthPoint3D()); 62 DEFINE_ANIMATABLE_VALUE_TYPE_CASTS(AnimatableLengthPoint3D, isLengthPoint3D());
70 63
71 } // namespace blink 64 } // namespace blink
72 65
73 #endif // AnimatableLengthPoint3D_h 66 #endif // AnimatableLengthPoint3D_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698