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

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

Issue 2367663002: [WIP] Attempt to move everything cssom into a cssom namespace (Closed)
Patch Set: Created 4 years, 2 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 CSSKeywordValue_h 5 #ifndef CSSKeywordValue_h
6 #define CSSKeywordValue_h 6 #define CSSKeywordValue_h
7 7
8 #include "core/CSSValueKeywords.h" 8 #include "core/CSSValueKeywords.h"
9 #include "core/CoreExport.h" 9 #include "core/CoreExport.h"
10 #include "core/css/cssom/CSSStyleValue.h" 10 #include "core/css/cssom/CSSStyleValue.h"
11 #include "wtf/text/AtomicString.h" 11 #include "wtf/text/AtomicString.h"
12 12
13 namespace blink { 13 namespace blink {
14 namespace cssom {
14 15
15 class ExceptionState; 16 class ExceptionState;
16 17
17 class CORE_EXPORT CSSKeywordValue final : public CSSStyleValue { 18 class CORE_EXPORT CSSKeywordValue final : public CSSStyleValue {
18 WTF_MAKE_NONCOPYABLE(CSSKeywordValue); 19 WTF_MAKE_NONCOPYABLE(CSSKeywordValue);
19 DEFINE_WRAPPERTYPEINFO(); 20 DEFINE_WRAPPERTYPEINFO();
20 public: 21 public:
21 static CSSKeywordValue* create(const AtomicString& keyword, ExceptionState&) ; 22 static CSSKeywordValue* create(const AtomicString& keyword, ExceptionState&) ;
22 23
23 StyleValueType type() const override { return KeywordType; } 24 StyleValueType type() const override { return KeywordType; }
24 25
25 const AtomicString& keywordValue() const; 26 const AtomicString& keywordValue() const;
26 CSSValueID keywordValueID() const; 27 CSSValueID keywordValueID() const;
27 28
28 CSSValue* toCSSValue() const override; 29 CSSValue* toCSSValue() const override;
29 30
30 private: 31 private:
31 explicit CSSKeywordValue(const AtomicString& keyword) 32 explicit CSSKeywordValue(const AtomicString& keyword)
32 : m_keywordValue(keyword) {} 33 : m_keywordValue(keyword) {}
33 34
34 AtomicString m_keywordValue; 35 AtomicString m_keywordValue;
35 }; 36 };
36 37
37 DEFINE_TYPE_CASTS(CSSKeywordValue, CSSStyleValue, value, 38 DEFINE_TYPE_CASTS(CSSKeywordValue, CSSStyleValue, value,
38 value->type() == CSSStyleValue::StyleValueType::KeywordType, 39 value->type() == CSSStyleValue::StyleValueType::KeywordType,
39 value.type() == CSSStyleValue::StyleValueType::KeywordType); 40 value.type() == CSSStyleValue::StyleValueType::KeywordType);
40 41
42 } // namespace cssom
41 } // namespace blink 43 } // namespace blink
42 44
45
43 #endif 46 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698