Commit 6ade5a84 authored by Kent Tamura's avatar Kent Tamura Committed by Commit Bot

Apply snake_case to EventFactory.cpp.tmpl and CSSPropertySubclass.*.tmpl.

C++ source files generated by these templates were already converted to
snake_case.
This CL has no behavior changes.

Bug: 770603
Change-Id: Ief42bcec5ec354c9fa052e8559559e5aae199cfa
Reviewed-on: https://chromium-review.googlesource.com/965682Reviewed-by: default avatarHitoshi Yoshida <peria@chromium.org>
Commit-Queue: Kent Tamura <tkent@chromium.org>
Cr-Commit-Position: refs/heads/master@{#543622}
parent 76882bfb
...@@ -71,7 +71,7 @@ class CSSPropertiesWriter(CSSPropertyBaseWriter): ...@@ -71,7 +71,7 @@ class CSSPropertiesWriter(CSSPropertyBaseWriter):
def generate_property_h_builder(self, property_classname, property_filename, property_): def generate_property_h_builder(self, property_classname, property_filename, property_):
@template_expander.use_jinja( @template_expander.use_jinja(
'core/css/properties/templates/CSSPropertySubclass.h.tmpl', 'core/css/properties/templates/css_property_subclass.h.tmpl',
template_cache=self.template_cache) template_cache=self.template_cache)
def generate_property_h(): def generate_property_h():
return { return {
...@@ -85,7 +85,7 @@ class CSSPropertiesWriter(CSSPropertyBaseWriter): ...@@ -85,7 +85,7 @@ class CSSPropertiesWriter(CSSPropertyBaseWriter):
def generate_property_cpp_builder(self, property_filename, property_): def generate_property_cpp_builder(self, property_filename, property_):
@template_expander.use_jinja( @template_expander.use_jinja(
'core/css/properties/templates/CSSPropertySubclass.cpp.tmpl', 'core/css/properties/templates/css_property_subclass.cc.tmpl',
template_cache=self.template_cache) template_cache=self.template_cache)
def generate_property_cpp(): def generate_property_cpp():
return { return {
......
...@@ -141,7 +141,7 @@ class EventFactoryWriter(json5_generator.Writer): ...@@ -141,7 +141,7 @@ class EventFactoryWriter(json5_generator.Writer):
includes[cpp_name] = self._headers_header_include_path(entry) includes[cpp_name] = self._headers_header_include_path(entry)
return sorted(includes.values()) return sorted(includes.values())
@template_expander.use_jinja('templates/EventFactory.cpp.tmpl', filters=filters) @template_expander.use_jinja('templates/event_factory.cc.tmpl', filters=filters)
def generate_implementation(self): def generate_implementation(self):
return { return {
'include_header_paths': self._headers_header_includes( 'include_header_paths': self._headers_header_includes(
......
...@@ -29,7 +29,7 @@ css_properties_files = ...@@ -29,7 +29,7 @@ css_properties_files =
make_event_factory_files = scripts_for_json5_files + [ make_event_factory_files = scripts_for_json5_files + [
"$_scripts_dir/make_event_factory.py", "$_scripts_dir/make_event_factory.py",
"$_scripts_dir/templates/EventFactory.cpp.tmpl", "$_scripts_dir/templates/event_factory.cc.tmpl",
] ]
make_names_files = scripts_for_json5_files + [ make_names_files = scripts_for_json5_files + [
......
...@@ -553,8 +553,8 @@ css_properties("make_core_generated_css_longhand_property_classes") { ...@@ -553,8 +553,8 @@ css_properties("make_core_generated_css_longhand_property_classes") {
"../build/scripts/core/css/properties/make_css_property_subclasses.py" "../build/scripts/core/css/properties/make_css_property_subclasses.py"
in_files = [ "css/properties/CSSPropertyMethods.json5" ] in_files = [ "css/properties/CSSPropertyMethods.json5" ]
other_inputs = [ other_inputs = [
"../build/scripts/core/css/properties/templates/CSSPropertySubclass.h.tmpl", "../build/scripts/core/css/properties/templates/css_property_subclass.h.tmpl",
"../build/scripts/core/css/properties/templates/CSSPropertySubclass.cpp.tmpl", "../build/scripts/core/css/properties/templates/css_property_subclass.cc.tmpl",
] ]
outputs = [ outputs = [
"$blink_core_output_dir/css/properties/longhands/align_content.h", "$blink_core_output_dir/css/properties/longhands/align_content.h",
...@@ -1020,9 +1020,7 @@ css_properties("make_core_generated_css_shorthand_property_classes") { ...@@ -1020,9 +1020,7 @@ css_properties("make_core_generated_css_shorthand_property_classes") {
script = script =
"../build/scripts/core/css/properties/make_css_property_subclasses.py" "../build/scripts/core/css/properties/make_css_property_subclasses.py"
in_files = [ "css/properties/CSSPropertyMethods.json5" ] in_files = [ "css/properties/CSSPropertyMethods.json5" ]
other_inputs = [ other_inputs = [ "../build/scripts/core/css/properties/templates/css_property_subclass.h.tmpl" ]
"../build/scripts/core/css/properties/templates/CSSPropertySubclass.h.tmpl",
]
outputs = [ outputs = [
"$blink_core_output_dir/css/properties/shorthands/animation.h", "$blink_core_output_dir/css/properties/shorthands/animation.h",
"$blink_core_output_dir/css/properties/shorthands/background.h", "$blink_core_output_dir/css/properties/shorthands/background.h",
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment