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

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

Issue 9950037: Fix factory dart:html typed array providers for dartium. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: suppress html/TypedArrays tests in ie 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 | « lib/dom/scripts/systemhtml.py ('k') | lib/dom/src/frog_FactoryProviders.dart » ('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) 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 providesfunctionality for systems to generate 6 """This module providesfunctionality for systems to generate
7 Dart interfaces from the IDL database.""" 7 Dart interfaces from the IDL database."""
8 8
9 import os 9 import os
10 import systembase 10 import systembase
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after
141 PARAMS=constructor_info.ParametersInterfaceDeclaration()); 141 PARAMS=constructor_info.ParametersInterfaceDeclaration());
142 142
143 element_type = MaybeTypedArrayElementType(self._interface) 143 element_type = MaybeTypedArrayElementType(self._interface)
144 if element_type: 144 if element_type:
145 self._members_emitter.Emit( 145 self._members_emitter.Emit(
146 '\n' 146 '\n'
147 ' $CTOR(int length);\n' 147 ' $CTOR(int length);\n'
148 '\n' 148 '\n'
149 ' $CTOR.fromList(List<$TYPE> list);\n' 149 ' $CTOR.fromList(List<$TYPE> list);\n'
150 '\n' 150 '\n'
151 ' $CTOR.fromBuffer(ArrayBuffer buffer);\n', 151 ' $CTOR.fromBuffer(ArrayBuffer buffer,'
152 ' [int byteOffset, int length]);\n',
152 CTOR=self._interface.id, 153 CTOR=self._interface.id,
153 TYPE=DartType(element_type)) 154 TYPE=DartType(element_type))
154 155
155 156
156 def FinishInterface(self): 157 def FinishInterface(self):
157 # TODO(vsm): Use typedef if / when that is supported in Dart. 158 # TODO(vsm): Use typedef if / when that is supported in Dart.
158 # Define variant as subtype. 159 # Define variant as subtype.
159 if (self._super_interface and 160 if (self._super_interface and
160 self._interface.id is not self._super_interface): 161 self._interface.id is not self._super_interface):
161 consts_emitter = self._top_level_emitter.Emit( 162 consts_emitter = self._top_level_emitter.Emit(
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
208 TYPE=info.type_name, 209 TYPE=info.type_name,
209 NAME=info.name, 210 NAME=info.name,
210 PARAMS=info.ParametersInterfaceDeclaration()) 211 PARAMS=info.ParametersInterfaceDeclaration())
211 212
212 # Interfaces get secondary members directly via the superinterfaces. 213 # Interfaces get secondary members directly via the superinterfaces.
213 def AddSecondaryAttribute(self, interface, getter, setter): 214 def AddSecondaryAttribute(self, interface, getter, setter):
214 pass 215 pass
215 216
216 def AddSecondaryOperation(self, interface, attr): 217 def AddSecondaryOperation(self, interface, attr):
217 pass 218 pass
OLDNEW
« no previous file with comments | « lib/dom/scripts/systemhtml.py ('k') | lib/dom/src/frog_FactoryProviders.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698