OLD | NEW |
---|---|
1 { | 1 { |
2 // This file specifies all the methods in CSSPropertyAPI.h and the neces sary | 2 // This file specifies all the methods in CSSPropertyAPI.h and the neces sary |
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 }, |
11 | 11 |
12 // - return_type | 12 // - return_type |
13 // Return type of this method. | 13 // Return type of this method. |
14 return_type: { | 14 return_type: { |
15 default: "", | 15 default: "", |
16 valid_type: "str", | 16 valid_type: "str", |
17 }, | 17 }, |
18 | 18 |
19 // - parameters | 19 // - parameters |
20 // The parameters of this method. This string should be the type s of | 20 // The parameters of this method. This string should be the type s of |
21 // all parameters, inside brackets and comma separated. | 21 // all parameters, inside brackets and comma separated. |
22 parameters: { | 22 parameters: { |
23 default: "", | 23 default: "", |
24 valid_type: "str", | 24 valid_type: "str", |
25 » » } | 25 » » }, |
26 | |
27 » » // - comment | |
28 » » // A string comment describing the API method. This comment will be | |
29 » » // placed in the code above the method definition in CSSProperty API.h. | |
30 » » // This comment should be defined as a list of strings, each no longer than | |
31 » » // 72 chars. | |
32 » » comment: { | |
sashab
2017/02/10 02:47:09
Rename to 'description'
| |
33 » » » default: [], | |
34 » » » valid_type: "list", | |
35 » » }, | |
26 }, | 36 }, |
27 data: [ | 37 data: [ |
28 { | 38 { |
29 name: "parseSingleValue", | 39 name: "parseSingleValue", |
30 return_type: "const CSSValue*", | 40 return_type: "const CSSValue*", |
31 » » parameters: "(CSSParserTokenRange&, const CSSParserContext*)" | 41 » » parameters: "(CSSParserTokenRange&, const CSSParserContext*)", |
42 » » comment: ["Parses a single CSS property and returns the corres ponding CSSValue. If the", " input is invalid it returns nullptr."], | |
sashab
2017/02/10 02:47:09
Change comment to single string
| |
32 }, | 43 }, |
33 { | 44 { |
34 name: "parseShorthand", | 45 name: "parseShorthand", |
35 return_type: "bool", | 46 return_type: "bool", |
36 » » parameters: "(bool, CSSParserTokenRange&, const CSSParserConte xt*)" | 47 » » parameters: "(bool, CSSParserTokenRange&, const CSSParserConte xt*)", |
48 » » comment: ["Returns true if the property can be parsed as a sho rthand."], | |
37 }, | 49 }, |
38 ] | 50 ] |
39 } | 51 } |
OLD | NEW |