Index: third_party/WebKit/Source/build/scripts/templates/fields/external.tmpl |
diff --git a/third_party/WebKit/Source/build/scripts/templates/fields/external.tmpl b/third_party/WebKit/Source/build/scripts/templates/fields/external.tmpl |
new file mode 100644 |
index 0000000000000000000000000000000000000000..863385a40f832b9227088c465f357863c3a918f4 |
--- /dev/null |
+++ b/third_party/WebKit/Source/build/scripts/templates/fields/external.tmpl |
@@ -0,0 +1,17 @@ |
+{% macro decl_methods(field) %} |
+inline static {{field.type_name}} {{field.initial_method_name}}() { |
+ return {{field.default_value}}; |
+} |
+const {{field.type_name}}& {{field.getter_method_name}}() const { |
+ return {{field.name}}; |
+} |
+void {{field.setter_method_name}}(const {{field.type_name}}& v) { |
+ {{field.name}} = v; |
+} |
+void {{field.setter_method_name}}({{field.type_name}}&& v) { |
+ {{field.name}} = std::move(v); |
+} |
+inline void {{field.resetter_method_name}}() { |
+ {{field.name}} = {{field.default_value}}; |
+} |
+{% endmacro %} |