Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(67)

Side by Side Diff: third_party/WebKit/Source/build/scripts/templates/CSSPropertyDescriptor.h.tmpl

Issue 2684353002: Added CSSPropertyDescriptor.h.tmpl to generate CSSPropertyDescriptor.h. (Closed)
Patch Set: renames and comments Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "core/CSSPropertyNames.h" 5 #include "core/CSSPropertyNames.h"
6 6
7 namespace blink { 7 namespace blink {
8 8
9 class CSSValue; 9 class CSSValue;
10 class CSSParserTokenRange; 10 class CSSParserTokenRange;
11 class CSSParserContext; 11 class CSSParserContext;
12 12
13 // Stores function pointers matching those declared in CSSPropertyAPI. 13 // Stores function pointers matching those declared in CSSPropertyAPI.
14 struct CSSPropertyDescriptor { 14 struct CSSPropertyDescriptor {
15 const CSSValue* (*parseSingleValue)(CSSParserTokenRange&, 15 {% for api_method_name in ordered_api_method_names %}
16 const CSSParserContext*); 16 {{all_api_methods[api_method_name].return_type}} (*{{api_method_name}}){{all_a pi_methods[api_method_name].parameters}};
17 bool (*parseShorthand)(bool, CSSParserTokenRange&, const CSSParserContext*); 17 {% endfor %}
18 18
19 // Returns the corresponding CSSPropertyDescriptor for a given CSSPropertyID. 19 // Returns the corresponding CSSPropertyDescriptor for a given CSSPropertyID.
20 // Use this function to access the API for a property. Returns a descriptor 20 // Use this function to access the API for a property. Returns a descriptor
21 // with isValid set to false if no descriptor exists for this ID. 21 // with isValid set to false if no descriptor exists for this ID.
22 static const CSSPropertyDescriptor& get(CSSPropertyID); 22 static const CSSPropertyDescriptor& get(CSSPropertyID);
23 }; 23 };
24 24
25 } // namespace blink 25 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/build/scripts/scripts.gni ('k') | third_party/WebKit/Source/core/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698