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

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

Issue 26729002: dartium_js_interop changes Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Rebased Created 7 years, 2 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
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 dartgenerator 8 import dartgenerator
9 import database 9 import database
10 import fremontcutbuilder 10 import fremontcutbuilder
(...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after
147 #ifndef DartWebkitClassIds_h 147 #ifndef DartWebkitClassIds_h
148 #define DartWebkitClassIds_h 148 #define DartWebkitClassIds_h
149 149
150 namespace WebCore { 150 namespace WebCore {
151 151
152 enum { 152 enum {
153 _HistoryCrossFrameClassId = 0, 153 _HistoryCrossFrameClassId = 0,
154 _LocationCrossFrameClassId, 154 _LocationCrossFrameClassId,
155 _DOMWindowCrossFrameClassId, 155 _DOMWindowCrossFrameClassId,
156 _DateTimeClassId, 156 _DateTimeClassId,
157 _JsFunctionClassId,
158 _JsObjectClassId,
157 // New types that are not auto-generated should be added here. 159 // New types that are not auto-generated should be added here.
158 """) 160 """)
159 for interface in webkit_database.GetInterfaces(): 161 for interface in webkit_database.GetInterfaces():
160 interface_name = interface.id 162 interface_name = interface.id
161 e.Emit(' %sClassId,\n' % interface_name) 163 e.Emit(' %sClassId,\n' % interface_name)
162 e.Emit(""" 164 e.Emit("""
163 NumWebkitClassIds 165 NumWebkitClassIds
164 }; 166 };
165 167
166 } // namespace WebCore 168 } // namespace WebCore
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
246 os.path.join('..', '..', '..', 'sdk', 'lib', library_name, 'dart2js')) 248 os.path.join('..', '..', '..', 'sdk', 'lib', library_name, 'dart2js'))
247 if 'htmldartium' in systems: 249 if 'htmldartium' in systems:
248 _logger.info('Generating dartium single files.') 250 _logger.info('Generating dartium single files.')
249 for library_name in HTML_LIBRARY_NAMES: 251 for library_name in HTML_LIBRARY_NAMES:
250 GenerateSingleFile( 252 GenerateSingleFile(
251 os.path.join(dartium_output_dir, '%s_dartium.dart' % library_name), 253 os.path.join(dartium_output_dir, '%s_dartium.dart' % library_name),
252 os.path.join('..', '..', '..', 'sdk', 'lib', library_name, 'dartium')) 254 os.path.join('..', '..', '..', 'sdk', 'lib', library_name, 'dartium'))
253 255
254 if __name__ == '__main__': 256 if __name__ == '__main__':
255 sys.exit(main()) 257 sys.exit(main())
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698