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

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

Issue 14159020: Make RadioNodeList be NodeList (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 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 | « sdk/lib/html/dartium/html_dartium.dart ('k') | tools/dom/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 json 10 import json
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
80 80
81 # Nodes with different tags in different browsers can be listed as multiple 81 # Nodes with different tags in different browsers can be listed as multiple
82 # tags here provided there is not conflict in usage (e.g. browser X has tag 82 # tags here provided there is not conflict in usage (e.g. browser X has tag
83 # T and no other browser has tag T). 83 # T and no other browser has tag T).
84 84
85 'DOMApplicationCache': 85 'DOMApplicationCache':
86 'ApplicationCache,DOMApplicationCache,OfflineResourceList', 86 'ApplicationCache,DOMApplicationCache,OfflineResourceList',
87 87
88 'MutationObserver': 'MutationObserver,WebKitMutationObserver', 88 'MutationObserver': 'MutationObserver,WebKitMutationObserver',
89 89
90 'NodeList': 'NodeList,RadioNodeList',
91
90 'TransitionEvent': 'TransitionEvent,WebKitTransitionEvent', 92 'TransitionEvent': 'TransitionEvent,WebKitTransitionEvent',
91 93
92 'WheelEvent': 'WheelEvent,MouseWheelEvent,MouseScrollEvent', 94 'WheelEvent': 'WheelEvent,MouseWheelEvent,MouseScrollEvent',
93 95
94 }, dart2jsOnly=True) 96 }, dart2jsOnly=True)
95 97
96 def IsRegisteredType(type_name): 98 def IsRegisteredType(type_name):
97 return type_name in _idl_type_registry 99 return type_name in _idl_type_registry
98 100
99 def MakeNativeSpec(javascript_binding_name): 101 def MakeNativeSpec(javascript_binding_name):
(...skipping 1485 matching lines...) Expand 10 before | Expand all | Expand 10 after
1585 type_name, type_data, dart_interface_name, self) 1587 type_name, type_data, dart_interface_name, self)
1586 1588
1587 if type_data.clazz == 'BasicTypedList': 1589 if type_data.clazz == 'BasicTypedList':
1588 dart_interface_name = self._renamer.RenameInterface( 1590 dart_interface_name = self._renamer.RenameInterface(
1589 self._database.GetInterface(type_name)) 1591 self._database.GetInterface(type_name))
1590 return BasicTypedListIDLTypeInfo( 1592 return BasicTypedListIDLTypeInfo(
1591 type_name, type_data, dart_interface_name, self) 1593 type_name, type_data, dart_interface_name, self)
1592 1594
1593 class_name = '%sIDLTypeInfo' % type_data.clazz 1595 class_name = '%sIDLTypeInfo' % type_data.clazz
1594 return globals()[class_name](type_name, type_data) 1596 return globals()[class_name](type_name, type_data)
OLDNEW
« no previous file with comments | « sdk/lib/html/dartium/html_dartium.dart ('k') | tools/dom/scripts/htmlrenamer.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698