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

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 #2. 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 937 matching lines...) Expand 10 before | Expand all | Expand 10 after
948 # http://dev.w3.org/2009/dap/file-system/file-dir-sys.html#the-flags-interfa ce 948 # http://dev.w3.org/2009/dap/file-system/file-dir-sys.html#the-flags-interfa ce
949 'WebKitFlags': TypeData(clazz='Primitive', dart_type='Object'), 949 'WebKitFlags': TypeData(clazz='Primitive', dart_type='Object'),
950 950
951 'sequence': TypeData(clazz='Primitive', dart_type='List'), 951 'sequence': TypeData(clazz='Primitive', dart_type='List'),
952 'void': TypeData(clazz='Primitive', dart_type='void'), 952 'void': TypeData(clazz='Primitive', dart_type='void'),
953 953
954 'CSSRule': TypeData(clazz='Interface', conversion_includes=['CSSImportRule'] ), 954 'CSSRule': TypeData(clazz='Interface', conversion_includes=['CSSImportRule'] ),
955 'DOMException': TypeData(clazz='Interface', native_type='DOMCoreException'), 955 'DOMException': TypeData(clazz='Interface', native_type='DOMCoreException'),
956 'DOMStringMap': TypeData(clazz='Interface', dart_type='Map<String, String>') , 956 'DOMStringMap': TypeData(clazz='Interface', dart_type='Map<String, String>') ,
957 'DOMWindow': TypeData(clazz='Interface', custom_to_dart=True), 957 'DOMWindow': TypeData(clazz='Interface', custom_to_dart=True),
958 'Document': TypeData(clazz='Interface', merged_interface='HTMLDocument'),
959 'Element': TypeData(clazz='Interface', merged_interface='HTMLElement', 958 'Element': TypeData(clazz='Interface', merged_interface='HTMLElement',
960 custom_to_dart=True), 959 custom_to_dart=True),
961 'EventListener': TypeData(clazz='Interface', custom_to_native=True), 960 'EventListener': TypeData(clazz='Interface', custom_to_native=True),
962 'EventTarget': TypeData(clazz='Interface', custom_to_native=True), 961 'EventTarget': TypeData(clazz='Interface', custom_to_native=True),
963 'HTMLDocument': TypeData(clazz='Interface', merged_into='Document'),
964 'HTMLElement': TypeData(clazz='Interface', merged_into='Element', 962 'HTMLElement': TypeData(clazz='Interface', merged_into='Element',
965 custom_to_dart=True), 963 custom_to_dart=True),
966 'IDBAny': TypeData(clazz='Interface', dart_type='dynamic', custom_to_native= True), 964 'IDBAny': TypeData(clazz='Interface', dart_type='dynamic', custom_to_native= True),
967 'IDBKey': TypeData(clazz='Interface', dart_type='dynamic', custom_to_native= True), 965 'IDBKey': TypeData(clazz='Interface', dart_type='dynamic', custom_to_native= True),
968 'MutationRecordArray': TypeData(clazz='Interface', # C++ pass by pointer. 966 'MutationRecordArray': TypeData(clazz='Interface', # C++ pass by pointer.
969 native_type='MutationRecordArray', dart_type='List<MutationRecord>'), 967 native_type='MutationRecordArray', dart_type='List<MutationRecord>'),
970 'StyleSheet': TypeData(clazz='Interface', conversion_includes=['CSSStyleShee t']), 968 'StyleSheet': TypeData(clazz='Interface', conversion_includes=['CSSStyleShee t']),
971 'SVGElement': TypeData(clazz='Interface', custom_to_dart=True), 969 'SVGElement': TypeData(clazz='Interface', custom_to_dart=True),
972 970
973 'ClientRectList': TypeData(clazz='Interface', 971 'ClientRectList': TypeData(clazz='Interface',
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after
1095 else: 1093 else:
1096 dart_interface_name = type_name 1094 dart_interface_name = type_name
1097 return InterfaceIDLTypeInfo(type_name, type_data, dart_interface_name, 1095 return InterfaceIDLTypeInfo(type_name, type_data, dart_interface_name,
1098 self) 1096 self)
1099 1097
1100 if type_data.clazz == 'SVGTearOff': 1098 if type_data.clazz == 'SVGTearOff':
1101 return SVGTearOffIDLTypeInfo(type_name, type_data, self) 1099 return SVGTearOffIDLTypeInfo(type_name, type_data, self)
1102 1100
1103 class_name = '%sIDLTypeInfo' % type_data.clazz 1101 class_name = '%sIDLTypeInfo' % type_data.clazz
1104 return globals()[class_name](type_name, type_data) 1102 return globals()[class_name](type_name, type_data)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698