Chromium Code Reviews| Index: third_party/WebKit/Source/core/css/properties/CSSPropertyDescriptor.h |
| diff --git a/third_party/WebKit/Source/core/css/properties/CSSPropertyDescriptor.h b/third_party/WebKit/Source/core/css/properties/CSSPropertyDescriptor.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..5960330f71f9c8058e4c5c98ed086ed9d16b9c9d |
| --- /dev/null |
| +++ b/third_party/WebKit/Source/core/css/properties/CSSPropertyDescriptor.h |
| @@ -0,0 +1,25 @@ |
| +// Copyright 2016 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. |
| + |
| +#include "core/CSSPropertyNames.h" |
| + |
| +namespace blink { |
| + |
| +class CSSValue; |
| +class CSSParserTokenRange; |
| +class CSSParserContext; |
| + |
| +// Stores function pointers matching those declared in CSSPropertyAPI. |
| +struct CSSPropertyDescriptor { |
| + const CSSValue* (*parseSingleValue)(CSSParserTokenRange&, |
| + const CSSParserContext&); |
| + CSSPropertyID id; |
| + |
| + // This is used to check if the descriptor is valid and is for internal use |
| + // only. |
| + bool isValid; |
| + static const CSSPropertyDescriptor& get(CSSPropertyID); |
|
sashab
2016/12/05 23:58:12
get() method needs a comment since we want people
aazzam
2016/12/06 00:30:10
done
|
| +}; |
| + |
| +} // namespace blink |