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

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

Issue 2893313004: Remove unused AnimatableValue types (Closed)
Patch Set: Created 3 years, 7 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
(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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698