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

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

Issue 1754523006: Beginning fix for KeyEvent,KeyboardEvent and UIEvent changes in roll 45 (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Merged Created 4 years, 9 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 | « sdk/lib/html/dartium/html_dartium.dart ('k') | tools/dom/scripts/htmlrenamer.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 14 matching lines...) Expand all
25 # If ply directory found then we're a Dart enlistment; third_party location 25 # If ply directory found then we're a Dart enlistment; third_party location
26 # is dart-git/dart/third_party 26 # is dart-git/dart/third_party
27 if not os.path.exists(ply_dir): 27 if not os.path.exists(ply_dir):
28 # For Dartium (ply directory is dartium-git/src/third_party/ply) third_party 28 # For Dartium (ply directory is dartium-git/src/third_party/ply) third_party
29 # location is dartium-git/src/third_party 29 # location is dartium-git/src/third_party
30 third_party_dir = os.path.join(dart_dir, '..', 'third_party') 30 third_party_dir = os.path.join(dart_dir, '..', 'third_party')
31 assert(os.path.exists(third_party_dir)) 31 assert(os.path.exists(third_party_dir))
32 else: 32 else:
33 # It's Dart we need to make sure that tools in injected in our search path 33 # It's Dart we need to make sure that tools in injected in our search path
34 # because this is where idl_parser is located for a Dart enlistment. Dartium 34 # because this is where idl_parser is located for a Dart enlistment. Dartium
35 # can firgure out the tools directory because of the location of where the 35 # can figure out the tools directory because of the location of where the
36 # scripts blink scripts are located. 36 # scripts blink scripts are located.
37 tools_dir = os.path.join(dart_dir, 'tools') 37 tools_dir = os.path.join(dart_dir, 'tools')
38 sys.path.insert(1, tools_dir) 38 sys.path.insert(1, tools_dir)
39 39
40 sys.path.insert(1, third_party_dir) 40 sys.path.insert(1, third_party_dir)
41 41
42 sys.path.insert(1, os.path.join(dart_dir, 'tools/dom/scripts')) 42 sys.path.insert(1, os.path.join(dart_dir, 'tools/dom/scripts'))
43 43
44 import dartgenerator 44 import dartgenerator
45 import database 45 import database
(...skipping 290 matching lines...) Expand 10 before | Expand all | Expand 10 after
336 os.path.join('..', '..', '..', 'sdk', 'lib', '_blink', 'dartium')) 336 os.path.join('..', '..', '..', 'sdk', 'lib', '_blink', 'dartium'))
337 337
338 print '\nGenerating single file %s seconds' % round(time.time() - file_generat ion_start_time, 2) 338 print '\nGenerating single file %s seconds' % round(time.time() - file_generat ion_start_time, 2)
339 339
340 end_time = time.time() 340 end_time = time.time()
341 341
342 print '\nDone (dartdomgenerator) %s seconds' % round(end_time - start_time, 2) 342 print '\nDone (dartdomgenerator) %s seconds' % round(end_time - start_time, 2)
343 343
344 if __name__ == '__main__': 344 if __name__ == '__main__':
345 sys.exit(main()) 345 sys.exit(main())
OLDNEW
« no previous file with comments | « sdk/lib/html/dartium/html_dartium.dart ('k') | tools/dom/scripts/htmlrenamer.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698