| Index: third_party/WebKit/Source/bindings/scripts/compute_interfaces_info_individual.py
|
| diff --git a/third_party/WebKit/Source/bindings/scripts/compute_interfaces_info_individual.py b/third_party/WebKit/Source/bindings/scripts/compute_interfaces_info_individual.py
|
| index 26af9fe7d95e27b252ed5da3649fe1f0ab22a212..971290d8ae94df0f64f42be259f5c622b8e967ee 100755
|
| --- a/third_party/WebKit/Source/bindings/scripts/compute_interfaces_info_individual.py
|
| +++ b/third_party/WebKit/Source/bindings/scripts/compute_interfaces_info_individual.py
|
| @@ -50,7 +50,7 @@ import sys
|
| from idl_compiler import idl_filename_to_interface_name
|
| from idl_definitions import Visitor
|
| from idl_reader import IdlReader
|
| -from utilities import get_file_contents, read_file_to_list, idl_filename_to_interface_name, idl_filename_to_component, write_pickle_file, get_interface_extended_attributes_from_idl, is_callback_interface_from_idl, merge_dict_recursively
|
| +from utilities import get_file_contents, read_file_to_list, idl_filename_to_interface_name, idl_filename_to_component, write_pickle_file, get_interface_extended_attributes_from_idl, is_callback_interface_from_idl, merge_dict_recursively, shorten_union_name
|
|
|
| module_path = os.path.dirname(__file__)
|
| source_path = os.path.normpath(os.path.join(module_path, os.pardir, os.pardir))
|
| @@ -266,9 +266,10 @@ class InterfaceInfoCollector(object):
|
| partial_include_paths = []
|
| if this_include_path:
|
| partial_include_paths.append(this_include_path)
|
| - if this_union_types:
|
| + for union_type in this_union_types:
|
| + name = shorten_union_name(union_type)
|
| partial_include_paths.append(
|
| - 'bindings/%s/v8/UnionTypes%s.h' % (component, component.capitalize()))
|
| + 'bindings/%s/v8/%s.h' % (component, name))
|
| self.add_paths_to_partials_dict(definition.name, full_path, partial_include_paths)
|
| # Collects C++ header paths which should be included from generated
|
| # .cpp files. The resulting structure is as follows.
|
| @@ -295,7 +296,7 @@ class InterfaceInfoCollector(object):
|
| interface_info.update({
|
| 'extended_attributes': extended_attributes,
|
| 'full_path': full_path,
|
| - 'has_union_types': bool(this_union_types),
|
| + 'union_types': this_union_types,
|
| 'implemented_as': implemented_as,
|
| 'implemented_by_interfaces': left_interfaces,
|
| 'implements_interfaces': right_interfaces,
|
|
|