Chromium Code Reviews| 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 CSSStyleValue_h | 5 #ifndef CSSStyleValue_h |
| 6 #define CSSStyleValue_h | 6 #define CSSStyleValue_h |
| 7 | 7 |
| 8 #include "bindings/core/v8/ScriptWrappable.h" | 8 #include "bindings/core/v8/ScriptWrappable.h" |
| 9 #include "core/CSSPropertyNames.h" | 9 #include "core/CSSPropertyNames.h" |
| 10 #include "core/CoreExport.h" | 10 #include "core/CoreExport.h" |
| 11 #include "core/css/CSSValue.h" | 11 #include "core/css/CSSValue.h" |
| 12 | 12 |
| 13 namespace blink { | 13 namespace blink { |
| 14 | 14 |
| 15 class ExceptionState; | 15 class ExceptionState; |
| 16 class ScriptState; | 16 class ScriptState; |
| 17 class ScriptValue; | 17 class ScriptValue; |
| 18 | 18 |
| 19 class CORE_EXPORT CSSStyleValue : public GarbageCollectedFinalized<CSSStyleValue >, public ScriptWrappable { | 19 class CORE_EXPORT CSSStyleValue : public GarbageCollectedFinalized<CSSStyleValue >, public ScriptWrappable { |
| 20 WTF_MAKE_NONCOPYABLE(CSSStyleValue); | 20 WTF_MAKE_NONCOPYABLE(CSSStyleValue); |
| 21 DEFINE_WRAPPERTYPEINFO(); | 21 DEFINE_WRAPPERTYPEINFO(); |
| 22 public: | 22 public: |
| 23 enum StyleValueType { | 23 enum StyleValueType { |
| 24 Unknown, | 24 Unknown, |
| 25 AngleType, | 25 AngleType, |
| 26 CalcLengthType, | 26 CalcLengthType, |
| 27 KeywordType, | 27 KeywordType, |
| 28 NumberType, | 28 NumberType, |
| 29 PositionType, | 29 PositionType, |
| 30 ResourceStateType, | |
|
meade_UTC10
2016/08/04 06:55:13
This should just be ResourceType.
anthonyhkf
2016/08/04 07:25:35
Done.
| |
| 30 SimpleLengthType, | 31 SimpleLengthType, |
| 31 TokenStreamType, | 32 TokenStreamType, |
| 32 TransformType, | 33 TransformType, |
| 33 }; | 34 }; |
| 34 | 35 |
| 35 virtual ~CSSStyleValue() { } | 36 virtual ~CSSStyleValue() { } |
| 36 | 37 |
| 37 virtual StyleValueType type() const = 0; | 38 virtual StyleValueType type() const = 0; |
| 38 | 39 |
| 39 static ScriptValue parse(ScriptState*, const String& propertyName, const Str ing& value, ExceptionState&); | 40 static ScriptValue parse(ScriptState*, const String& propertyName, const Str ing& value, ExceptionState&); |
| (...skipping 12 matching lines...) Expand all Loading... | |
| 52 | 53 |
| 53 protected: | 54 protected: |
| 54 CSSStyleValue() {} | 55 CSSStyleValue() {} |
| 55 }; | 56 }; |
| 56 | 57 |
| 57 typedef HeapVector<Member<CSSStyleValue>> CSSStyleValueVector; | 58 typedef HeapVector<Member<CSSStyleValue>> CSSStyleValueVector; |
| 58 | 59 |
| 59 } // namespace blink | 60 } // namespace blink |
| 60 | 61 |
| 61 #endif | 62 #endif |
| OLD | NEW |