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

Side by Side Diff: lib/html/scripts/generator.py

Issue 11234062: Make endianness named argument for DataView accessors. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 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
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 re 10 import re
(...skipping 17 matching lines...) Expand all
28 'SVGTransformable', 28 'SVGTransformable',
29 'SVGURIReference', 29 'SVGURIReference',
30 'SVGZoomAndPan', 30 'SVGZoomAndPan',
31 'TimeoutHandler']) 31 'TimeoutHandler'])
32 32
33 def IsPureInterface(interface_name): 33 def IsPureInterface(interface_name):
34 return interface_name in _pure_interfaces 34 return interface_name in _pure_interfaces
35 35
36 36
37 _methods_with_named_formals = set([ 37 _methods_with_named_formals = set([
38 'DataView.getFloat32',
39 'DataView.getFloat64',
40 'DataView.getInt16',
41 'DataView.getInt32',
42 'DataView.getInt8',
43 'DataView.getUint16',
44 'DataView.getUint32',
45 'DataView.getUint8',
46 'DataView.setFloat32',
47 'DataView.setFloat64',
48 'DataView.setInt16',
49 'DataView.setInt32',
50 'DataView.setInt8',
51 'DataView.setUint16',
52 'DataView.setUint32',
53 'DataView.setUint8',
38 'DirectoryEntry.getDirectory', 54 'DirectoryEntry.getDirectory',
39 'DirectoryEntry.getFile', 55 'DirectoryEntry.getFile',
40 ]) 56 ])
41 57
42 # 58 #
43 # Renames for attributes that have names that are not legal Dart names. 59 # Renames for attributes that have names that are not legal Dart names.
44 # 60 #
45 _dart_attribute_renames = { 61 _dart_attribute_renames = {
46 'default': 'defaultValue', 62 'default': 'defaultValue',
47 'final': 'finalValue', 63 'final': 'finalValue',
(...skipping 1027 matching lines...) Expand 10 before | Expand all | Expand 10 after
1075 else: 1091 else:
1076 dart_interface_name = type_name 1092 dart_interface_name = type_name
1077 return InterfaceIDLTypeInfo(type_name, type_data, dart_interface_name, 1093 return InterfaceIDLTypeInfo(type_name, type_data, dart_interface_name,
1078 self) 1094 self)
1079 1095
1080 if type_data.clazz == 'SVGTearOff': 1096 if type_data.clazz == 'SVGTearOff':
1081 return SVGTearOffIDLTypeInfo(type_name, type_data, self) 1097 return SVGTearOffIDLTypeInfo(type_name, type_data, self)
1082 1098
1083 class_name = '%sIDLTypeInfo' % type_data.clazz 1099 class_name = '%sIDLTypeInfo' % type_data.clazz
1084 return globals()[class_name](type_name, type_data) 1100 return globals()[class_name](type_name, type_data)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698