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

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

Issue 2435973003: [Bindings][Refactoring] Make binding scripts use utilities to handle pickle files (Closed)
Patch Set: Created 4 years, 2 months 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 # Copyright (C) 2013 Google Inc. All rights reserved. 2 # Copyright (C) 2013 Google Inc. All rights reserved.
3 # 3 #
4 # Redistribution and use in source and binary forms, with or without 4 # Redistribution and use in source and binary forms, with or without
5 # modification, are permitted provided that the following conditions are 5 # modification, are permitted provided that the following conditions are
6 # met: 6 # met:
7 # 7 #
8 # * Redistributions of source code must retain the above copyright 8 # * Redistributions of source code must retain the above copyright
9 # notice, this list of conditions and the following disclaimer. 9 # notice, this list of conditions and the following disclaimer.
10 # * Redistributions in binary form must reproduce the above 10 # * Redistributions in binary form must reproduce the above
(...skipping 19 matching lines...) Expand all
30 # pylint: disable=W0403 30 # pylint: disable=W0403
31 31
32 """Compile an .idl file to Blink V8 bindings (.h and .cpp files). 32 """Compile an .idl file to Blink V8 bindings (.h and .cpp files).
33 33
34 Design doc: http://www.chromium.org/developers/design-documents/idl-compiler 34 Design doc: http://www.chromium.org/developers/design-documents/idl-compiler
35 """ 35 """
36 36
37 import abc 37 import abc
38 from optparse import OptionParser 38 from optparse import OptionParser
39 import os 39 import os
40 import cPickle as pickle
41 import sys 40 import sys
42 41
43 from code_generator_v8 import CodeGeneratorDictionaryImpl 42 from code_generator_v8 import CodeGeneratorDictionaryImpl
44 from code_generator_v8 import CodeGeneratorV8 43 from code_generator_v8 import CodeGeneratorV8
45 from code_generator_v8 import CodeGeneratorUnionType 44 from code_generator_v8 import CodeGeneratorUnionType
46 from code_generator_v8 import CodeGeneratorCallbackFunction 45 from code_generator_v8 import CodeGeneratorCallbackFunction
47 from idl_reader import IdlReader 46 from idl_reader import IdlReader
48 from utilities import create_component_info_provider 47 from utilities import create_component_info_provider
49 from utilities import read_idl_files_list_from_file 48 from utilities import read_idl_files_list_from_file
50 from utilities import write_file 49 from utilities import write_file
(...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after
189 input_filename) 188 input_filename)
190 generate_union_type_containers(CodeGeneratorUnionType, options) 189 generate_union_type_containers(CodeGeneratorUnionType, options)
191 generate_callback_function_impl(CodeGeneratorCallbackFunction, options) 190 generate_callback_function_impl(CodeGeneratorCallbackFunction, options)
192 else: 191 else:
193 # |input_filename| should be a path of an IDL file. 192 # |input_filename| should be a path of an IDL file.
194 generate_bindings(CodeGeneratorV8, options, input_filename) 193 generate_bindings(CodeGeneratorV8, options, input_filename)
195 194
196 195
197 if __name__ == '__main__': 196 if __name__ == '__main__':
198 sys.exit(main()) 197 sys.exit(main())
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698