Chromium Code Reviews| Index: third_party/WebKit/Source/core/css/properties/CSSPropertyAPIMethods.json5 |
| diff --git a/third_party/WebKit/Source/core/css/properties/CSSPropertyAPIMethods.json5 b/third_party/WebKit/Source/core/css/properties/CSSPropertyAPIMethods.json5 |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..f89a728971488032b9d83123eaf2776a400b44a5 |
| --- /dev/null |
| +++ b/third_party/WebKit/Source/core/css/properties/CSSPropertyAPIMethods.json5 |
| @@ -0,0 +1,32 @@ |
| +{ |
| + // This file specifies all the methods in CSSPropertyAPI.h and the necessary |
| + // information for code generation of the API and it's related classes. |
| + parameters: { |
| + name: { |
| + default: "", |
| + valid_type: "str", |
| + }, |
| + |
| + signature: { |
| + default: "", |
| + valid_type: "str", |
| + }, |
| + |
| + function_ptr: { |
| + default: "", |
| + valid_type: "str", |
| + } |
| + }, |
| + data: [ |
| + { |
| + name: "parseSingleValue", |
| + signature: "static const CSSValue* parseSingleValue(CSSParserTokenRange&, const CSSParserContext*);", |
|
sashab
2017/02/09 04:57:51
We should make these all consistent, ie:
- no stat
|
| + function_ptr: "static const CSSValue* (*parseSingleValue)(CSSParserTokenRange&, const CSSParserContext*);" |
| + }, |
|
sashab
2017/02/09 04:57:51
If we had:
{
name: "parseSingleValue",
aazzam
2017/02/09 23:10:12
done :) I've put the logic for combining the strin
|
| + { |
| + name: "parseShorthand", |
| + signature: "static bool parseShorthand(bool, CSSParserTokenRange&, const CSSParserContext*)", |
| + function_ptr: "bool (*parseShorthand)(bool, CSSParserTokenRange&, const CSSParserContext*);" |
| + }, |
| + ] |
| +} |