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

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

Issue 15434003: Exposing a number of new events. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 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') | no next file » | 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 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
114 'AbstractWorker.error': ('error', 'ErrorEvent'), 114 'AbstractWorker.error': ('error', 'ErrorEvent'),
115 'AudioContext.complete': ('complete', 'Event'), 115 'AudioContext.complete': ('complete', 'Event'),
116 'DOMApplicationCache.cached': ('cached', 'Event'), 116 'DOMApplicationCache.cached': ('cached', 'Event'),
117 'DOMApplicationCache.checking': ('checking', 'Event'), 117 'DOMApplicationCache.checking': ('checking', 'Event'),
118 'DOMApplicationCache.downloading': ('downloading', 'Event'), 118 'DOMApplicationCache.downloading': ('downloading', 'Event'),
119 'DOMApplicationCache.noupdate': ('noUpdate', 'Event'), 119 'DOMApplicationCache.noupdate': ('noUpdate', 'Event'),
120 'DOMApplicationCache.obsolete': ('obsolete', 'Event'), 120 'DOMApplicationCache.obsolete': ('obsolete', 'Event'),
121 'DOMApplicationCache.progress': ('progress', 'Event'), 121 'DOMApplicationCache.progress': ('progress', 'Event'),
122 'DOMApplicationCache.updateready': ('updateReady', 'Event'), 122 'DOMApplicationCache.updateready': ('updateReady', 'Event'),
123 'Document.readystatechange': ('readyStateChange', 'Event'), 123 'Document.readystatechange': ('readyStateChange', 'Event'),
124 'Document.securitypolicyviolation': ('securityPolicyViolation', 'SecurityPolic yViolationEvent'),
124 'Document.selectionchange': ('selectionChange', 'Event'), 125 'Document.selectionchange': ('selectionChange', 'Event'),
125 'Document.webkitpointerlockchange': ('pointerLockChange', 'Event'), 126 'Document.webkitpointerlockchange': ('pointerLockChange', 'Event'),
126 'Document.webkitpointerlockerror': ('pointerLockError', 'Event'), 127 'Document.webkitpointerlockerror': ('pointerLockError', 'Event'),
127 'EventSource.open': ('open', 'Event'), 128 'EventSource.open': ('open', 'Event'),
128 'FileReader.abort': ('abort', 'ProgressEvent'), 129 'FileReader.abort': ('abort', 'ProgressEvent'),
129 'FileReader.load': ('load', 'ProgressEvent'), 130 'FileReader.load': ('load', 'ProgressEvent'),
130 'FileReader.loadend': ('loadEnd', 'ProgressEvent'), 131 'FileReader.loadend': ('loadEnd', 'ProgressEvent'),
131 'FileReader.loadstart': ('loadStart', 'ProgressEvent'), 132 'FileReader.loadstart': ('loadStart', 'ProgressEvent'),
132 'FileReader.progress': ('progress', 'ProgressEvent'), 133 'FileReader.progress': ('progress', 'ProgressEvent'),
133 'FileWriter.abort': ('abort', 'ProgressEvent'), 134 'FileWriter.abort': ('abort', 'ProgressEvent'),
134 'FileWriter.progress': ('progress', 'ProgressEvent'), 135 'FileWriter.progress': ('progress', 'ProgressEvent'),
135 'FileWriter.write': ('write', 'ProgressEvent'), 136 'FileWriter.write': ('write', 'ProgressEvent'),
136 'FileWriter.writeend': ('writeEnd', 'ProgressEvent'), 137 'FileWriter.writeend': ('writeEnd', 'ProgressEvent'),
137 'FileWriter.writestart': ('writeStart', 'ProgressEvent'), 138 'FileWriter.writestart': ('writeStart', 'ProgressEvent'),
139 'FontLoader.load': ('load', 'CssFontFaceLoadEvent'),
140 'FontLoader.loading': ('loading', 'CssFontFaceLoadEvent'),
141 'FontLoader.loadingdone': ('loadingDone', 'CssFontFaceLoadEvent'),
142 'FontLoader.loadstart': ('loadStart', 'CssFontFaceLoadEvent'),
138 'HTMLBodyElement.storage': ('storage', 'StorageEvent'), 143 'HTMLBodyElement.storage': ('storage', 'StorageEvent'),
139 'HTMLInputElement.webkitSpeechChange': ('speechChange', 'Event'), 144 'HTMLInputElement.webkitSpeechChange': ('speechChange', 'Event'),
145 'HTMLFormElement.autocomplete': ('autocomplete', 'Event'),
146 'HTMLFormElement.autocompleteerror': ('autocompleteError', 'AutocompleteErrorE vent'),
140 'HTMLMediaElement.loadstart': ('loadStart', 'Event'), 147 'HTMLMediaElement.loadstart': ('loadStart', 'Event'),
141 'HTMLMediaElement.progress': ('progress', 'Event'), 148 'HTMLMediaElement.progress': ('progress', 'Event'),
142 'HTMLMediaElement.show': ('show', 'Event'), 149 'HTMLMediaElement.show': ('show', 'Event'),
143 'HTMLMediaElement.webkitkeyadded': ('keyAdded', 'MediaKeyEvent'), 150 'HTMLMediaElement.webkitkeyadded': ('keyAdded', 'MediaKeyEvent'),
144 'HTMLMediaElement.webkitkeyerror': ('keyError', 'MediaKeyEvent'), 151 'HTMLMediaElement.webkitkeyerror': ('keyError', 'MediaKeyEvent'),
145 'HTMLMediaElement.webkitkeymessage': ('keyMessage', 'MediaKeyEvent'), 152 'HTMLMediaElement.webkitkeymessage': ('keyMessage', 'MediaKeyEvent'),
146 'HTMLMediaElement.webkitneedkey': ('needKey', 'MediaKeyEvent'), 153 'HTMLMediaElement.webkitneedkey': ('needKey', 'MediaKeyEvent'),
147 'IDBDatabase.versionchange': ('versionChange', 'VersionChangeEvent'), 154 'IDBDatabase.versionchange': ('versionChange', 'VersionChangeEvent'),
148 'IDBOpenDBRequest.blocked': ('blocked', 'Event'), 155 'IDBOpenDBRequest.blocked': ('blocked', 'Event'),
149 'IDBOpenDBRequest.upgradeneeded': ('upgradeNeeded', 'VersionChangeEvent'), 156 'IDBOpenDBRequest.upgradeneeded': ('upgradeNeeded', 'VersionChangeEvent'),
150 'IDBRequest.success': ('success', 'Event'), 157 'IDBRequest.success': ('success', 'Event'),
151 'IDBTransaction.complete': ('complete', 'Event'), 158 'IDBTransaction.complete': ('complete', 'Event'),
152 'MediaStream.addtrack': ('addTrack', 'Event'), 159 'MediaStream.addtrack': ('addTrack', 'Event'),
153 'MediaStream.removetrack': ('removeTrack', 'Event'), 160 'MediaStream.removetrack': ('removeTrack', 'Event'),
154 'MediaStreamTrack.mute': ('mute', 'Event'), 161 'MediaStreamTrack.mute': ('mute', 'Event'),
155 'MediaStreamTrack.unmute': ('unmute', 'Event'), 162 'MediaStreamTrack.unmute': ('unmute', 'Event'),
163 'MIDIPort.disconnect': ('disconnect', 'MIDIConnectionEvent'),
156 'Notification.click': ('click', 'Event'), 164 'Notification.click': ('click', 'Event'),
157 'Notification.close': ('close', 'Event'), 165 'Notification.close': ('close', 'Event'),
158 'Notification.display': ('display', 'Event'), 166 'Notification.display': ('display', 'Event'),
159 'Notification.show': ('show', 'Event'), 167 'Notification.show': ('show', 'Event'),
168 'Performance.webkitresourcetimingbufferfull': ('resourceTimingBufferFull', 'Ev ent'),
160 'RTCDTMFSender.tonechange': ('toneChange', 'RtcDtmfToneChangeEvent'), 169 'RTCDTMFSender.tonechange': ('toneChange', 'RtcDtmfToneChangeEvent'),
161 'RTCDataChannel.close': ('close', 'Event'), 170 'RTCDataChannel.close': ('close', 'Event'),
162 'RTCDataChannel.open': ('open', 'Event'), 171 'RTCDataChannel.open': ('open', 'Event'),
163 'RTCPeerConnection.addstream': ('addStream', 'MediaStreamEvent'), 172 'RTCPeerConnection.addstream': ('addStream', 'MediaStreamEvent'),
164 'RTCPeerConnection.datachannel': ('dataChannel', 'RtcDataChannelEvent'), 173 'RTCPeerConnection.datachannel': ('dataChannel', 'RtcDataChannelEvent'),
165 'RTCPeerConnection.icecandidate': ('iceCandidate', 'RtcIceCandidateEvent'), 174 'RTCPeerConnection.icecandidate': ('iceCandidate', 'RtcIceCandidateEvent'),
166 'RTCPeerConnection.iceconnectionstatechange': ('iceConnectionStateChange', 'Ev ent'), 175 'RTCPeerConnection.iceconnectionstatechange': ('iceConnectionStateChange', 'Ev ent'),
167 'RTCPeerConnection.negotiationneeded': ('negotiationNeeded', 'Event'), 176 'RTCPeerConnection.negotiationneeded': ('negotiationNeeded', 'Event'),
168 'RTCPeerConnection.removestream': ('removeStream', 'MediaStreamEvent'), 177 'RTCPeerConnection.removestream': ('removeStream', 'MediaStreamEvent'),
169 'RTCPeerConnection.signalingstatechange': ('signalingStateChange', 'Event'), 178 'RTCPeerConnection.signalingstatechange': ('signalingStateChange', 'Event'),
170 'SharedWorkerContext.connect': ('connect', 'Event'), 179 'SharedWorkerContext.connect': ('connect', 'Event'),
171 'SpeechRecognition.audioend': ('audioEnd', 'Event'), 180 'SpeechRecognition.audioend': ('audioEnd', 'Event'),
172 'SpeechRecognition.audiostart': ('audioStart', 'Event'), 181 'SpeechRecognition.audiostart': ('audioStart', 'Event'),
173 'SpeechRecognition.end': ('end', 'Event'), 182 'SpeechRecognition.end': ('end', 'Event'),
174 'SpeechRecognition.error': ('error', 'SpeechRecognitionError'), 183 'SpeechRecognition.error': ('error', 'SpeechRecognitionError'),
175 'SpeechRecognition.nomatch': ('noMatch', 'SpeechRecognitionEvent'), 184 'SpeechRecognition.nomatch': ('noMatch', 'SpeechRecognitionEvent'),
176 'SpeechRecognition.result': ('result', 'SpeechRecognitionEvent'), 185 'SpeechRecognition.result': ('result', 'SpeechRecognitionEvent'),
177 'SpeechRecognition.soundend': ('soundEnd', 'Event'), 186 'SpeechRecognition.soundend': ('soundEnd', 'Event'),
178 'SpeechRecognition.soundstart': ('soundStart', 'Event'), 187 'SpeechRecognition.soundstart': ('soundStart', 'Event'),
179 'SpeechRecognition.speechend': ('speechEnd', 'Event'), 188 'SpeechRecognition.speechend': ('speechEnd', 'Event'),
180 'SpeechRecognition.speechstart': ('speechStart', 'Event'), 189 'SpeechRecognition.speechstart': ('speechStart', 'Event'),
181 'SpeechRecognition.start': ('start', 'Event'), 190 'SpeechRecognition.start': ('start', 'Event'),
191 'SpeechSynthesisUtterance.boundary': ('boundary', 'SpeechSynthesisEvent'),
192 'SpeechSynthesisUtterance.end': ('end', 'SpeechSynthesisEvent'),
193 'SpeechSynthesisUtterance.mark': ('mark', 'SpeechSynthesisEvent'),
194 'SpeechSynthesisUtterance.resume': ('resume', 'SpeechSynthesisEvent'),
195 'SpeechSynthesisUtterance.start': ('start', 'SpeechSynthesisEvent'),
182 'TextTrack.cuechange': ('cueChange', 'Event'), 196 'TextTrack.cuechange': ('cueChange', 'Event'),
183 'TextTrackCue.enter': ('enter', 'Event'), 197 'TextTrackCue.enter': ('enter', 'Event'),
184 'TextTrackCue.exit': ('exit', 'Event'), 198 'TextTrackCue.exit': ('exit', 'Event'),
185 'TextTrackList.addtrack': ('addTrack', 'TrackEvent'), 199 'TextTrackList.addtrack': ('addTrack', 'TrackEvent'),
186 'WebSocket.close': ('close', 'CloseEvent'), 200 'WebSocket.close': ('close', 'CloseEvent'),
187 'WebSocket.open': ('open', 'Event'), # should be OpenEvent, but not exposed. 201 'WebSocket.open': ('open', 'Event'), # should be OpenEvent, but not exposed.
188 'Window.DOMContentLoaded': ('contentLoaded', 'Event'), 202 'Window.DOMContentLoaded': ('contentLoaded', 'Event'),
189 'Window.devicemotion': ('deviceMotion', 'DeviceMotionEvent'), 203 'Window.devicemotion': ('deviceMotion', 'DeviceMotionEvent'),
190 'Window.deviceorientation': ('deviceOrientation', 'DeviceOrientationEvent'), 204 'Window.deviceorientation': ('deviceOrientation', 'DeviceOrientationEvent'),
191 'Window.loadstart': ('loadStart', 'Event'), 205 'Window.loadstart': ('loadStart', 'Event'),
(...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after
348 """ 362 """
349 key = '%s.%s' % (html_interface_name, dom_event_name) 363 key = '%s.%s' % (html_interface_name, dom_event_name)
350 if key in _html_event_types: 364 if key in _html_event_types:
351 return _html_event_types[key] 365 return _html_event_types[key]
352 key = '*.%s' % dom_event_name 366 key = '*.%s' % dom_event_name
353 if key in _html_event_types: 367 if key in _html_event_types:
354 return _html_event_types[key] 368 return _html_event_types[key]
355 _logger.warn('Cannot resolve event type for %s.%s' % 369 _logger.warn('Cannot resolve event type for %s.%s' %
356 (html_interface_name, dom_event_name)) 370 (html_interface_name, dom_event_name))
357 return None 371 return None
OLDNEW
« no previous file with comments | « tools/dom/dom.json ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698