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

Side by Side Diff: tools/dom/scripts/dartdomgenerator.py

Issue 1720743005: Generation of sdk/lib files from 45 roll (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Merged with TOT Created 4 years, 10 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
« no previous file with comments | « tools/deps/dartium.deps/DEPS ('k') | tools/dom/scripts/dartgenerator.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #!/usr/bin/python 1 #!/usr/bin/python
2 # Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file 2 # Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
3 # for details. All rights reserved. Use of this source code is governed by a 3 # for details. All rights reserved. Use of this source code is governed by a
4 # BSD-style license that can be found in the LICENSE file. 4 # BSD-style license that can be found in the LICENSE file.
5 5
6 """This is the entry point to create Dart APIs from the IDL database.""" 6 """This is the entry point to create Dart APIs from the IDL database."""
7 7
8 import css_code_generator 8 import css_code_generator
9 import os 9 import os
10 import sys 10 import sys
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
99 generator.FilterMembersWithUnidentifiedTypes(common_database) 99 generator.FilterMembersWithUnidentifiedTypes(common_database)
100 webkit_database = common_database.Clone() 100 webkit_database = common_database.Clone()
101 101
102 # Generate Dart interfaces for the WebKit DOM. 102 # Generate Dart interfaces for the WebKit DOM.
103 generator.FilterInterfaces(database = webkit_database, 103 generator.FilterInterfaces(database = webkit_database,
104 or_annotations = ['WebKit', 'Dart'], 104 or_annotations = ['WebKit', 'Dart'],
105 exclude_displaced = ['WebKit'], 105 exclude_displaced = ['WebKit'],
106 exclude_suppressed = ['WebKit', 'Dart']) 106 exclude_suppressed = ['WebKit', 'Dart'])
107 generator.FixEventTargets(webkit_database) 107 generator.FixEventTargets(webkit_database)
108 generator.AddMissingArguments(webkit_database) 108 generator.AddMissingArguments(webkit_database)
109 generator.HackCleanupTimers(webkit_database)
109 110
110 emitters = multiemitter.MultiEmitter(logging_level) 111 emitters = multiemitter.MultiEmitter(logging_level)
111 metadata = DartMetadata( 112 metadata = DartMetadata(
112 os.path.join(current_dir, '..', 'dom.json'), 113 os.path.join(current_dir, '..', 'dom.json'),
113 os.path.join(current_dir, '..', 'docs', 'docs.json'), 114 os.path.join(current_dir, '..', 'docs', 'docs.json'),
114 logging_level) 115 logging_level)
115 renamer = HtmlRenamer(webkit_database, metadata) 116 renamer = HtmlRenamer(webkit_database, metadata)
116 type_registry = TypeRegistry(webkit_database, renamer) 117 type_registry = TypeRegistry(webkit_database, renamer)
117 118
118 print 'GenerateFromDatabase %s seconds' % round((time.time() - start_time), 2) 119 print 'GenerateFromDatabase %s seconds' % round((time.time() - start_time), 2)
(...skipping 208 matching lines...) Expand 10 before | Expand all | Expand 10 after
327 os.path.join('..', '..', '..', 'sdk', 'lib', '_blink', 'dartium')) 328 os.path.join('..', '..', '..', 'sdk', 'lib', '_blink', 'dartium'))
328 329
329 print '\nGenerating single file %s seconds' % round(time.time() - file_generat ion_start_time, 2) 330 print '\nGenerating single file %s seconds' % round(time.time() - file_generat ion_start_time, 2)
330 331
331 end_time = time.time() 332 end_time = time.time()
332 333
333 print '\nDone (dartdomgenerator) %s seconds' % round(end_time - start_time, 2) 334 print '\nDone (dartdomgenerator) %s seconds' % round(end_time - start_time, 2)
334 335
335 if __name__ == '__main__': 336 if __name__ == '__main__':
336 sys.exit(main()) 337 sys.exit(main())
OLDNEW
« no previous file with comments | « tools/deps/dartium.deps/DEPS ('k') | tools/dom/scripts/dartgenerator.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698