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

Side by Side Diff: third_party/WebKit/Source/core/css/cssom/CSSStyleValue.h

Issue 2122193003: [Typed-OM] Add CSSTokenStreamValue (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add test for CSSTokenStreamValue Created 4 years, 5 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 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"
(...skipping 10 matching lines...) Expand all
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 SimpleLengthType, 30 SimpleLengthType,
31 TokenStreamType,
31 TransformType, 32 TransformType,
32 }; 33 };
33 34
34 virtual ~CSSStyleValue() { } 35 virtual ~CSSStyleValue() { }
35 36
36 virtual StyleValueType type() const = 0; 37 virtual StyleValueType type() const = 0;
37 38
38 static ScriptValue parse(ScriptState*, const String& propertyName, const Str ing& value, ExceptionState&); 39 static ScriptValue parse(ScriptState*, const String& propertyName, const Str ing& value, ExceptionState&);
39 40
40 virtual const CSSValue* toCSSValue() const = 0; 41 virtual const CSSValue* toCSSValue() const = 0;
(...skipping 10 matching lines...) Expand all
51 52
52 protected: 53 protected:
53 CSSStyleValue() {} 54 CSSStyleValue() {}
54 }; 55 };
55 56
56 typedef HeapVector<Member<CSSStyleValue>> CSSStyleValueVector; 57 typedef HeapVector<Member<CSSStyleValue>> CSSStyleValueVector;
57 58
58 } // namespace blink 59 } // namespace blink
59 60
60 #endif 61 #endif
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/core.gypi ('k') | third_party/WebKit/Source/core/css/cssom/CSSTokenStreamValue.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698