| OLD | NEW |
| 1 { | 1 { |
| 2 // This file specifies all the methods in CSSPropertyAPI.h and the necessary | 2 // This file specifies all the methods in CSSPropertyAPI.h and the necessary |
| 3 // information for code generation of the API and it's related classes. | 3 // information for code generation of the API and it's related classes. |
| 4 parameters: { | 4 parameters: { |
| 5 // - name | 5 // - name |
| 6 // The name of this method in camel case. | 6 // The name of this method in camel case. |
| 7 name: { | 7 name: { |
| 8 default: "", | 8 default: "", |
| 9 valid_type: "str", | 9 valid_type: "str", |
| 10 }, | 10 }, |
| (...skipping 18 matching lines...) Expand all Loading... |
| 29 // placed in the code above the method definition in CSSPropertyAPI.h. | 29 // placed in the code above the method definition in CSSPropertyAPI.h. |
| 30 description: { | 30 description: { |
| 31 default: "", | 31 default: "", |
| 32 valid_type: "str", | 32 valid_type: "str", |
| 33 }, | 33 }, |
| 34 }, | 34 }, |
| 35 data: [ | 35 data: [ |
| 36 { | 36 { |
| 37 name: "parseSingleValue", | 37 name: "parseSingleValue", |
| 38 return_type: "const CSSValue*", | 38 return_type: "const CSSValue*", |
| 39 parameters: "(CSSParserTokenRange&, const CSSParserContext&)", | 39 parameters: "(CSSParserTokenRange&, const CSSParserContext*)", |
| 40 description: "Parses a single CSS property and returns the corresponding C
SSValue. If the input is invalid it returns nullptr.", | 40 description: "Parses a single CSS property and returns the corresponding C
SSValue. If the input is invalid it returns nullptr.", |
| 41 }, | 41 }, |
| 42 { | 42 { |
| 43 name: "parseShorthand", | 43 name: "parseShorthand", |
| 44 return_type: "bool", | 44 return_type: "bool", |
| 45 parameters: "(bool, CSSParserTokenRange&, const CSSParserContext*)", | 45 parameters: "(bool, CSSParserTokenRange&, const CSSParserContext*)", |
| 46 description: "Returns true if the property can be parsed as a shorthand.", | 46 description: "Returns true if the property can be parsed as a shorthand.", |
| 47 }, | 47 }, |
| 48 ] | 48 ] |
| 49 } | 49 } |
| OLD | NEW |