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" |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
42 virtual CSSNumericValue* div(double, ExceptionState&) { | 42 virtual CSSNumericValue* div(double, ExceptionState&) { |
43 // TODO(meade): Implement. | 43 // TODO(meade): Implement. |
44 return nullptr; | 44 return nullptr; |
45 } | 45 } |
46 | 46 |
47 virtual CSSNumericValue* to(const String&, ExceptionState&) { | 47 virtual CSSNumericValue* to(const String&, ExceptionState&) { |
48 // TODO(meade): Implement. | 48 // TODO(meade): Implement. |
49 return nullptr; | 49 return nullptr; |
50 } | 50 } |
51 | 51 |
52 // Internal methods. | |
53 virtual CSSUnitValue* to(CSSPrimitiveValue::UnitType) { return nullptr; } | 52 virtual CSSUnitValue* to(CSSPrimitiveValue::UnitType) { return nullptr; } |
54 bool ContainsPercent() const { | |
55 // TODO(meade): Implement. | |
56 return false; | |
57 } | |
58 | 53 |
59 protected: | 54 protected: |
60 CSSNumericValue() {} | 55 CSSNumericValue() {} |
61 }; | 56 }; |
62 | 57 |
63 } // namespace blink | 58 } // namespace blink |
64 | 59 |
65 #endif // CSSNumericValue_h | 60 #endif // CSSNumericValue_h |
OLD | NEW |