| OLD | NEW |
| 1 #!/usr/bin/python | 1 #!/usr/bin/python |
| 2 # | 2 # |
| 3 # Copyright (C) 2013 Google Inc. All rights reserved. | 3 # Copyright (C) 2013 Google Inc. All rights reserved. |
| 4 # | 4 # |
| 5 # Redistribution and use in source and binary forms, with or without | 5 # Redistribution and use in source and binary forms, with or without |
| 6 # modification, are permitted provided that the following conditions are | 6 # modification, are permitted provided that the following conditions are |
| 7 # met: | 7 # met: |
| 8 # | 8 # |
| 9 # * Redistributions of source code must retain the above copyright | 9 # * Redistributions of source code must retain the above copyright |
| 10 # notice, this list of conditions and the following disclaimer. | 10 # notice, this list of conditions and the following disclaimer. |
| (...skipping 251 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 262 | 262 |
| 263 # Remember [Unforgeable] attributes. | 263 # Remember [Unforgeable] attributes. |
| 264 if definitions.interfaces: | 264 if definitions.interfaces: |
| 265 merge_dict_recursively(self.interfaces_info[definition.name], | 265 merge_dict_recursively(self.interfaces_info[definition.name], |
| 266 collect_unforgeable_attributes(definition, id
l_filename)) | 266 collect_unforgeable_attributes(definition, id
l_filename)) |
| 267 | 267 |
| 268 component = idl_filename_to_component(idl_filename) | 268 component = idl_filename_to_component(idl_filename) |
| 269 extended_attributes = definition.extended_attributes | 269 extended_attributes = definition.extended_attributes |
| 270 implemented_as = extended_attributes.get('ImplementedAs') | 270 implemented_as = extended_attributes.get('ImplementedAs') |
| 271 full_path = os.path.realpath(idl_filename) | 271 full_path = os.path.realpath(idl_filename) |
| 272 this_include_path = None if 'NoImplHeader' in extended_attributes else i
nclude_path(idl_filename, implemented_as) | 272 this_include_path = include_path(idl_filename, implemented_as) |
| 273 if definition.is_partial: | 273 if definition.is_partial: |
| 274 # We don't create interface_info for partial interfaces, but | 274 # We don't create interface_info for partial interfaces, but |
| 275 # adds paths to another dict. | 275 # adds paths to another dict. |
| 276 partial_include_paths = [] | 276 partial_include_paths = [] |
| 277 if this_include_path: | 277 if this_include_path: |
| 278 partial_include_paths.append(this_include_path) | 278 partial_include_paths.append(this_include_path) |
| 279 for union_type in this_union_types: | 279 for union_type in this_union_types: |
| 280 name = shorten_union_name(union_type) | 280 name = shorten_union_name(union_type) |
| 281 partial_include_paths.append( | 281 partial_include_paths.append( |
| 282 'bindings/%s/v8/%s.h' % (component, name)) | 282 'bindings/%s/v8/%s.h' % (component, name)) |
| (...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 354 for idl_filename in idl_files: | 354 for idl_filename in idl_files: |
| 355 info_collector.collect_info(idl_filename) | 355 info_collector.collect_info(idl_filename) |
| 356 | 356 |
| 357 write_pickle_file(options.interfaces_info_file, | 357 write_pickle_file(options.interfaces_info_file, |
| 358 info_collector.get_info_as_dict()) | 358 info_collector.get_info_as_dict()) |
| 359 write_pickle_file(options.component_info_file, | 359 write_pickle_file(options.component_info_file, |
| 360 info_collector.get_component_info_as_dict()) | 360 info_collector.get_component_info_as_dict()) |
| 361 | 361 |
| 362 if __name__ == '__main__': | 362 if __name__ == '__main__': |
| 363 sys.exit(main()) | 363 sys.exit(main()) |
| OLD | NEW |