Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright 2017 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 CSSRayValue_h | |
| 6 #define CSSRayValue_h | |
| 7 | |
| 8 #include "core/css/CSSValue.h" | |
| 9 | |
| 10 namespace blink { | |
| 11 | |
| 12 class CSSIdentifierValue; | |
| 13 class CSSPrimitiveValue; | |
| 14 class CSSValueList; | |
| 15 | |
| 16 class CSSRayValue : public CSSValue { | |
| 17 public: | |
| 18 static CSSRayValue* Create(CSSValueList*); | |
|
fs
2017/05/15 09:18:14
Nit: const CSSValueList& ?
Eric Willigers
2017/05/15 10:52:23
Required arguments now passed by reference.
| |
| 19 | |
| 20 const CSSPrimitiveValue* Angle() const { return angle_.Get(); } | |
| 21 const CSSIdentifierValue* Size() const { return size_.Get(); } | |
|
fs
2017/05/15 09:18:14
Nit: Maybe the two that are not supposed to (canno
Eric Willigers
2017/05/15 10:52:23
Done.
| |
| 22 const CSSIdentifierValue* Contain() const { return contain_.Get(); } | |
| 23 | |
| 24 String CustomCSSText() const; | |
| 25 | |
| 26 bool Equals(const CSSRayValue&) const; | |
| 27 | |
| 28 DECLARE_TRACE_AFTER_DISPATCH(); | |
| 29 | |
| 30 private: | |
| 31 CSSRayValue(CSSValueList*); | |
| 32 | |
| 33 Member<const CSSPrimitiveValue> angle_; | |
| 34 Member<const CSSIdentifierValue> size_; | |
| 35 Member<const CSSIdentifierValue> contain_; | |
| 36 }; | |
| 37 | |
| 38 DEFINE_CSS_VALUE_TYPE_CASTS(CSSRayValue, IsRayValue()); | |
| 39 | |
| 40 } // namespace blink | |
| 41 | |
| 42 #endif // CSSRayValue_h | |
| OLD | NEW |