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

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

Issue 10035039: Update fremontcut with current chrome feature defines (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Add battery APIs Created 8 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 | « lib/dom/frog/dom_frog.dart ('k') | lib/dom/scripts/systemhtml.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 # TODO(antonm): most probably should go away or be autogenerated on IDLs roll. 13 # TODO(antonm): most probably should go away or be autogenerated on IDLs roll.
14 DEFAULT_FEATURE_DEFINES = [ 14 DEFAULT_FEATURE_DEFINES = [
15 # Enabled Chrome WebKit build. 15 # Enabled Chrome WebKit build.
16 'ENABLE_3D_PLUGIN', 16 'ENABLE_3D_PLUGIN',
17 'ENABLE_3D_RENDERING', 17 'ENABLE_3D_RENDERING',
18 'ENABLE_ACCELERATED_2D_CANVAS', 18 'ENABLE_ACCELERATED_2D_CANVAS',
19 'ENABLE_BATTERY_STATUS', 19 'ENABLE_BATTERY_STATUS',
20 'ENABLE_BLOB', 20 'ENABLE_BLOB',
21 'ENABLE_BLOB_SLICE', 21 'ENABLE_BLOB_SLICE',
22 'ENABLE_CALENDAR_PICKER', 22 'ENABLE_CALENDAR_PICKER',
23 'ENABLE_CHANNEL_MESSAGING', 23 'ENABLE_CHANNEL_MESSAGING',
24 'ENABLE_CSS_FILTERS', 24 'ENABLE_CSS_FILTERS',
25 'ENABLE_CSS_IMAGE_SET',
25 'ENABLE_CSS_SHADERS', 26 'ENABLE_CSS_SHADERS',
27 'ENABLE_DART',
26 'ENABLE_DATA_TRANSFER_ITEMS', 28 'ENABLE_DATA_TRANSFER_ITEMS',
27 'ENABLE_DETAILS', 29 'ENABLE_DETAILS',
28 'ENABLE_DEVICE_ORIENTATION', 30 'ENABLE_DEVICE_ORIENTATION',
29 'ENABLE_DIRECTORY_UPLOAD', 31 'ENABLE_DIRECTORY_UPLOAD',
30 'ENABLE_DOWNLOAD_ATTRIBUTE', 32 'ENABLE_DOWNLOAD_ATTRIBUTE',
33 'ENABLE_ENCRYPTED_MEDIA',
31 'ENABLE_FILE_SYSTEM', 34 'ENABLE_FILE_SYSTEM',
32 'ENABLE_FILTERS', 35 'ENABLE_FILTERS',
33 'ENABLE_FULLSCREEN_API', 36 'ENABLE_FULLSCREEN_API',
34 'ENABLE_GAMEPAD', 37 'ENABLE_GAMEPAD',
35 'ENABLE_GEOLOCATION', 38 'ENABLE_GEOLOCATION',
36 'ENABLE_GESTURE_EVENTS', 39 'ENABLE_GESTURE_EVENTS',
37 'ENABLE_INDEXED_DATABASE', 40 'ENABLE_INDEXED_DATABASE',
38 'ENABLE_INPUT_SPEECH', 41 'ENABLE_INPUT_SPEECH',
39 'ENABLE_INPUT_TYPE_COLOR', 42 'ENABLE_INPUT_TYPE_COLOR',
43 'ENABLE_INPUT_TYPE_DATE',
40 'ENABLE_JAVASCRIPT_DEBUGGER', 44 'ENABLE_JAVASCRIPT_DEBUGGER',
41 'ENABLE_JAVASCRIPT_I18N_API', 45 'ENABLE_JAVASCRIPT_I18N_API',
42 'ENABLE_LEGACY_NOTIFICATIONS', 46 'ENABLE_LEGACY_NOTIFICATIONS',
43 'ENABLE_LINK_PREFETCH', 47 'ENABLE_LINK_PREFETCH',
44 'ENABLE_MEDIA_SOURCE', 48 'ENABLE_MEDIA_SOURCE',
45 'ENABLE_MEDIA_STATISTICS', 49 'ENABLE_MEDIA_STATISTICS',
46 'ENABLE_MEDIA_STREAM', 50 'ENABLE_MEDIA_STREAM',
47 'ENABLE_METER_TAG', 51 'ENABLE_METER_TAG',
48 'ENABLE_MHTML', 52 'ENABLE_MHTML',
49 'ENABLE_MUTATION_OBSERVERS', 53 'ENABLE_MUTATION_OBSERVERS',
(...skipping 13 matching lines...) Expand all
63 'ENABLE_SHARED_WORKERS', 67 'ENABLE_SHARED_WORKERS',
64 'ENABLE_SMOOTH_SCROLLING', 68 'ENABLE_SMOOTH_SCROLLING',
65 'ENABLE_SQL_DATABASE', 69 'ENABLE_SQL_DATABASE',
66 'ENABLE_STYLE_SCOPED', 70 'ENABLE_STYLE_SCOPED',
67 'ENABLE_SVG', 71 'ENABLE_SVG',
68 'ENABLE_SVG_FONTS', 72 'ENABLE_SVG_FONTS',
69 'ENABLE_TOUCH_EVENTS', 73 'ENABLE_TOUCH_EVENTS',
70 'ENABLE_V8_SCRIPT_DEBUG_SERVER', 74 'ENABLE_V8_SCRIPT_DEBUG_SERVER',
71 'ENABLE_VIDEO', 75 'ENABLE_VIDEO',
72 'ENABLE_VIDEO_TRACK', 76 'ENABLE_VIDEO_TRACK',
77 'ENABLE_VIEWPORT',
73 'ENABLE_WEBGL', 78 'ENABLE_WEBGL',
74 'ENABLE_WEB_AUDIO', 79 'ENABLE_WEB_AUDIO',
75 'ENABLE_WEB_INTENTS', 80 'ENABLE_WEB_INTENTS',
76 'ENABLE_WEB_SOCKETS', 81 'ENABLE_WEB_SOCKETS',
77 'ENABLE_WEB_TIMING', 82 'ENABLE_WEB_TIMING',
78 'ENABLE_WORKERS', 83 'ENABLE_WORKERS',
79 'ENABLE_XHR_RESPONSE_BLOB', 84 'ENABLE_XHR_RESPONSE_BLOB',
80 'ENABLE_XSLT', 85 'ENABLE_XSLT',
81 ] 86 ]
82 87
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
150 155
151 # Cleanup: 156 # Cleanup:
152 builder.normalize_annotations(['WebKit', 'Dart']) 157 builder.normalize_annotations(['WebKit', 'Dart'])
153 158
154 db.Save() 159 db.Save()
155 160
156 def main(): 161 def main():
157 current_dir = os.path.dirname(__file__) 162 current_dir = os.path.dirname(__file__)
158 163
159 webkit_dirs = [ 164 webkit_dirs = [
160 'Modules/speech',
161 'Modules/indexeddb',
162 'css', 165 'css',
163 'dom', 166 'dom',
164 'fileapi', 167 'fileapi',
165 'Modules/filesystem',
166 'html', 168 'html',
167 'html/canvas', 169 'html/canvas',
168 'inspector', 170 'inspector',
169 'loader', 171 'loader',
170 'loader/appcache', 172 'loader/appcache',
173 'Modules/battery',
vsm 2012/04/18 20:01:45 Note this is the only actual add here.
174 'Modules/filesystem',
175 'Modules/geolocation',
176 'Modules/indexeddb',
171 'Modules/mediastream', 177 'Modules/mediastream',
172 'Modules/geolocation', 178 'Modules/speech',
179 'Modules/webaudio',
180 'Modules/webdatabase',
181 'Modules/websockets',
173 'notifications', 182 'notifications',
174 'page', 183 'page',
175 'plugins', 184 'plugins',
176 'storage', 185 'storage',
177 'Modules/webdatabase',
178 'svg', 186 'svg',
179 'Modules/webaudio',
180 'Modules/websockets',
181 'workers', 187 'workers',
182 'xml', 188 'xml',
183 ] 189 ]
184 190
185 ignored_idls = [ 191 ignored_idls = [
186 'AbstractView.idl', 192 'AbstractView.idl',
187 ] 193 ]
188 194
189 idl_files = [] 195 idl_files = []
190 196
(...skipping 11 matching lines...) Expand all
202 208
203 for dir_name in webkit_dirs: 209 for dir_name in webkit_dirs:
204 dir_path = os.path.join(webcore_dir, dir_name) 210 dir_path = os.path.join(webcore_dir, dir_name)
205 os.path.walk(dir_path, visitor, None) 211 os.path.walk(dir_path, visitor, None)
206 212
207 database_dir = os.path.join(current_dir, '..', 'database') 213 database_dir = os.path.join(current_dir, '..', 'database')
208 return build_database(idl_files, database_dir) 214 return build_database(idl_files, database_dir)
209 215
210 if __name__ == '__main__': 216 if __name__ == '__main__':
211 sys.exit(main()) 217 sys.exit(main())
OLDNEW
« no previous file with comments | « lib/dom/frog/dom_frog.dart ('k') | lib/dom/scripts/systemhtml.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698