| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 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 | 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 CSSNumberValue_h | 5 #ifndef CSSNumberValue_h |
| 6 #define CSSNumberValue_h | 6 #define CSSNumberValue_h |
| 7 | 7 |
| 8 #include "bindings/core/v8/ScriptWrappable.h" | 8 #include "bindings/core/v8/ScriptWrappable.h" |
| 9 #include "core/CoreExport.h" | 9 #include "core/CoreExport.h" |
| 10 #include "core/css/CSSPrimitiveValue.h" | 10 #include "core/css/CSSPrimitiveValue.h" |
| 11 #include "core/css/cssom/CSSStyleValue.h" | 11 #include "core/css/cssom/CSSStyleValue.h" |
| 12 #include "wtf/text/WTFString.h" | 12 #include "platform/wtf/text/WTFString.h" |
| 13 | 13 |
| 14 namespace blink { | 14 namespace blink { |
| 15 | 15 |
| 16 class CORE_EXPORT CSSNumberValue final : public CSSStyleValue { | 16 class CORE_EXPORT CSSNumberValue final : public CSSStyleValue { |
| 17 WTF_MAKE_NONCOPYABLE(CSSNumberValue); | 17 WTF_MAKE_NONCOPYABLE(CSSNumberValue); |
| 18 DEFINE_WRAPPERTYPEINFO(); | 18 DEFINE_WRAPPERTYPEINFO(); |
| 19 | 19 |
| 20 public: | 20 public: |
| 21 static CSSNumberValue* Create(double value) { | 21 static CSSNumberValue* Create(double value) { |
| 22 return new CSSNumberValue(value); | 22 return new CSSNumberValue(value); |
| (...skipping 12 matching lines...) Expand all Loading... |
| 35 | 35 |
| 36 private: | 36 private: |
| 37 CSSNumberValue(double value) : value_(value) {} | 37 CSSNumberValue(double value) : value_(value) {} |
| 38 | 38 |
| 39 double value_; | 39 double value_; |
| 40 }; | 40 }; |
| 41 | 41 |
| 42 } // namespace blink | 42 } // namespace blink |
| 43 | 43 |
| 44 #endif | 44 #endif |
| OLD | NEW |