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

Side by Side Diff: third_party/WebKit/Source/core/css/cssom/CSSSimpleLength.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 CSSSimpleLength_h 5 #ifndef CSSSimpleLength_h
6 #define CSSSimpleLength_h 6 #define CSSSimpleLength_h
7 7
8 #include "bindings/core/v8/ExceptionState.h" 8 #include "bindings/core/v8/ExceptionState.h"
9 #include "core/css/cssom/CSSLengthValue.h" 9 #include "core/css/cssom/CSSLengthValue.h"
10 10
11 namespace blink { 11 namespace blink {
12 namespace cssom {
12 13
13 class CSSPrimitiveValue; 14 class CSSPrimitiveValue;
14 15
15 class CORE_EXPORT CSSSimpleLength final : public CSSLengthValue { 16 class CORE_EXPORT CSSSimpleLength final : public CSSLengthValue {
16 WTF_MAKE_NONCOPYABLE(CSSSimpleLength); 17 WTF_MAKE_NONCOPYABLE(CSSSimpleLength);
17 DEFINE_WRAPPERTYPEINFO(); 18 DEFINE_WRAPPERTYPEINFO();
18 public: 19 public:
19 static CSSSimpleLength* create(double value, const String& type, ExceptionSt ate& exceptionState) 20 static CSSSimpleLength* create(double value, const String& type, ExceptionSt ate& exceptionState)
20 { 21 {
21 CSSPrimitiveValue::UnitType unit = unitFromName(type); 22 CSSPrimitiveValue::UnitType unit = unitFromName(type);
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 }; 58 };
58 59
59 #define DEFINE_SIMPLE_LENGTH_TYPE_CASTS(argumentType) \ 60 #define DEFINE_SIMPLE_LENGTH_TYPE_CASTS(argumentType) \
60 DEFINE_TYPE_CASTS(CSSSimpleLength, argumentType, value, \ 61 DEFINE_TYPE_CASTS(CSSSimpleLength, argumentType, value, \
61 value->type() == CSSLengthValue::StyleValueType::SimpleLengthType, \ 62 value->type() == CSSLengthValue::StyleValueType::SimpleLengthType, \
62 value.type() == CSSLengthValue::StyleValueType::SimpleLengthType) 63 value.type() == CSSLengthValue::StyleValueType::SimpleLengthType)
63 64
64 DEFINE_SIMPLE_LENGTH_TYPE_CASTS(CSSLengthValue); 65 DEFINE_SIMPLE_LENGTH_TYPE_CASTS(CSSLengthValue);
65 DEFINE_SIMPLE_LENGTH_TYPE_CASTS(CSSStyleValue); 66 DEFINE_SIMPLE_LENGTH_TYPE_CASTS(CSSStyleValue);
66 67
68 } // namespace cssom
67 } // namespace blink 69 } // namespace blink
68 70
71
69 #endif 72 #endif
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/css/cssom/CSSScale.cpp ('k') | third_party/WebKit/Source/core/css/cssom/CSSSimpleLength.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698