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

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

Issue 1879253004: Revert "Fix a few strong mode errors in dart:html" (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 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
« no previous file with comments | « tools/dom/scripts/htmldartgenerator.py ('k') | tools/dom/scripts/systemhtml.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 functionality to generate dart:html event classes.""" 6 """This module provides functionality to generate dart:html event classes."""
7 7
8 import logging 8 import logging
9 import monitored 9 import monitored
10 10
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after
116 '*.wheel': ('wheel', 'WheelEvent'), 116 '*.wheel': ('wheel', 'WheelEvent'),
117 'AbstractWorker.error': ('error', 'ErrorEvent'), 117 'AbstractWorker.error': ('error', 'ErrorEvent'),
118 'AudioContext.complete': ('complete', 'Event'), 118 'AudioContext.complete': ('complete', 'Event'),
119 'ApplicationCache.cached': ('cached', 'Event'), 119 'ApplicationCache.cached': ('cached', 'Event'),
120 'ApplicationCache.checking': ('checking', 'Event'), 120 'ApplicationCache.checking': ('checking', 'Event'),
121 'ApplicationCache.downloading': ('downloading', 'Event'), 121 'ApplicationCache.downloading': ('downloading', 'Event'),
122 'ApplicationCache.noupdate': ('noUpdate', 'Event'), 122 'ApplicationCache.noupdate': ('noUpdate', 'Event'),
123 'ApplicationCache.obsolete': ('obsolete', 'Event'), 123 'ApplicationCache.obsolete': ('obsolete', 'Event'),
124 'ApplicationCache.progress': ('progress', 'ProgressEvent'), 124 'ApplicationCache.progress': ('progress', 'ProgressEvent'),
125 'ApplicationCache.updateready': ('updateReady', 'Event'), 125 'ApplicationCache.updateready': ('updateReady', 'Event'),
126 'CompositorWorker.error': ('error', 'ErrorEvent'),
127 'Document.readystatechange': ('readyStateChange', 'Event'), 126 'Document.readystatechange': ('readyStateChange', 'Event'),
128 'Document.securitypolicyviolation': ('securityPolicyViolation', 'SecurityPolic yViolationEvent'), 127 'Document.securitypolicyviolation': ('securityPolicyViolation', 'SecurityPolic yViolationEvent'),
129 'Document.selectionchange': ('selectionChange', 'Event'), 128 'Document.selectionchange': ('selectionChange', 'Event'),
130 'Document.pointerlockchange': ('pointerLockChange', 'Event'), 129 'Document.pointerlockchange': ('pointerLockChange', 'Event'),
131 'Document.pointerlockerror': ('pointerLockError', 'Event'), 130 'Document.pointerlockerror': ('pointerLockError', 'Event'),
132 'EventSource.open': ('open', 'Event'), 131 'EventSource.open': ('open', 'Event'),
133 'FileReader.abort': ('abort', 'ProgressEvent'), 132 'FileReader.abort': ('abort', 'ProgressEvent'),
134 'FileReader.load': ('load', 'ProgressEvent'), 133 'FileReader.load': ('load', 'ProgressEvent'),
135 'FileReader.loadend': ('loadEnd', 'ProgressEvent'), 134 'FileReader.loadend': ('loadEnd', 'ProgressEvent'),
136 'FileReader.loadstart': ('loadStart', 'ProgressEvent'), 135 'FileReader.loadstart': ('loadStart', 'ProgressEvent'),
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
184 'RTCDataChannel.close': ('close', 'Event'), 183 'RTCDataChannel.close': ('close', 'Event'),
185 'RTCDataChannel.open': ('open', 'Event'), 184 'RTCDataChannel.open': ('open', 'Event'),
186 'RTCPeerConnection.addstream': ('addStream', 'MediaStreamEvent'), 185 'RTCPeerConnection.addstream': ('addStream', 'MediaStreamEvent'),
187 'RTCPeerConnection.datachannel': ('dataChannel', 'RtcDataChannelEvent'), 186 'RTCPeerConnection.datachannel': ('dataChannel', 'RtcDataChannelEvent'),
188 'RTCPeerConnection.icecandidate': ('iceCandidate', 'RtcIceCandidateEvent'), 187 'RTCPeerConnection.icecandidate': ('iceCandidate', 'RtcIceCandidateEvent'),
189 'RTCPeerConnection.iceconnectionstatechange': ('iceConnectionStateChange', 'Ev ent'), 188 'RTCPeerConnection.iceconnectionstatechange': ('iceConnectionStateChange', 'Ev ent'),
190 'RTCPeerConnection.negotiationneeded': ('negotiationNeeded', 'Event'), 189 'RTCPeerConnection.negotiationneeded': ('negotiationNeeded', 'Event'),
191 'RTCPeerConnection.removestream': ('removeStream', 'MediaStreamEvent'), 190 'RTCPeerConnection.removestream': ('removeStream', 'MediaStreamEvent'),
192 'RTCPeerConnection.signalingstatechange': ('signalingStateChange', 'Event'), 191 'RTCPeerConnection.signalingstatechange': ('signalingStateChange', 'Event'),
193 'ScriptProcessorNode.audioprocess': ('audioProcess', 'AudioProcessingEvent'), 192 'ScriptProcessorNode.audioprocess': ('audioProcess', 'AudioProcessingEvent'),
194 'SharedWorker.error': ('error', 'ErrorEvent'),
195 'SharedWorkerGlobalScope.connect': ('connect', 'Event'), 193 'SharedWorkerGlobalScope.connect': ('connect', 'Event'),
196 'SpeechRecognition.audioend': ('audioEnd', 'Event'), 194 'SpeechRecognition.audioend': ('audioEnd', 'Event'),
197 'SpeechRecognition.audiostart': ('audioStart', 'Event'), 195 'SpeechRecognition.audiostart': ('audioStart', 'Event'),
198 'SpeechRecognition.end': ('end', 'Event'), 196 'SpeechRecognition.end': ('end', 'Event'),
199 'SpeechRecognition.error': ('error', 'SpeechRecognitionError'), 197 'SpeechRecognition.error': ('error', 'SpeechRecognitionError'),
200 'SpeechRecognition.nomatch': ('noMatch', 'SpeechRecognitionEvent'), 198 'SpeechRecognition.nomatch': ('noMatch', 'SpeechRecognitionEvent'),
201 'SpeechRecognition.result': ('result', 'SpeechRecognitionEvent'), 199 'SpeechRecognition.result': ('result', 'SpeechRecognitionEvent'),
202 'SpeechRecognition.soundend': ('soundEnd', 'Event'), 200 'SpeechRecognition.soundend': ('soundEnd', 'Event'),
203 'SpeechRecognition.soundstart': ('soundStart', 'Event'), 201 'SpeechRecognition.soundstart': ('soundStart', 'Event'),
204 'SpeechRecognition.speechend': ('speechEnd', 'Event'), 202 'SpeechRecognition.speechend': ('speechEnd', 'Event'),
(...skipping 11 matching lines...) Expand all
216 'WebSocket.close': ('close', 'CloseEvent'), 214 'WebSocket.close': ('close', 'CloseEvent'),
217 'WebSocket.open': ('open', 'Event'), # should be OpenEvent, but not exposed. 215 'WebSocket.open': ('open', 'Event'), # should be OpenEvent, but not exposed.
218 'Window.DOMContentLoaded': ('contentLoaded', 'Event'), 216 'Window.DOMContentLoaded': ('contentLoaded', 'Event'),
219 'Window.devicemotion': ('deviceMotion', 'DeviceMotionEvent'), 217 'Window.devicemotion': ('deviceMotion', 'DeviceMotionEvent'),
220 'Window.deviceorientation': ('deviceOrientation', 'DeviceOrientationEvent'), 218 'Window.deviceorientation': ('deviceOrientation', 'DeviceOrientationEvent'),
221 'Window.loadstart': ('loadStart', 'Event'), 219 'Window.loadstart': ('loadStart', 'Event'),
222 'Window.pagehide': ('pageHide', 'Event'), 220 'Window.pagehide': ('pageHide', 'Event'),
223 'Window.pageshow': ('pageShow', 'Event'), 221 'Window.pageshow': ('pageShow', 'Event'),
224 'Window.progress': ('progress', 'Event'), 222 'Window.progress': ('progress', 'Event'),
225 'Window.webkittransitionend': ('webkitTransitionEnd', 'TransitionEvent'), 223 'Window.webkittransitionend': ('webkitTransitionEnd', 'TransitionEvent'),
226 'Worker.error': ('error', 'ErrorEvent'),
227 'XMLHttpRequestEventTarget.abort': ('abort', 'ProgressEvent'), 224 'XMLHttpRequestEventTarget.abort': ('abort', 'ProgressEvent'),
228 'XMLHttpRequestEventTarget.error': ('error', 'ProgressEvent'), 225 'XMLHttpRequestEventTarget.error': ('error', 'ProgressEvent'),
229 'XMLHttpRequestEventTarget.load': ('load', 'ProgressEvent'), 226 'XMLHttpRequestEventTarget.load': ('load', 'ProgressEvent'),
230 'XMLHttpRequestEventTarget.loadend': ('loadEnd', 'ProgressEvent'), 227 'XMLHttpRequestEventTarget.loadend': ('loadEnd', 'ProgressEvent'),
231 'XMLHttpRequestEventTarget.loadstart': ('loadStart', 'ProgressEvent'), 228 'XMLHttpRequestEventTarget.loadstart': ('loadStart', 'ProgressEvent'),
232 'XMLHttpRequestEventTarget.progress': ('progress', 'ProgressEvent'), 229 'XMLHttpRequestEventTarget.progress': ('progress', 'ProgressEvent'),
233 'XMLHttpRequestEventTarget.timeout': ('timeout', 'ProgressEvent'), 230 'XMLHttpRequestEventTarget.timeout': ('timeout', 'ProgressEvent'),
234 'XMLHttpRequest.readystatechange': ('readyStateChange', 'ProgressEvent'), 231 'XMLHttpRequest.readystatechange': ('readyStateChange', 'ProgressEvent'),
235 }) 232 })
236 233
(...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after
413 """ 410 """
414 key = '%s.%s' % (html_interface_name, dom_event_name) 411 key = '%s.%s' % (html_interface_name, dom_event_name)
415 if key in _html_event_types: 412 if key in _html_event_types:
416 return _html_event_types[key] 413 return _html_event_types[key]
417 key = '*.%s' % dom_event_name 414 key = '*.%s' % dom_event_name
418 if key in _html_event_types: 415 if key in _html_event_types:
419 return _html_event_types[key] 416 return _html_event_types[key]
420 _logger.warn('Cannot resolve event type for %s.%s' % 417 _logger.warn('Cannot resolve event type for %s.%s' %
421 (html_interface_name, dom_event_name)) 418 (html_interface_name, dom_event_name))
422 return None 419 return None
OLDNEW
« no previous file with comments | « tools/dom/scripts/htmldartgenerator.py ('k') | tools/dom/scripts/systemhtml.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698