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

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

Issue 2190543004: [Typed-OM] Add CSSResourceValue (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove FakeResource, modify FakeCSSResourceValue to have only a Status Created 4 years, 4 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
« no previous file with comments | « third_party/WebKit/Source/core/css/cssom/CSSResourceValueTest.cpp ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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"
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
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
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/css/cssom/CSSResourceValueTest.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698