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

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

Issue 17550014: Fixing up previous CL to fix Dartium issues. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 6 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/scripts/dartgenerator.py ('k') | 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 1010 matching lines...) Expand 10 before | Expand all | Expand 10 after
1021 dart_type='List<String>', custom_to_native=True), 1021 dart_type='List<String>', custom_to_native=True),
1022 'EntryArray': TypeData(clazz='Interface', item_type='Entry', 1022 'EntryArray': TypeData(clazz='Interface', item_type='Entry',
1023 suppress_interface=True), 1023 suppress_interface=True),
1024 'EntryArraySync': TypeData(clazz='Interface', item_type='EntrySync', 1024 'EntryArraySync': TypeData(clazz='Interface', item_type='EntrySync',
1025 suppress_interface=True), 1025 suppress_interface=True),
1026 'FileList': TypeData(clazz='Interface', item_type='File', 1026 'FileList': TypeData(clazz='Interface', item_type='File',
1027 dart_type='List<File>'), 1027 dart_type='List<File>'),
1028 'Future': TypeData(clazz='Interface', dart_type='Future'), 1028 'Future': TypeData(clazz='Interface', dart_type='Future'),
1029 'GamepadList': TypeData(clazz='Interface', item_type='Gamepad', 1029 'GamepadList': TypeData(clazz='Interface', item_type='Gamepad',
1030 suppress_interface=True), 1030 suppress_interface=True),
1031 'GLenum': TypeData(clazz='Primitive', dart_type='int',
1032 native_type='unsigned'),
blois 2013/06/21 23:42:51 Forgot to make the base CL first, the only change
1031 'HTMLAllCollection': TypeData(clazz='Interface', item_type='Node'), 1033 'HTMLAllCollection': TypeData(clazz='Interface', item_type='Node'),
1032 'HTMLCollection': TypeData(clazz='Interface', item_type='Node'), 1034 'HTMLCollection': TypeData(clazz='Interface', item_type='Node'),
1033 'NamedNodeMap': TypeData(clazz='Interface', item_type='Node'), 1035 'NamedNodeMap': TypeData(clazz='Interface', item_type='Node'),
1034 'NodeList': TypeData(clazz='Interface', item_type='Node', 1036 'NodeList': TypeData(clazz='Interface', item_type='Node',
1035 suppress_interface=False, dart_type='List<Node>'), 1037 suppress_interface=False, dart_type='List<Node>'),
1036 'SVGElementInstanceList': TypeData(clazz='Interface', 1038 'SVGElementInstanceList': TypeData(clazz='Interface',
1037 item_type='SVGElementInstance', suppress_interface=True), 1039 item_type='SVGElementInstance', suppress_interface=True),
1038 'WebKitSourceBufferList': TypeData(clazz='Interface', item_type='WebKitSourc eBuffer'), 1040 'WebKitSourceBufferList': TypeData(clazz='Interface', item_type='WebKitSourc eBuffer'),
1039 'SpeechGrammarList': TypeData(clazz='Interface', item_type='SpeechGrammar'), 1041 'SpeechGrammarList': TypeData(clazz='Interface', item_type='SpeechGrammar'),
1040 'SpeechInputResultList': TypeData(clazz='Interface', 1042 'SpeechInputResultList': TypeData(clazz='Interface',
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after
1151 type_name, type_data, dart_interface_name, self) 1153 type_name, type_data, dart_interface_name, self)
1152 1154
1153 if type_data.clazz == 'BasicTypedList': 1155 if type_data.clazz == 'BasicTypedList':
1154 dart_interface_name = self._renamer.RenameInterface( 1156 dart_interface_name = self._renamer.RenameInterface(
1155 self._database.GetInterface(type_name)) 1157 self._database.GetInterface(type_name))
1156 return BasicTypedListIDLTypeInfo( 1158 return BasicTypedListIDLTypeInfo(
1157 type_name, type_data, dart_interface_name, self) 1159 type_name, type_data, dart_interface_name, self)
1158 1160
1159 class_name = '%sIDLTypeInfo' % type_data.clazz 1161 class_name = '%sIDLTypeInfo' % type_data.clazz
1160 return globals()[class_name](type_name, type_data) 1162 return globals()[class_name](type_name, type_data)
OLDNEW
« no previous file with comments | « tools/dom/scripts/dartgenerator.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698