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

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

Issue 721383003: bindings: Retires ScriptWrappableBase mostly. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 1 month 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 | Annotate | Revision Log
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 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
85 import cPickle as pickle 85 import cPickle as pickle
86 import optparse 86 import optparse
87 import sys 87 import sys
88 88
89 from utilities import idl_filename_to_component, read_pickle_files, write_pickle _file 89 from utilities import idl_filename_to_component, read_pickle_files, write_pickle _file
90 90
91 INHERITED_EXTENDED_ATTRIBUTES = set([ 91 INHERITED_EXTENDED_ATTRIBUTES = set([
92 'ActiveDOMObject', 92 'ActiveDOMObject',
93 'DependentLifetime', 93 'DependentLifetime',
94 'GarbageCollected', 94 'GarbageCollected',
95 'NotScriptWrappable',
96 'WillBeGarbageCollected', 95 'WillBeGarbageCollected',
97 ]) 96 ])
98 97
99 # Main variable (filled in and exported) 98 # Main variable (filled in and exported)
100 interfaces_info = {} 99 interfaces_info = {}
101 100
102 # Auxiliary variables (not visible to future build steps) 101 # Auxiliary variables (not visible to future build steps)
103 partial_interface_files = defaultdict(lambda: { 102 partial_interface_files = defaultdict(lambda: {
104 'full_paths': [], 103 'full_paths': [],
105 'include_paths': [], 104 'include_paths': [],
(...skipping 224 matching lines...) Expand 10 before | Expand all | Expand 10 after
330 info_individuals = read_pickle_files(args) 329 info_individuals = read_pickle_files(args)
331 330
332 compute_interfaces_info_overall(info_individuals) 331 compute_interfaces_info_overall(info_individuals)
333 write_pickle_file(interfaces_info_filename, 332 write_pickle_file(interfaces_info_filename,
334 interfaces_info, 333 interfaces_info,
335 options.write_file_only_if_changed) 334 options.write_file_only_if_changed)
336 335
337 336
338 if __name__ == '__main__': 337 if __name__ == '__main__':
339 sys.exit(main()) 338 sys.exit(main())
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698