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

Side by Side Diff: third_party/WebKit/Source/core/animation/animatable/AnimatableDoubleAndBool.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 2014 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 AnimatableDoubleAndBool_h
6 #define AnimatableDoubleAndBool_h
7
8 #include "core/CoreExport.h"
9 #include "core/animation/animatable/AnimatableValue.h"
10
11 namespace blink {
12
13 class AnimatableDoubleAndBool final : public AnimatableValue {
14 public:
15 ~AnimatableDoubleAndBool() override {}
16 static PassRefPtr<AnimatableDoubleAndBool> Create(double number, bool flag) {
17 return AdoptRef(new AnimatableDoubleAndBool(number, flag));
18 }
19
20 private:
21 AnimatableDoubleAndBool(double number, bool flag)
22 : number_(number), flag_(flag) {}
23 AnimatableType GetType() const override { return kTypeDoubleAndBool; }
24 bool EqualTo(const AnimatableValue*) const override;
25
26 double number_;
27 bool flag_;
28 };
29
30 DEFINE_ANIMATABLE_VALUE_TYPE_CASTS(AnimatableDoubleAndBool, IsDoubleAndBool());
31
32 } // namespace blink
33
34 #endif // AnimatableDoubleAndBool_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698