Commit 9cfbee67 authored by Kent Tamura's avatar Kent Tamura Committed by Commit Bot

Apply snake_case to generated CSSValueIDMappingsGenerated.h

This CL has no behavior changes.

Bug: 770603
Change-Id: If833ca44fbf30eaa592905d4283c593f353908af
Reviewed-on: https://chromium-review.googlesource.com/958765Reviewed-by: default avatarHitoshi Yoshida <peria@chromium.org>
Commit-Queue: Kent Tamura <tkent@chromium.org>
Cr-Commit-Position: refs/heads/master@{#542514}
parent 769799b8
...@@ -100,7 +100,7 @@ class CSSValueIDMappingsWriter(make_style_builder.StyleBuilderWriter): ...@@ -100,7 +100,7 @@ class CSSValueIDMappingsWriter(make_style_builder.StyleBuilderWriter):
def __init__(self, json5_file_paths): def __init__(self, json5_file_paths):
super(CSSValueIDMappingsWriter, self).__init__(json5_file_paths) super(CSSValueIDMappingsWriter, self).__init__(json5_file_paths)
self._outputs = { self._outputs = {
'CSSValueIDMappingsGenerated.h': self.generate_css_value_mappings, 'css_value_id_mappings_generated.h': self.generate_css_value_mappings,
} }
self.css_values_dictionary_file = json5_file_paths[2] self.css_values_dictionary_file = json5_file_paths[2]
css_properties = self.css_properties.longhands css_properties = self.css_properties.longhands
...@@ -113,8 +113,7 @@ class CSSValueIDMappingsWriter(make_style_builder.StyleBuilderWriter): ...@@ -113,8 +113,7 @@ class CSSValueIDMappingsWriter(make_style_builder.StyleBuilderWriter):
css_properties = keyword_utils.sort_keyword_properties_by_canonical_order( css_properties = keyword_utils.sort_keyword_properties_by_canonical_order(
css_properties, json5_file_paths[2], self.default_parameters) css_properties, json5_file_paths[2], self.default_parameters)
@template_expander.use_jinja('templates/css_value_id_mappings_generated.h.tmpl')
@template_expander.use_jinja('templates/CSSValueIDMappingsGenerated.h.tmpl')
def generate_css_value_mappings(self): def generate_css_value_mappings(self):
mappings = {} mappings = {}
include_paths = set() include_paths = set()
......
...@@ -3,8 +3,8 @@ ...@@ -3,8 +3,8 @@
{{source_files_for_generated_file(template_file, input_files)}} {{source_files_for_generated_file(template_file, input_files)}}
#ifndef CSSValueIDMappingsGenerated_h #ifndef BLINK_CORE_CSS_VALUE_ID_MAPPINGS_GENERATED_H_
#define CSSValueIDMappingsGenerated_h #define BLINK_CORE_CSS_VALUE_ID_MAPPINGS_GENERATED_H_
#include "base/logging.h" #include "base/logging.h"
#include "core/computed_style_base_constants.h" #include "core/computed_style_base_constants.h"
...@@ -100,4 +100,4 @@ inline CSSValueID platformEnumToCSSValueIDGenerated({{enum_name}} v) { ...@@ -100,4 +100,4 @@ inline CSSValueID platformEnumToCSSValueIDGenerated({{enum_name}} v) {
} // namespace blink } // namespace blink
#endif // CSSValueIDMappingsGenerated_h #endif // BLINK_CORE_CSS_VALUE_ID_MAPPINGS_GENERATED_H_
...@@ -518,11 +518,11 @@ css_properties("make_core_generated_css_value_id_mappings") { ...@@ -518,11 +518,11 @@ css_properties("make_core_generated_css_value_id_mappings") {
script = "../build/scripts/make_css_value_id_mappings.py" script = "../build/scripts/make_css_value_id_mappings.py"
in_files = [ "css/CSSValueKeywords.json5" ] in_files = [ "css/CSSValueKeywords.json5" ]
other_inputs = [ other_inputs = [
"../build/scripts/templates/CSSValueIDMappingsGenerated.h.tmpl", "../build/scripts/templates/css_value_id_mappings_generated.h.tmpl",
"../build/scripts/keyword_utils.py", "../build/scripts/keyword_utils.py",
] ]
outputs = [ outputs = [
"$blink_core_output_dir/CSSValueIDMappingsGenerated.h", "$blink_core_output_dir/css_value_id_mappings_generated.h",
] ]
} }
......
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
#ifndef CSSValueIDMappings_h #ifndef CSSValueIDMappings_h
#define CSSValueIDMappings_h #define CSSValueIDMappings_h
#include "core/CSSValueIDMappingsGenerated.h" #include "core/css_value_id_mappings_generated.h"
namespace blink { namespace blink {
......
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