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

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

Issue 20214002: Fix dartium build breakage (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: 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 | « no previous file | no next file » | 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) 2012, the Dart project authors. Please see the AUTHORS file 2 # Copyright (c) 2012, 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 module provides shared functionality for systems to generate 6 """This module provides shared functionality for systems to generate
7 Dart APIs from the IDL database.""" 7 Dart APIs from the IDL database."""
8 8
9 import copy 9 import copy
10 import json 10 import json
(...skipping 996 matching lines...) Expand 10 before | Expand all | Expand 10 after
1007 webcore_getter_name='getUnsignedIntegralAttribute' , 1007 webcore_getter_name='getUnsignedIntegralAttribute' ,
1008 webcore_setter_name='setUnsignedIntegralAttribute' ), 1008 webcore_setter_name='setUnsignedIntegralAttribute' ),
1009 'long long': TypeData(clazz='Primitive', dart_type='int'), 1009 'long long': TypeData(clazz='Primitive', dart_type='int'),
1010 'unsigned long long': TypeData(clazz='Primitive', dart_type='int'), 1010 'unsigned long long': TypeData(clazz='Primitive', dart_type='int'),
1011 'float': TypeData(clazz='Primitive', dart_type='num', native_type='double'), 1011 'float': TypeData(clazz='Primitive', dart_type='num', native_type='double'),
1012 'double': TypeData(clazz='Primitive', dart_type='num'), 1012 'double': TypeData(clazz='Primitive', dart_type='num'),
1013 1013
1014 'any': TypeData(clazz='Primitive', dart_type='Object', native_type='ScriptVa lue'), 1014 'any': TypeData(clazz='Primitive', dart_type='Object', native_type='ScriptVa lue'),
1015 'Array': TypeData(clazz='Primitive', dart_type='List'), 1015 'Array': TypeData(clazz='Primitive', dart_type='List'),
1016 'custom': TypeData(clazz='Primitive', dart_type='dynamic'), 1016 'custom': TypeData(clazz='Primitive', dart_type='dynamic'),
1017 'union': TypeData(clazz='Primitive', dart_type='dynamic'),
1018 'ClientRect': TypeData(clazz='Interface', 1017 'ClientRect': TypeData(clazz='Interface',
1019 dart_type='Rect', suppress_interface=True), 1018 dart_type='Rect', suppress_interface=True),
1020 'Date': TypeData(clazz='Primitive', dart_type='DateTime', native_type='doubl e'), 1019 'Date': TypeData(clazz='Primitive', dart_type='DateTime', native_type='doubl e'),
1021 'DOMObject': TypeData(clazz='Primitive', dart_type='Object', native_type='Sc riptValue'), 1020 'DOMObject': TypeData(clazz='Primitive', dart_type='Object', native_type='Sc riptValue'),
1022 'DOMString': TypeData(clazz='Primitive', dart_type='String', native_type='St ring'), 1021 'DOMString': TypeData(clazz='Primitive', dart_type='String', native_type='St ring'),
1023 # TODO(vsm): This won't actually work until we convert the Map to 1022 # TODO(vsm): This won't actually work until we convert the Map to
1024 # a native JS Map for JS DOM. 1023 # a native JS Map for JS DOM.
1025 'Dictionary': TypeData(clazz='Primitive', dart_type='Map'), 1024 'Dictionary': TypeData(clazz='Primitive', dart_type='Map'),
1026 'DOMTimeStamp': TypeData(clazz='Primitive', dart_type='int', native_type='un signed long long'), 1025 'DOMTimeStamp': TypeData(clazz='Primitive', dart_type='int', native_type='un signed long long'),
1027 'object': TypeData(clazz='Primitive', dart_type='Object', native_type='Scrip tValue'), 1026 'object': TypeData(clazz='Primitive', dart_type='Object', native_type='Scrip tValue'),
(...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after
1197 type_name, type_data, dart_interface_name, self) 1196 type_name, type_data, dart_interface_name, self)
1198 1197
1199 if type_data.clazz == 'BasicTypedList': 1198 if type_data.clazz == 'BasicTypedList':
1200 dart_interface_name = self._renamer.RenameInterface( 1199 dart_interface_name = self._renamer.RenameInterface(
1201 self._database.GetInterface(type_name)) 1200 self._database.GetInterface(type_name))
1202 return BasicTypedListIDLTypeInfo( 1201 return BasicTypedListIDLTypeInfo(
1203 type_name, type_data, dart_interface_name, self) 1202 type_name, type_data, dart_interface_name, self)
1204 1203
1205 class_name = '%sIDLTypeInfo' % type_data.clazz 1204 class_name = '%sIDLTypeInfo' % type_data.clazz
1206 return globals()[class_name](type_name, type_data) 1205 return globals()[class_name](type_name, type_data)
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698