OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef AnimatableDoubleAndBool_h | 5 #ifndef AnimatableDoubleAndBool_h |
6 #define AnimatableDoubleAndBool_h | 6 #define AnimatableDoubleAndBool_h |
7 | 7 |
| 8 #include "core/CoreExport.h" |
8 #include "core/animation/animatable/AnimatableValue.h" | 9 #include "core/animation/animatable/AnimatableValue.h" |
9 | 10 |
10 namespace blink { | 11 namespace blink { |
11 | 12 |
12 class AnimatableDoubleAndBool final : public AnimatableValue { | 13 class CORE_EXPORT AnimatableDoubleAndBool final : public AnimatableValue { |
13 public: | 14 public: |
14 virtual ~AnimatableDoubleAndBool() { } | 15 virtual ~AnimatableDoubleAndBool() { } |
15 static PassRefPtrWillBeRawPtr<AnimatableDoubleAndBool> create(double number,
bool flag) | 16 static PassRefPtrWillBeRawPtr<AnimatableDoubleAndBool> create(double number,
bool flag) |
16 { | 17 { |
17 return adoptRefWillBeNoop(new AnimatableDoubleAndBool(number, flag)); | 18 return adoptRefWillBeNoop(new AnimatableDoubleAndBool(number, flag)); |
18 } | 19 } |
19 | 20 |
20 double toDouble() const { return m_number; } | 21 double toDouble() const { return m_number; } |
21 bool flag() const { return m_flag; } | 22 bool flag() const { return m_flag; } |
22 | 23 |
(...skipping 14 matching lines...) Expand all Loading... |
37 | 38 |
38 double m_number; | 39 double m_number; |
39 bool m_flag; | 40 bool m_flag; |
40 }; | 41 }; |
41 | 42 |
42 DEFINE_ANIMATABLE_VALUE_TYPE_CASTS(AnimatableDoubleAndBool, isDoubleAndBool()); | 43 DEFINE_ANIMATABLE_VALUE_TYPE_CASTS(AnimatableDoubleAndBool, isDoubleAndBool()); |
43 | 44 |
44 } // namespace blink | 45 } // namespace blink |
45 | 46 |
46 #endif // AnimatableDoubleAndBool_h | 47 #endif // AnimatableDoubleAndBool_h |
OLD | NEW |