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

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

Issue 2036893003: [CSS Typed OM] Rename StyleValue -> CSSStyleValue (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Update more union types Created 4 years, 6 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
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef StyleValue_h
6 #define StyleValue_h
7
8 #include "bindings/core/v8/ScriptWrappable.h"
9 #include "core/CoreExport.h"
10 #include "core/css/CSSValue.h"
11
12 namespace blink {
13
14 class ExceptionState;
15 class ScriptState;
16 class ScriptValue;
17
18 class CORE_EXPORT StyleValue : public GarbageCollectedFinalized<StyleValue>, pub lic ScriptWrappable {
19 WTF_MAKE_NONCOPYABLE(StyleValue);
20 DEFINE_WRAPPERTYPEINFO();
21 public:
22 enum StyleValueType {
23 AngleType,
24 CalcLengthType,
25 KeywordType,
26 NumberType,
27 PositionType,
28 SimpleLengthType,
29 TransformValueType,
30 };
31
32 virtual ~StyleValue() { }
33
34 virtual StyleValueType type() const = 0;
35
36 static ScriptValue parse(ScriptState*, const String& propertyName, const Str ing& value, ExceptionState&);
37
38 virtual CSSValue* toCSSValue() const = 0;
39 virtual String cssString() const
40 {
41 return toCSSValue()->cssText();
42 }
43
44 DEFINE_INLINE_VIRTUAL_TRACE() { }
45
46 protected:
47 StyleValue() {}
48 };
49
50 } // namespace blink
51
52 #endif
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/css/cssom/StylePropertyMap.idl ('k') | third_party/WebKit/Source/core/css/cssom/StyleValue.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698