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

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

Issue 14211014: Chrome roll. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 8 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/idl/dart/dart.idl ('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 FEATURE_DISABLED = [ 13 FEATURE_DISABLED = [
14 'ENABLE_BATTERY_STATUS', 14 'ENABLE_BATTERY_STATUS',
15 'ENABLE_CSS3_CONDITIONAL_RULES', 15 'ENABLE_CSS3_CONDITIONAL_RULES',
16 'ENABLE_CSS_DEVICE_ADAPTATION', 16 'ENABLE_CSS_DEVICE_ADAPTATION',
17 'ENABLE_CUSTOM_SCHEME_HANDLER', 17 'ENABLE_CUSTOM_SCHEME_HANDLER',
18 'ENABLE_ENCRYPTED_MEDIA_V2', 18 'ENABLE_ENCRYPTED_MEDIA_V2',
19 'ENABLE_MEDIA_CAPTURE', # Only enabled on Android. 19 'ENABLE_MEDIA_CAPTURE', # Only enabled on Android.
20 'ENABLE_MICRODATA',
21 'ENABLE_ORIENTATION_EVENTS', # Only enabled on Android. 20 'ENABLE_ORIENTATION_EVENTS', # Only enabled on Android.
22 'ENABLE_PROXIMITY_EVENTS',
23 'ENABLE_SPEECH_SYNTHESIS', 21 'ENABLE_SPEECH_SYNTHESIS',
24 'ENABLE_WEBVTT_REGIONS', 22 'ENABLE_WEBVTT_REGIONS',
25 'ENABLE_XHR_TIMEOUT', 23 'ENABLE_XHR_TIMEOUT',
26 ] 24 ]
27 25
28 FEATURE_DEFINES = [ 26 FEATURE_DEFINES = [
29 'ENABLE_CALENDAR_PICKER', 27 'ENABLE_CALENDAR_PICKER',
30 'ENABLE_CANVAS_PROXY', 28 'ENABLE_CANVAS_PROXY',
31 'ENABLE_CSS_FILTERS',
32 'ENABLE_CSS_REGIONS', 29 'ENABLE_CSS_REGIONS',
33 'ENABLE_CUSTOM_ELEMENTS', 30 'ENABLE_CUSTOM_ELEMENTS',
34 'ENABLE_DATALIST_ELEMENT', 31 'ENABLE_DATALIST_ELEMENT',
35 'ENABLE_DETAILS_ELEMENT',
36 'ENABLE_DIALOG_ELEMENT', 32 'ENABLE_DIALOG_ELEMENT',
37 'ENABLE_DIRECTORY_UPLOAD',
38 'ENABLE_ENCRYPTED_MEDIA', 33 'ENABLE_ENCRYPTED_MEDIA',
39 'ENABLE_FONT_LOAD_EVENTS', 34 'ENABLE_FONT_LOAD_EVENTS',
40 'ENABLE_GAMEPAD', 35 'ENABLE_GAMEPAD',
41 'ENABLE_INPUT_SPEECH', 36 'ENABLE_INPUT_SPEECH',
42 'ENABLE_LEGACY_NOTIFICATIONS', 37 'ENABLE_LEGACY_NOTIFICATIONS',
43 'ENABLE_MEDIA_STREAM', 38 'ENABLE_MEDIA_STREAM',
44 'ENABLE_NAVIGATOR_CONTENT_UTILS', 39 'ENABLE_NAVIGATOR_CONTENT_UTILS',
45 'ENABLE_NOTIFICATIONS', 40 'ENABLE_NOTIFICATIONS',
46 'ENABLE_PAGE_POPUP', 41 'ENABLE_PAGE_POPUP',
47 'ENABLE_SCRIPTED_SPEECH',
48 'ENABLE_SHARED_WORKERS', 42 'ENABLE_SHARED_WORKERS',
49 'ENABLE_SVG', 43 'ENABLE_SVG',
50 'ENABLE_SVG_FONTS', 44 'ENABLE_SVG_FONTS',
51 'ENABLE_TOUCH_EVENTS',
52 'ENABLE_VIDEO', 45 'ENABLE_VIDEO',
53 'ENABLE_VIDEO_TRACK',
54 'ENABLE_WEB_AUDIO', 46 'ENABLE_WEB_AUDIO',
55 'ENABLE_WEBGL', 47 'ENABLE_WEBGL',
56 'ENABLE_XSLT',
57 ] 48 ]
58 49
59 def build_database(idl_files, database_dir, parallel=False): 50 def build_database(idl_files, database_dir, parallel=False):
60 """This code reconstructs the FremontCut IDL database from W3C, 51 """This code reconstructs the FremontCut IDL database from W3C,
61 WebKit and Dart IDL files.""" 52 WebKit and Dart IDL files."""
62 current_dir = os.path.dirname(__file__) 53 current_dir = os.path.dirname(__file__)
63 logging.config.fileConfig(os.path.join(current_dir, "logging.conf")) 54 logging.config.fileConfig(os.path.join(current_dir, "logging.conf"))
64 55
65 db = database.Database(database_dir) 56 db = database.Database(database_dir)
66 57
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
150 if ext == '.idl': 141 if ext == '.idl':
151 idl_files.append(file_name) 142 idl_files.append(file_name)
152 143
153 os.path.walk(webcore_dir, visitor, webcore_dir) 144 os.path.walk(webcore_dir, visitor, webcore_dir)
154 145
155 database_dir = os.path.join(current_dir, '..', 'database') 146 database_dir = os.path.join(current_dir, '..', 'database')
156 return build_database(idl_files, database_dir, parallel=parallel) 147 return build_database(idl_files, database_dir, parallel=parallel)
157 148
158 if __name__ == '__main__': 149 if __name__ == '__main__':
159 sys.exit(main()) 150 sys.exit(main())
OLDNEW
« no previous file with comments | « tools/dom/idl/dart/dart.idl ('k') | tools/dom/scripts/generator.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698