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

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

Issue 16365020: Fixing CSS Animations cross-platform issues. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 6 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 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
96 'NodeList': 'NodeList,RadioNodeList', 96 'NodeList': 'NodeList,RadioNodeList',
97 97
98 'RTCPeerConnection': 'RTCPeerConnection,mozRTCPeerConnection', 98 'RTCPeerConnection': 'RTCPeerConnection,mozRTCPeerConnection',
99 99
100 'RTCIceCandidate': 'RTCIceCandidate,mozRTCIceCandidate', 100 'RTCIceCandidate': 'RTCIceCandidate,mozRTCIceCandidate',
101 101
102 'RTCSessionDescription': 'RTCSessionDescription,mozRTCSessionDescription', 102 'RTCSessionDescription': 'RTCSessionDescription,mozRTCSessionDescription',
103 103
104 'TransitionEvent': 'TransitionEvent,WebKitTransitionEvent', 104 'TransitionEvent': 'TransitionEvent,WebKitTransitionEvent',
105 105
106 'WebKitCSSKeyframeRule':
107 'CSSKeyframeRule,MozCSSKeyframeRule,WebKitCSSKeyframeRule',
108
109 'WebKitCSSKeyframesRule':
110 'CSSKeyframesRule,MozCSSKeyframesRule,WebKitCSSKeyframesRule',
111
106 'WheelEvent': 'WheelEvent,MouseWheelEvent,MouseScrollEvent', 112 'WheelEvent': 'WheelEvent,MouseWheelEvent,MouseScrollEvent',
107 113
108 'XMLHttpRequestUpload': 'XMLHttpRequestUpload,XMLHttpRequestEventTarget', 114 'XMLHttpRequestUpload': 'XMLHttpRequestUpload,XMLHttpRequestEventTarget',
109 115
110 }, dart2jsOnly=True) 116 }, dart2jsOnly=True)
111 117
112 def IsRegisteredType(type_name): 118 def IsRegisteredType(type_name):
113 return type_name in _idl_type_registry 119 return type_name in _idl_type_registry
114 120
115 def MakeNativeSpec(javascript_binding_name): 121 def MakeNativeSpec(javascript_binding_name):
(...skipping 1027 matching lines...) Expand 10 before | Expand all | Expand 10 after
1143 type_name, type_data, dart_interface_name, self) 1149 type_name, type_data, dart_interface_name, self)
1144 1150
1145 if type_data.clazz == 'BasicTypedList': 1151 if type_data.clazz == 'BasicTypedList':
1146 dart_interface_name = self._renamer.RenameInterface( 1152 dart_interface_name = self._renamer.RenameInterface(
1147 self._database.GetInterface(type_name)) 1153 self._database.GetInterface(type_name))
1148 return BasicTypedListIDLTypeInfo( 1154 return BasicTypedListIDLTypeInfo(
1149 type_name, type_data, dart_interface_name, self) 1155 type_name, type_data, dart_interface_name, self)
1150 1156
1151 class_name = '%sIDLTypeInfo' % type_data.clazz 1157 class_name = '%sIDLTypeInfo' % type_data.clazz
1152 return globals()[class_name](type_name, type_data) 1158 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