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

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

Issue 11365203: Unmerging HTMLDocument from Document. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Try again? 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
« no previous file with comments | « sdk/lib/html/idl/dart/dart.idl ('k') | sdk/lib/html/scripts/htmlrenamer.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) 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 926 matching lines...) Expand 10 before | Expand all | Expand 10 after
937 # http://dev.w3.org/2009/dap/file-system/file-dir-sys.html#the-flags-interfa ce 937 # http://dev.w3.org/2009/dap/file-system/file-dir-sys.html#the-flags-interfa ce
938 'WebKitFlags': TypeData(clazz='Primitive', dart_type='Object'), 938 'WebKitFlags': TypeData(clazz='Primitive', dart_type='Object'),
939 939
940 'sequence': TypeData(clazz='Primitive', dart_type='List'), 940 'sequence': TypeData(clazz='Primitive', dart_type='List'),
941 'void': TypeData(clazz='Primitive', dart_type='void'), 941 'void': TypeData(clazz='Primitive', dart_type='void'),
942 942
943 'CSSRule': TypeData(clazz='Interface', conversion_includes=['CSSImportRule'] ), 943 'CSSRule': TypeData(clazz='Interface', conversion_includes=['CSSImportRule'] ),
944 'DOMException': TypeData(clazz='Interface', native_type='DOMCoreException'), 944 'DOMException': TypeData(clazz='Interface', native_type='DOMCoreException'),
945 'DOMStringMap': TypeData(clazz='Interface', dart_type='Map<String, String>') , 945 'DOMStringMap': TypeData(clazz='Interface', dart_type='Map<String, String>') ,
946 'DOMWindow': TypeData(clazz='Interface', custom_to_dart=True), 946 'DOMWindow': TypeData(clazz='Interface', custom_to_dart=True),
947 'Document': TypeData(clazz='Interface', merged_interface='HTMLDocument'),
948 'Element': TypeData(clazz='Interface', merged_interface='HTMLElement', 947 'Element': TypeData(clazz='Interface', merged_interface='HTMLElement',
949 custom_to_dart=True), 948 custom_to_dart=True),
950 'EventListener': TypeData(clazz='Interface', custom_to_native=True), 949 'EventListener': TypeData(clazz='Interface', custom_to_native=True),
951 'EventTarget': TypeData(clazz='Interface', custom_to_native=True), 950 'EventTarget': TypeData(clazz='Interface', custom_to_native=True),
952 'HTMLDocument': TypeData(clazz='Interface', merged_into='Document'),
953 'HTMLElement': TypeData(clazz='Interface', merged_into='Element', 951 'HTMLElement': TypeData(clazz='Interface', merged_into='Element',
954 custom_to_dart=True), 952 custom_to_dart=True),
955 'IDBAny': TypeData(clazz='Interface', dart_type='dynamic', custom_to_native= True), 953 'IDBAny': TypeData(clazz='Interface', dart_type='dynamic', custom_to_native= True),
956 'IDBKey': TypeData(clazz='Interface', dart_type='dynamic', custom_to_native= True), 954 'IDBKey': TypeData(clazz='Interface', dart_type='dynamic', custom_to_native= True),
957 'MutationRecordArray': TypeData(clazz='Interface', # C++ pass by pointer. 955 'MutationRecordArray': TypeData(clazz='Interface', # C++ pass by pointer.
958 native_type='MutationRecordArray', dart_type='List<MutationRecord>'), 956 native_type='MutationRecordArray', dart_type='List<MutationRecord>'),
959 'StyleSheet': TypeData(clazz='Interface', conversion_includes=['CSSStyleShee t']), 957 'StyleSheet': TypeData(clazz='Interface', conversion_includes=['CSSStyleShee t']),
960 'SVGElement': TypeData(clazz='Interface', custom_to_dart=True), 958 'SVGElement': TypeData(clazz='Interface', custom_to_dart=True),
961 959
962 'ClientRectList': TypeData(clazz='Interface', 960 'ClientRectList': TypeData(clazz='Interface',
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after
1084 else: 1082 else:
1085 dart_interface_name = type_name 1083 dart_interface_name = type_name
1086 return InterfaceIDLTypeInfo(type_name, type_data, dart_interface_name, 1084 return InterfaceIDLTypeInfo(type_name, type_data, dart_interface_name,
1087 self) 1085 self)
1088 1086
1089 if type_data.clazz == 'SVGTearOff': 1087 if type_data.clazz == 'SVGTearOff':
1090 return SVGTearOffIDLTypeInfo(type_name, type_data, self) 1088 return SVGTearOffIDLTypeInfo(type_name, type_data, self)
1091 1089
1092 class_name = '%sIDLTypeInfo' % type_data.clazz 1090 class_name = '%sIDLTypeInfo' % type_data.clazz
1093 return globals()[class_name](type_name, type_data) 1091 return globals()[class_name](type_name, type_data)
OLDNEW
« no previous file with comments | « sdk/lib/html/idl/dart/dart.idl ('k') | sdk/lib/html/scripts/htmlrenamer.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698