Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(50)

Side by Side Diff: third_party/WebKit/Source/bindings/scripts/compute_interfaces_info_overall.py

Issue 2571063002: Remove Blink-in-JS (Closed)
Patch Set: Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 242 matching lines...) Expand 10 before | Expand all | Expand 10 after
253 raise IdlInterfaceFileNotFoundError('Could not find the IDL file whe re the following implemented interface is defined: %s' % key_name) 253 raise IdlInterfaceFileNotFoundError('Could not find the IDL file whe re the following implemented interface is defined: %s' % key_name)
254 implemented_interfaces_full_paths = [ 254 implemented_interfaces_full_paths = [
255 implemented_interface_info['full_path'] 255 implemented_interface_info['full_path']
256 for implemented_interface_info in implemented_interfaces_info] 256 for implemented_interface_info in implemented_interfaces_info]
257 # Implemented interfaces don't need includes, as this is handled in 257 # Implemented interfaces don't need includes, as this is handled in
258 # the Blink implementation (they are implemented on |impl| itself, 258 # the Blink implementation (they are implemented on |impl| itself,
259 # hence header is included in implementing class). 259 # hence header is included in implementing class).
260 # However, they are needed for legacy implemented interfaces that 260 # However, they are needed for legacy implemented interfaces that
261 # are being treated as partial interfaces, until we remove these. 261 # are being treated as partial interfaces, until we remove these.
262 # http://crbug.com/360435 262 # http://crbug.com/360435
263 implemented_interfaces_include_paths = [] 263 implemented_interfaces_include_paths = [
264 for implemented_interface_info in implemented_interfaces_info: 264 implemented_interface_info['include_path']
265 if (implemented_interface_info['is_legacy_treat_as_partial_interface '] and 265 for implemented_interface_info in implemented_interfaces_info
266 implemented_interface_info['include_path']): 266 if implemented_interface_info['is_legacy_treat_as_partial_interface' ]]
267 implemented_interfaces_include_paths.append(
268 implemented_interface_info['include_path'])
269 267
270 dependencies_full_paths = implemented_interfaces_full_paths 268 dependencies_full_paths = implemented_interfaces_full_paths
271 dependencies_include_paths = implemented_interfaces_include_paths 269 dependencies_include_paths = implemented_interfaces_include_paths
272 dependencies_other_component_full_paths = [] 270 dependencies_other_component_full_paths = []
273 dependencies_other_component_include_paths = [] 271 dependencies_other_component_include_paths = []
274 272
275 component = idl_filename_to_component(interface_info['full_path']) 273 component = idl_filename_to_component(interface_info['full_path'])
276 for full_path in partial_interfaces_full_paths: 274 for full_path in partial_interfaces_full_paths:
277 partial_interface_component = idl_filename_to_component(full_path) 275 partial_interface_component = idl_filename_to_component(full_path)
278 if component == partial_interface_component: 276 if component == partial_interface_component:
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
319 # args = Input1, Input2, ..., Output 317 # args = Input1, Input2, ..., Output
320 interfaces_info_filename = args.pop() 318 interfaces_info_filename = args.pop()
321 info_individuals = read_pickle_files(args) 319 info_individuals = read_pickle_files(args)
322 320
323 compute_interfaces_info_overall(info_individuals) 321 compute_interfaces_info_overall(info_individuals)
324 write_pickle_file(interfaces_info_filename, interfaces_info) 322 write_pickle_file(interfaces_info_filename, interfaces_info)
325 323
326 324
327 if __name__ == '__main__': 325 if __name__ == '__main__':
328 sys.exit(main()) 326 sys.exit(main())
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698