OLD | NEW |
| (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 | |
OLD | NEW |