OLD | NEW |
| (Empty) |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | |
2 // Use of this source code is governed by a BSD-style license that can be | |
3 // found in the LICENSE file. | |
4 | |
5 #ifndef AnimatablePath_h | |
6 #define AnimatablePath_h | |
7 | |
8 #include "core/CoreExport.h" | |
9 #include "core/animation/animatable/AnimatableValue.h" | |
10 #include "core/style/StylePath.h" | |
11 | |
12 namespace blink { | |
13 | |
14 class AnimatablePath final : public AnimatableValue { | |
15 public: | |
16 ~AnimatablePath() override {} | |
17 static PassRefPtr<AnimatablePath> Create(PassRefPtr<StylePath> path) { | |
18 return AdoptRef(new AnimatablePath(std::move(path))); | |
19 } | |
20 | |
21 private: | |
22 explicit AnimatablePath(PassRefPtr<StylePath> path) | |
23 : path_(std::move(path)) {} | |
24 AnimatableType GetType() const override { return kTypePath; } | |
25 bool EqualTo(const AnimatableValue*) const override; | |
26 const RefPtr<StylePath> path_; | |
27 }; | |
28 | |
29 DEFINE_ANIMATABLE_VALUE_TYPE_CASTS(AnimatablePath, IsPath()); | |
30 | |
31 } // namespace blink | |
32 | |
33 #endif // AnimatablePath_h | |
OLD | NEW |