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

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

Issue 19789017: Regenerate dart:html from new Blink IDL files (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: More fixes Created 7 years, 4 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 | Annotate | Revision Log
« no previous file with comments | « tools/dom/scripts/dartmetadata.py ('k') | tools/dom/scripts/generator.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 import database 6 import database
7 import databasebuilder 7 import databasebuilder
8 import idlparser 8 import idlparser
9 import logging.config 9 import logging.config
10 import os.path 10 import os.path
11 import sys 11 import sys
12 12
13 _logger = logging.getLogger('fremontcutbuilder') 13 _logger = logging.getLogger('fremontcutbuilder')
14 14
15 # See: 15 # See:
16 # http://src.chromium.org/viewvc/multivm/trunk/webkit/Source/core/features.gypi 16 # http://src.chromium.org/viewvc/multivm/trunk/webkit/Source/core/features.gypi
17 # for ENABLE_* flags defined in Chromium / Blink. 17 # for ENABLE_* flags defined in Chromium / Blink.
18 # We list all ENABLE flags used in IDL in one of these two lists. 18 # We list all ENABLE flags used in IDL in one of these two lists.
19 FEATURE_DISABLED = [ 19 FEATURE_DISABLED = [
20 'ENABLE_BATTERY_STATUS',
21 'ENABLE_CSS_DEVICE_ADAPTATION',
22 'ENABLE_CUSTOM_SCHEME_HANDLER', 20 'ENABLE_CUSTOM_SCHEME_HANDLER',
23 'ENABLE_MEDIA_CAPTURE', # Only enabled on Android. 21 'ENABLE_MEDIA_CAPTURE', # Only enabled on Android.
24 'ENABLE_ORIENTATION_EVENTS', # Only enabled on Android. 22 'ENABLE_ORIENTATION_EVENTS', # Only enabled on Android.
25 'ENABLE_WEBVTT_REGIONS', 23 'ENABLE_WEBVTT_REGIONS',
26 'ENABLE_XHR_TIMEOUT',
27 ] 24 ]
28 25
29 FEATURE_DEFINES = [ 26 FEATURE_DEFINES = [
30 'ENABLE_CALENDAR_PICKER', # Not on Android 27 'ENABLE_CALENDAR_PICKER', # Not on Android
31 'ENABLE_ENCRYPTED_MEDIA_V2', 28 'ENABLE_ENCRYPTED_MEDIA_V2',
32 'ENABLE_INPUT_SPEECH', # Not on Android 29 'ENABLE_INPUT_SPEECH', # Not on Android
33 'ENABLE_LEGACY_NOTIFICATIONS', # Not on Android 30 'ENABLE_LEGACY_NOTIFICATIONS', # Not on Android
34 'ENABLE_NAVIGATOR_CONTENT_UTILS', # Not on Android 31 'ENABLE_NAVIGATOR_CONTENT_UTILS', # Not on Android
35 'ENABLE_NOTIFICATIONS', # Not on Android 32 'ENABLE_NOTIFICATIONS', # Not on Android
36 'ENABLE_SVG_FONTS', 33 'ENABLE_SVG_FONTS',
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after
144 if ext == '.idl': 141 if ext == '.idl':
145 idl_files.append(file_name) 142 idl_files.append(file_name)
146 143
147 os.path.walk(webcore_dir, visitor, webcore_dir) 144 os.path.walk(webcore_dir, visitor, webcore_dir)
148 145
149 database_dir = os.path.join(current_dir, '..', 'database') 146 database_dir = os.path.join(current_dir, '..', 'database')
150 return build_database(idl_files, database_dir, parallel=parallel) 147 return build_database(idl_files, database_dir, parallel=parallel)
151 148
152 if __name__ == '__main__': 149 if __name__ == '__main__':
153 sys.exit(main()) 150 sys.exit(main())
OLDNEW
« no previous file with comments | « tools/dom/scripts/dartmetadata.py ('k') | tools/dom/scripts/generator.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698