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

Side by Side Diff: client/dom/scripts/dartgenerator.py

Issue 8618007: Enable SVG for dartc and frog (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 9 years, 1 month 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 | « client/dom/monkey_dom.dart.broken ('k') | client/dom/scripts/fremontcutbuilder.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 """This module generates Dart APIs from the IDL database.""" 6 """This module generates Dart APIs from the IDL database."""
7 7
8 import emitter 8 import emitter
9 import idlnode 9 import idlnode
10 import logging 10 import logging
(...skipping 1150 matching lines...) Expand 10 before | Expand all | Expand 10 after
1161 operations - contains the overloads, one or more operations with the same 1161 operations - contains the overloads, one or more operations with the same
1162 name. 1162 name.
1163 """ 1163 """
1164 self._members_emitter.Emit('\n' 1164 self._members_emitter.Emit('\n'
1165 ' $TYPE $NAME($ARGS);\n', 1165 ' $TYPE $NAME($ARGS);\n',
1166 TYPE=info.type_name, 1166 TYPE=info.type_name,
1167 NAME=info.name, 1167 NAME=info.name,
1168 ARGS=info.arg_interface_declaration) 1168 ARGS=info.arg_interface_declaration)
1169 1169
1170 # Interfaces get secondary members directly via the superinterfaces. 1170 # Interfaces get secondary members directly via the superinterfaces.
1171 def AddSecondaryGetter(self, attr): 1171 def AddSecondaryGetter(self, interface, attr):
1172 pass 1172 pass
1173 def AddSecondarySetter(self, attr): 1173 def AddSecondarySetter(self, interface, attr):
1174 pass 1174 pass
1175 def AddSecondaryOperation(self, attr): 1175 def AddSecondaryOperation(self, interface, attr):
1176 pass 1176 pass
1177 1177
1178 1178
1179 # Given a sorted sequence of type identifiers, return an appropriate type 1179 # Given a sorted sequence of type identifiers, return an appropriate type
1180 # name 1180 # name
1181 def TypeName(typeIds, interface): 1181 def TypeName(typeIds, interface):
1182 # Dynamically type this field for now. 1182 # Dynamically type this field for now.
1183 return 'var' 1183 return 'var'
1184 1184
1185 1185
(...skipping 826 matching lines...) Expand 10 before | Expand all | Expand 10 after
2012 Arguments: 2012 Arguments:
2013 info: An OperationInfo object. 2013 info: An OperationInfo object.
2014 """ 2014 """
2015 # TODO(vsm): Handle overloads. 2015 # TODO(vsm): Handle overloads.
2016 self._members_emitter.Emit( 2016 self._members_emitter.Emit(
2017 '\n' 2017 '\n'
2018 ' $TYPE $NAME($ARGS) native;\n', 2018 ' $TYPE $NAME($ARGS) native;\n',
2019 TYPE=info.type_name, 2019 TYPE=info.type_name,
2020 NAME=info.name, 2020 NAME=info.name,
2021 ARGS=info.arg_implementation_declaration) 2021 ARGS=info.arg_implementation_declaration)
OLDNEW
« no previous file with comments | « client/dom/monkey_dom.dart.broken ('k') | client/dom/scripts/fremontcutbuilder.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698