OLD | NEW |
1 // Copyright 2017 The Chromium Authors. All rights reserved. | 1 // Copyright 2017 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 CSSNumericValue_h | 5 #ifndef CSSNumericValue_h |
6 #define CSSNumericValue_h | 6 #define CSSNumericValue_h |
7 | 7 |
8 #include "core/CoreExport.h" | 8 #include "core/CoreExport.h" |
9 #include "core/css/CSSPrimitiveValue.h" | 9 #include "core/css/CSSPrimitiveValue.h" |
10 #include "core/css/cssom/CSSStyleValue.h" | 10 #include "core/css/cssom/CSSStyleValue.h" |
11 #include "platform/bindings/ScriptWrappable.h" | 11 #include "platform/bindings/ScriptWrappable.h" |
12 #include "platform/wtf/text/WTFString.h" | 12 #include "platform/wtf/text/WTFString.h" |
13 | 13 |
14 namespace blink { | 14 namespace blink { |
15 | 15 |
16 class CSSUnitValue; | 16 class CSSUnitValue; |
17 class ExceptionState; | 17 class ExceptionState; |
18 | 18 |
19 class CORE_EXPORT CSSNumericValue : public CSSStyleValue { | 19 class CORE_EXPORT CSSNumericValue : public CSSStyleValue { |
20 WTF_MAKE_NONCOPYABLE(CSSNumericValue); | 20 WTF_MAKE_NONCOPYABLE(CSSNumericValue); |
21 DEFINE_WRAPPERTYPEINFO(); | 21 DEFINE_WRAPPERTYPEINFO(); |
22 | 22 |
23 public: | 23 public: |
24 static CSSNumericValue* parse(const String& css_text, ExceptionState&); | 24 static CSSNumericValue* parse(const String& css_text, ExceptionState&); |
25 static CSSNumericValue* FromCSSValue(const CSSValue&) { | 25 static CSSNumericValue* FromCSSValue(const CSSPrimitiveValue&); |
26 // TODO(meade): Implement. | |
27 return nullptr; | |
28 } | |
29 | 26 |
30 virtual CSSNumericValue* add(const CSSNumericValue*, ExceptionState&) { | 27 virtual CSSNumericValue* add(const CSSNumericValue*, ExceptionState&) { |
31 // TODO(meade): Implement. | 28 // TODO(meade): Implement. |
32 return nullptr; | 29 return nullptr; |
33 } | 30 } |
34 virtual CSSNumericValue* sub(const CSSNumericValue*, ExceptionState&) { | 31 virtual CSSNumericValue* sub(const CSSNumericValue*, ExceptionState&) { |
35 // TODO(meade): Implement. | 32 // TODO(meade): Implement. |
36 return nullptr; | 33 return nullptr; |
37 } | 34 } |
38 virtual CSSNumericValue* mul(double, ExceptionState&) { | 35 virtual CSSNumericValue* mul(double, ExceptionState&) { |
(...skipping 12 matching lines...) Expand all Loading... |
51 | 48 |
52 virtual CSSUnitValue* to(CSSPrimitiveValue::UnitType) { return nullptr; } | 49 virtual CSSUnitValue* to(CSSPrimitiveValue::UnitType) { return nullptr; } |
53 | 50 |
54 protected: | 51 protected: |
55 CSSNumericValue() {} | 52 CSSNumericValue() {} |
56 }; | 53 }; |
57 | 54 |
58 } // namespace blink | 55 } // namespace blink |
59 | 56 |
60 #endif // CSSNumericValue_h | 57 #endif // CSSNumericValue_h |
OLD | NEW |