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

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

Issue 1126463005: Clean up WheelEvent (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Review fixes" Created 5 years, 7 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/dom.json ('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 167 matching lines...) Expand 10 before | Expand all | Expand 10 after
178 'TransitionEvent': 'TransitionEvent,WebKitTransitionEvent', 178 'TransitionEvent': 'TransitionEvent,WebKitTransitionEvent',
179 179
180 'WebGLLoseContext': 'WebGLLoseContext,WebGLExtensionLoseContext', 180 'WebGLLoseContext': 'WebGLLoseContext,WebGLExtensionLoseContext',
181 181
182 'CSSKeyframeRule': 182 'CSSKeyframeRule':
183 'CSSKeyframeRule,MozCSSKeyframeRule,WebKitCSSKeyframeRule', 183 'CSSKeyframeRule,MozCSSKeyframeRule,WebKitCSSKeyframeRule',
184 184
185 'CSSKeyframesRule': 185 'CSSKeyframesRule':
186 'CSSKeyframesRule,MozCSSKeyframesRule,WebKitCSSKeyframesRule', 186 'CSSKeyframesRule,MozCSSKeyframesRule,WebKitCSSKeyframesRule',
187 187
188 'WheelEvent': 'WheelEvent,MouseWheelEvent,MouseScrollEvent',
189
190 }, dart2jsOnly=True) 188 }, dart2jsOnly=True)
191 189
192 def IsRegisteredType(type_name): 190 def IsRegisteredType(type_name):
193 return type_name in _idl_type_registry 191 return type_name in _idl_type_registry
194 192
195 def MakeNativeSpec(javascript_binding_name): 193 def MakeNativeSpec(javascript_binding_name):
196 if javascript_binding_name in _dart2js_dom_custom_native_specs: 194 if javascript_binding_name in _dart2js_dom_custom_native_specs:
197 return _dart2js_dom_custom_native_specs[javascript_binding_name] 195 return _dart2js_dom_custom_native_specs[javascript_binding_name]
198 else: 196 else:
199 # Make the class 'hidden' so it is dynamically patched at runtime. This 197 # Make the class 'hidden' so it is dynamically patched at runtime. This
(...skipping 1146 matching lines...) Expand 10 before | Expand all | Expand 10 after
1346 if type_data.clazz == 'BasicTypedList': 1344 if type_data.clazz == 'BasicTypedList':
1347 if type_name == 'ArrayBuffer': 1345 if type_name == 'ArrayBuffer':
1348 dart_interface_name = 'ByteBuffer' 1346 dart_interface_name = 'ByteBuffer'
1349 else: 1347 else:
1350 dart_interface_name = self._renamer.RenameInterfaceId(type_name) 1348 dart_interface_name = self._renamer.RenameInterfaceId(type_name)
1351 return BasicTypedListIDLTypeInfo( 1349 return BasicTypedListIDLTypeInfo(
1352 type_name, type_data, dart_interface_name, self) 1350 type_name, type_data, dart_interface_name, self)
1353 1351
1354 class_name = '%sIDLTypeInfo' % type_data.clazz 1352 class_name = '%sIDLTypeInfo' % type_data.clazz
1355 return globals()[class_name](type_name, type_data) 1353 return globals()[class_name](type_name, type_data)
OLDNEW
« no previous file with comments | « tools/dom/dom.json ('k') | tools/dom/scripts/htmlrenamer.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698