Commit 52bc9ffe authored by Kent Tamura's avatar Kent Tamura Committed by Commit Bot

Rename generated HTMLElementTypeHelpers.{cpp,h} and SVGElementTypeHelpers.{cpp,h}

for snake_case.

Bug: 770603
Change-Id: Ic158606ea9eb5f6cdf78e1fed72fefaa3ec613c5
Reviewed-on: https://chromium-review.googlesource.com/702200Reviewed-by: default avatarHitoshi Yoshida <peria@chromium.org>
Commit-Queue: Kent Tamura <tkent@chromium.org>
Cr-Commit-Position: refs/heads/master@{#506950}
parent 420f711e
......@@ -5,7 +5,7 @@
#ifndef V8HTMLConstructor_h
#define V8HTMLConstructor_h
#include "core/HTMLElementTypeHelpers.h"
#include "core/html_element_type_helpers.h"
#include "platform/bindings/WrapperTypeInfo.h"
#include "v8/include/v8.h"
......
......@@ -50,9 +50,10 @@ class MakeElementTypeHelpersWriter(json5_generator.Writer):
assert self.namespace, 'A namespace is required.'
basename = self.namespace.lower() + '_element_type_helpers'
self._outputs = {
(self.namespace + "ElementTypeHelpers.h"): self.generate_helper_header,
(self.namespace + "ElementTypeHelpers.cpp"): self.generate_helper_implementation,
(basename + '.h'): self.generate_helper_header,
(basename + '.cc'): self.generate_helper_implementation,
}
base_element_header = 'core/%s/%s_element.h' % (self.namespace.lower(), self.namespace.lower())
......@@ -77,11 +78,11 @@ class MakeElementTypeHelpersWriter(json5_generator.Writer):
for tag in tags:
tag['multipleTagNames'] = (interface_counts[tag['interface']] > 1 or tag['interface'] == self.fallback_interface)
@template_expander.use_jinja("templates/ElementTypeHelpers.h.tmpl", filters=filters)
@template_expander.use_jinja("templates/element_type_helpers.h.tmpl", filters=filters)
def generate_helper_header(self):
return self._template_context
@template_expander.use_jinja("templates/ElementTypeHelpers.cpp.tmpl", filters=filters)
@template_expander.use_jinja("templates/element_type_helpers.cc.tmpl", filters=filters)
def generate_helper_implementation(self):
return self._template_context
......
......@@ -54,8 +54,8 @@ make_element_factory_files =
make_element_type_helpers_files =
make_qualified_names_files + [
"$_scripts_dir/make_element_type_helpers.py",
"$_scripts_dir/templates/ElementTypeHelpers.cpp.tmpl",
"$_scripts_dir/templates/ElementTypeHelpers.h.tmpl",
"$_scripts_dir/templates/element_type_helpers.cc.tmpl",
"$_scripts_dir/templates/element_type_helpers.h.tmpl",
]
make_trie_helpers_files =
......
......@@ -3,7 +3,7 @@
{{source_files_for_generated_file(template_file, input_files)}}
#include "{{namespace}}ElementTypeHelpers.h"
#include "core/{{namespace|lower}}_element_type_helpers.h"
#include "core/dom/Document.h"
#include "platform/runtime_enabled_features.h"
......
......@@ -3,8 +3,8 @@
{{source_files_for_generated_file(template_file, input_files)}}
#ifndef {{namespace}}ElementTypeHelpers_h
#define {{namespace}}ElementTypeHelpers_h
#ifndef BLINK_CORE_{{namespace|upper}}_ELEMENT_TYPE_HELPERS_H_
#define BLINK_CORE_{{namespace|upper}}_ELEMENT_TYPE_HELPERS_H_
#include "{{base_element_header}}"
#include "core/{{namespace|lower}}_names.h"
......
......@@ -862,8 +862,8 @@ process_json5_files("make_core_generated_html_element_type_helpers") {
in_files = [ "html/HTMLTagNames.json5" ]
other_inputs = make_element_type_helpers_files
outputs = [
"$blink_core_output_dir/HTMLElementTypeHelpers.cpp",
"$blink_core_output_dir/HTMLElementTypeHelpers.h",
"$blink_core_output_dir/html_element_type_helpers.cc",
"$blink_core_output_dir/html_element_type_helpers.h",
]
}
......@@ -889,7 +889,7 @@ process_json5_files("make_core_generated_svg_element_type_helpers") {
in_files = [ "svg/SVGTagNames.json5" ]
other_inputs = make_element_type_helpers_files
outputs = [
"$blink_core_output_dir/SVGElementTypeHelpers.h",
"$blink_core_output_dir/svg_element_type_helpers.h",
]
}
......
......@@ -29,9 +29,9 @@
#include "core/dom/AXObjectCache.h"
#include <memory>
#include "core/HTMLElementTypeHelpers.h"
#include "core/dom/Element.h"
#include "core/dom/Node.h"
#include "core/html_element_type_helpers.h"
#include "platform/wtf/Assertions.h"
#include "platform/wtf/HashSet.h"
#include "platform/wtf/PtrUtil.h"
......
......@@ -40,7 +40,6 @@
#include "bindings/core/v8/WindowProxy.h"
#include "bindings/core/v8/html_script_element_or_svg_script_element.h"
#include "bindings/core/v8/string_or_dictionary.h"
#include "core/HTMLElementTypeHelpers.h"
#include "core/animation/DocumentAnimations.h"
#include "core/animation/DocumentTimeline.h"
#include "core/animation/PendingAnimations.h"
......@@ -168,6 +167,7 @@
#include "core/html/parser/NestingLevelIncrementer.h"
#include "core/html/parser/TextResourceDecoder.h"
#include "core/html_element_factory.h"
#include "core/html_element_type_helpers.h"
#include "core/html_names.h"
#include "core/input/EventHandler.h"
#include "core/input/TouchList.h"
......
......@@ -31,11 +31,11 @@
#include <functional>
#include <list>
#include <memory>
#include "core/HTMLElementTypeHelpers.h"
#include "core/dom/Element.h"
#include "core/dom/NodeTraversal.h"
#include "core/frame/FrameTestHelpers.h"
#include "core/frame/WebLocalFrameImpl.h"
#include "core/html_element_type_helpers.h"
#include "platform/testing/URLTestHelpers.h"
#include "platform/testing/UnitTestHelpers.h"
#include "platform/wtf/PtrUtil.h"
......
......@@ -29,7 +29,6 @@
#include "core/fullscreen/Fullscreen.h"
#include "core/HTMLElementTypeHelpers.h"
#include "core/css/StyleEngine.h"
#include "core/dom/Document.h"
#include "core/dom/ElementTraversal.h"
......@@ -42,6 +41,7 @@
#include "core/frame/Settings.h"
#include "core/frame/UseCounter.h"
#include "core/html/HTMLIFrameElement.h"
#include "core/html_element_type_helpers.h"
#include "core/input/EventHandler.h"
#include "core/inspector/ConsoleMessage.h"
#include "core/layout/LayoutBlockFlow.h"
......
......@@ -249,6 +249,6 @@ class HasHTMLTagName {
} // namespace blink
#include "core/HTMLElementTypeHelpers.h"
#include "core/html_element_type_helpers.h"
#endif // HTMLElement_h
......@@ -4,7 +4,6 @@
#include "core/html/custom/CustomElement.h"
#include "core/HTMLElementTypeHelpers.h"
#include "core/dom/Document.h"
#include "core/dom/QualifiedName.h"
#include "core/frame/LocalDOMWindow.h"
......@@ -17,6 +16,7 @@
#include "core/html/custom/V0CustomElement.h"
#include "core/html/custom/V0CustomElementRegistrationContext.h"
#include "core/html_element_factory.h"
#include "core/html_element_type_helpers.h"
#include "platform/wtf/text/AtomicStringHash.h"
namespace blink {
......
......@@ -8,7 +8,6 @@
#include "bindings/core/v8/ScriptCustomElementDefinitionBuilder.h"
#include "bindings/core/v8/ScriptPromise.h"
#include "bindings/core/v8/ScriptPromiseResolver.h"
#include "core/HTMLElementTypeHelpers.h"
#include "core/dom/Document.h"
#include "core/dom/Element.h"
#include "core/dom/ElementDefinitionOptions.h"
......@@ -23,6 +22,7 @@
#include "core/html/custom/CustomElementUpgradeReaction.h"
#include "core/html/custom/CustomElementUpgradeSorter.h"
#include "core/html/custom/V0CustomElementRegistrationContext.h"
#include "core/html_element_type_helpers.h"
#include "platform/instrumentation/tracing/TraceEvent.h"
#include "platform/wtf/Allocator.h"
......
......@@ -5,7 +5,7 @@
#ifndef GeneratedChildren_h
#define GeneratedChildren_h
#include "core/HTMLElementTypeHelpers.h"
#include "core/html_element_type_helpers.h"
#include "core/layout/LayoutObject.h"
namespace blink {
......
......@@ -345,6 +345,6 @@ inline bool Node::HasTagName(const SVGQualifiedName& name) const {
} // namespace blink
#include "core/SVGElementTypeHelpers.h"
#include "core/svg_element_type_helpers.h"
#endif // SVGElement_h
......@@ -4,9 +4,6 @@
#include "modules/accessibility/AXEnums.h"
#include "core/HTMLElementTypeHelpers.h"
#include "core/dom/Element.h"
#include "core/dom/Node.h"
#include "platform/wtf/Assertions.h"
#include "platform/wtf/HashSet.h"
#include "platform/wtf/text/StringHash.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