Chromium Code Reviews| Index: third_party/WebKit/Source/core/css/CSSRayValue.h |
| diff --git a/third_party/WebKit/Source/core/css/CSSRayValue.h b/third_party/WebKit/Source/core/css/CSSRayValue.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..c1f079bf6d20fbd189d05f325ca8ad2c942e001e |
| --- /dev/null |
| +++ b/third_party/WebKit/Source/core/css/CSSRayValue.h |
| @@ -0,0 +1,42 @@ |
| +// Copyright 2017 The Chromium Authors. All rights reserved. |
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +#ifndef CSSRayValue_h |
| +#define CSSRayValue_h |
| + |
| +#include "core/css/CSSValue.h" |
| + |
| +namespace blink { |
| + |
| +class CSSIdentifierValue; |
| +class CSSPrimitiveValue; |
| +class CSSValueList; |
| + |
| +class CSSRayValue : public CSSValue { |
| + public: |
| + 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.
|
| + |
| + const CSSPrimitiveValue* Angle() const { return angle_.Get(); } |
| + 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.
|
| + const CSSIdentifierValue* Contain() const { return contain_.Get(); } |
| + |
| + String CustomCSSText() const; |
| + |
| + bool Equals(const CSSRayValue&) const; |
| + |
| + DECLARE_TRACE_AFTER_DISPATCH(); |
| + |
| + private: |
| + CSSRayValue(CSSValueList*); |
| + |
| + Member<const CSSPrimitiveValue> angle_; |
| + Member<const CSSIdentifierValue> size_; |
| + Member<const CSSIdentifierValue> contain_; |
| +}; |
| + |
| +DEFINE_CSS_VALUE_TYPE_CASTS(CSSRayValue, IsRayValue()); |
| + |
| +} // namespace blink |
| + |
| +#endif // CSSRayValue_h |