Chromium Code Reviews| Index: Source/bindings/scripts/compute_interfaces_info.py |
| diff --git a/Source/bindings/scripts/compute_interfaces_info.py b/Source/bindings/scripts/compute_interfaces_info.py |
| index 82c236cebf9e458f3d514024effa1c3454848389..6c4e7eaddd9651013f71c070481f863e4ae62486 100755 |
| --- a/Source/bindings/scripts/compute_interfaces_info.py |
| +++ b/Source/bindings/scripts/compute_interfaces_info.py |
| @@ -82,7 +82,7 @@ import os |
| import posixpath |
| import sys |
| -from utilities import get_file_contents, write_pickle_file, get_interface_extended_attributes_from_idl, is_callback_interface_from_idl, get_partial_interface_name_from_idl, get_implemented_interfaces_from_idl, get_parent_interface, get_put_forward_interfaces_from_idl |
| +from utilities import get_file_contents, write_pickle_file, get_interface_extended_attributes_from_idl, is_callback_interface_from_idl, get_partial_interface_name_from_idl, get_right_or_left_interfaces_of_implements_from_idl, get_parent_interface, get_put_forward_interfaces_from_idl |
| module_path = os.path.dirname(__file__) |
| source_path = os.path.normpath(os.path.join(module_path, os.pardir, os.pardir)) |
| @@ -176,7 +176,7 @@ def compute_individual_info(idl_filename): |
| interfaces_info[interface_name] = { |
| 'full_path': full_path, |
| 'implemented_as': implemented_as, |
| - 'implements_interfaces': get_implemented_interfaces_from_idl(idl_file_contents, interface_name), |
| + 'implements_interfaces': get_right_or_left_interfaces_of_implements_from_idl(idl_file_contents, interface_name, True), |
|
Inactive
2014/05/07 21:10:09
[v[1] for v in implements_statements]
c.shu
2014/05/07 21:42:00
Done.
|
| 'include_path': this_include_path, |
| # FIXME: temporary private field, while removing old treatement of |
| # 'implements': http://crbug.com/360435 |
| @@ -191,6 +191,11 @@ def compute_individual_info(idl_filename): |
| 'referenced_interfaces': get_put_forward_interfaces_from_idl(idl_file_contents), |
| } |
| + left_implements_interfaces = get_right_or_left_interfaces_of_implements_from_idl(idl_file_contents, interface_name, False) |
|
Inactive
2014/05/07 21:10:09
Gosh, terribly long function name and an obscure b
c.shu
2014/05/07 21:42:00
Done.
|
| + for left_interface_name in left_implements_interfaces: |
| + interface_info = interfaces_info[left_interface_name] |
| + interface_info['implements_interfaces'].append(interface_name) |
| + |
| # Record inheritance information |
| inherited_extended_attributes_by_interface[interface_name] = dict( |
| (key, value) |