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

Side by Side Diff: Source/core/animation/animatable/AnimatableDoubleAndBool.h

Issue 1082293003: Componentization: make core/animation,clipboard,css,dom,editing,frame,html visible for blink_web. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 8 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
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
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
OLDNEW
« no previous file with comments | « Source/core/animation/animatable/AnimatableDouble.h ('k') | Source/core/animation/animatable/AnimatableShapeValue.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698