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

Side by Side Diff: tools/dom/scripts/generator.py

Issue 23829002: Checkpoint in changes to match push (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: We were missing onReadyStateChange Created 7 years, 3 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 | « tools/dom/scripts/dartmetadata.py ('k') | tools/dom/scripts/htmleventgenerator.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 json 10 import json
11 import monitored 11 import monitored
12 import os 12 import os
13 import re 13 import re
14 from htmlrenamer import html_interface_renames, typed_array_renames 14 from htmlrenamer import html_interface_renames, typed_array_renames
15 15
16 _pure_interfaces = monitored.Set('generator._pure_interfaces', [ 16 _pure_interfaces = monitored.Set('generator._pure_interfaces', [
17 # TODO(sra): DOMStringMap should be a class implementing Map<String,String>. 17 # TODO(sra): DOMStringMap should be a class implementing Map<String,String>.
18 'DOMStringMap', 18 'DOMStringMap',
19 'ChildNode', 19 'ChildNode',
20 'EventListener', 20 'EventListener',
21 'EventHandler', 21 'EventHandler',
22 'MediaQueryListListener', 22 'MediaQueryListListener',
23 'MutationCallback', 23 'MutationCallback',
24 'NavigatorID',
25 'NavigatorOnLine',
24 'ParentNode', 26 'ParentNode',
25 'SVGExternalResourcesRequired', 27 'SVGExternalResourcesRequired',
26 'SVGFilterPrimitiveStandardAttributes', 28 'SVGFilterPrimitiveStandardAttributes',
27 'SVGFitToViewBox', 29 'SVGFitToViewBox',
28 'SVGTests', 30 'SVGTests',
29 'SVGURIReference', 31 'SVGURIReference',
30 'SVGZoomAndPan', 32 'SVGZoomAndPan',
31 'TimeoutHandler', 33 'TimeoutHandler',
32 'WindowBase64', 34 'WindowBase64',
33 'WindowTimers', 35 'WindowTimers',
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
91 93
92 'AnalyserNode': 'AnalyserNode,RealtimeAnalyserNode', 94 'AnalyserNode': 'AnalyserNode,RealtimeAnalyserNode',
93 95
94 'ChannelMergerNode': 'ChannelMergerNode,AudioChannelMerger', 96 'ChannelMergerNode': 'ChannelMergerNode,AudioChannelMerger',
95 'ChannelSplitterNode': 'ChannelSplitterNode,AudioChannelSplitter', 97 'ChannelSplitterNode': 'ChannelSplitterNode,AudioChannelSplitter',
96 98
97 'CSSStyleDeclaration': 99 'CSSStyleDeclaration':
98 # IE Firefox 100 # IE Firefox
99 'CSSStyleDeclaration,MSStyleCSSProperties,CSS2Properties', 101 'CSSStyleDeclaration,MSStyleCSSProperties,CSS2Properties',
100 102
101 'DOMApplicationCache': 103 'ApplicationCache':
102 'ApplicationCache,DOMApplicationCache,OfflineResourceList', 104 'ApplicationCache,DOMApplicationCache,OfflineResourceList',
103 105
104 'HTMLTableCellElement': 106 'HTMLTableCellElement':
105 'HTMLTableCellElement,HTMLTableDataCellElement,HTMLTableHeaderCellElemen t', 107 'HTMLTableCellElement,HTMLTableDataCellElement,HTMLTableHeaderCellElemen t',
106 108
107 'GainNode': 'GainNode,AudioGainNode', 109 'GainNode': 'GainNode,AudioGainNode',
108 110
109 'IDBOpenDBRequest': 111 'IDBOpenDBRequest':
110 'IDBOpenDBRequest,IDBVersionChangeRequest', 112 'IDBOpenDBRequest,IDBVersionChangeRequest',
111 113
(...skipping 1086 matching lines...) Expand 10 before | Expand all | Expand 10 after
1198 if type_data.clazz == 'BasicTypedList': 1200 if type_data.clazz == 'BasicTypedList':
1199 if type_name == 'ArrayBuffer': 1201 if type_name == 'ArrayBuffer':
1200 dart_interface_name = 'ByteBuffer' 1202 dart_interface_name = 'ByteBuffer'
1201 else: 1203 else:
1202 dart_interface_name = self._renamer.RenameInterfaceId(type_name) 1204 dart_interface_name = self._renamer.RenameInterfaceId(type_name)
1203 return BasicTypedListIDLTypeInfo( 1205 return BasicTypedListIDLTypeInfo(
1204 type_name, type_data, dart_interface_name, self) 1206 type_name, type_data, dart_interface_name, self)
1205 1207
1206 class_name = '%sIDLTypeInfo' % type_data.clazz 1208 class_name = '%sIDLTypeInfo' % type_data.clazz
1207 return globals()[class_name](type_name, type_data) 1209 return globals()[class_name](type_name, type_data)
OLDNEW
« no previous file with comments | « tools/dom/scripts/dartmetadata.py ('k') | tools/dom/scripts/htmleventgenerator.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698