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

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

Issue 10180003: Reenable ENABLE_NOTIFICATIONS. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: 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 | « no previous file | lib/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
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
79 'ENABLE_WEB_AUDIO', 79 'ENABLE_WEB_AUDIO',
80 'ENABLE_WEB_INTENTS', 80 'ENABLE_WEB_INTENTS',
81 'ENABLE_WEB_SOCKETS', 81 'ENABLE_WEB_SOCKETS',
82 'ENABLE_WEB_TIMING', 82 'ENABLE_WEB_TIMING',
83 'ENABLE_WORKERS', 83 'ENABLE_WORKERS',
84 'ENABLE_XHR_RESPONSE_BLOB', 84 'ENABLE_XHR_RESPONSE_BLOB',
85 'ENABLE_XSLT', 85 'ENABLE_XSLT',
86 ] 86 ]
87 87
88 # TODO(antonm): Remove this filter. 88 # TODO(antonm): Remove this filter.
89 UNSUPPORTED_FEATURES = [ 'ENABLE_WEB_INTENTS', 'ENABLE_NOTIFICATIONS' ] 89 UNSUPPORTED_FEATURES = [ 'ENABLE_WEB_INTENTS' ]
90 90
91 def build_database(idl_files, database_dir, feature_defines = None): 91 def build_database(idl_files, database_dir, feature_defines = None):
92 """This code reconstructs the FremontCut IDL database from W3C, 92 """This code reconstructs the FremontCut IDL database from W3C,
93 WebKit and Dart IDL files.""" 93 WebKit and Dart IDL files."""
94 current_dir = os.path.dirname(__file__) 94 current_dir = os.path.dirname(__file__)
95 logging.config.fileConfig(os.path.join(current_dir, "logging.conf")) 95 logging.config.fileConfig(os.path.join(current_dir, "logging.conf"))
96 96
97 db = database.Database(database_dir) 97 db = database.Database(database_dir)
98 98
99 # Delete all existing IDLs in the DB. 99 # Delete all existing IDLs in the DB.
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after
208 208
209 for dir_name in webkit_dirs: 209 for dir_name in webkit_dirs:
210 dir_path = os.path.join(webcore_dir, dir_name) 210 dir_path = os.path.join(webcore_dir, dir_name)
211 os.path.walk(dir_path, visitor, None) 211 os.path.walk(dir_path, visitor, None)
212 212
213 database_dir = os.path.join(current_dir, '..', 'database') 213 database_dir = os.path.join(current_dir, '..', 'database')
214 return build_database(idl_files, database_dir) 214 return build_database(idl_files, database_dir)
215 215
216 if __name__ == '__main__': 216 if __name__ == '__main__':
217 sys.exit(main()) 217 sys.exit(main())
OLDNEW
« no previous file with comments | « no previous file | lib/dom/scripts/generator.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698