OLD | NEW |
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 from generator import GetAnnotationsAndComments, FormatAnnotationsAndComments | 10 from generator import GetAnnotationsAndComments, FormatAnnotationsAndComments |
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
154 'IDBRequest.success': ('success', 'Event'), | 154 'IDBRequest.success': ('success', 'Event'), |
155 'IDBTransaction.complete': ('complete', 'Event'), | 155 'IDBTransaction.complete': ('complete', 'Event'), |
156 'MediaStream.addtrack': ('addTrack', 'Event'), | 156 'MediaStream.addtrack': ('addTrack', 'Event'), |
157 'MediaStream.removetrack': ('removeTrack', 'Event'), | 157 'MediaStream.removetrack': ('removeTrack', 'Event'), |
158 'MediaStreamTrack.mute': ('mute', 'Event'), | 158 'MediaStreamTrack.mute': ('mute', 'Event'), |
159 'MediaStreamTrack.unmute': ('unmute', 'Event'), | 159 'MediaStreamTrack.unmute': ('unmute', 'Event'), |
160 'Notification.click': ('click', 'Event'), | 160 'Notification.click': ('click', 'Event'), |
161 'Notification.close': ('close', 'Event'), | 161 'Notification.close': ('close', 'Event'), |
162 'Notification.display': ('display', 'Event'), | 162 'Notification.display': ('display', 'Event'), |
163 'Notification.show': ('show', 'Event'), | 163 'Notification.show': ('show', 'Event'), |
| 164 'RTCDTMFSender.tonechange': ('toneChange', 'RtcDtmfToneChangeEvent'), |
164 'RTCDataChannel.close': ('close', 'Event'), | 165 'RTCDataChannel.close': ('close', 'Event'), |
165 'RTCDataChannel.open': ('open', 'Event'), | 166 'RTCDataChannel.open': ('open', 'Event'), |
166 'RTCPeerConnection.addstream': ('addStream', 'MediaStreamEvent'), | 167 'RTCPeerConnection.addstream': ('addStream', 'MediaStreamEvent'), |
167 'RTCPeerConnection.datachannel': ('dataChannel', 'RtcDataChannelEvent'), | 168 'RTCPeerConnection.datachannel': ('dataChannel', 'RtcDataChannelEvent'), |
168 'RTCPeerConnection.icecandidate': ('iceCandidate', 'RtcIceCandidateEvent'), | 169 'RTCPeerConnection.icecandidate': ('iceCandidate', 'RtcIceCandidateEvent'), |
169 'RTCPeerConnection.icechange': ('iceChange', 'Event'), | 170 'RTCPeerConnection.iceconnectionstatechange': ('iceConnectionStateChange', 'Ev
ent'), |
170 'RTCPeerConnection.gatheringchange': ('gatheringChange', 'Event'), | |
171 'RTCPeerConnection.negotiationneeded': ('negotiationNeeded', 'Event'), | 171 'RTCPeerConnection.negotiationneeded': ('negotiationNeeded', 'Event'), |
172 'RTCPeerConnection.removestream': ('removeStream', 'MediaStreamEvent'), | 172 'RTCPeerConnection.removestream': ('removeStream', 'MediaStreamEvent'), |
173 'RTCPeerConnection.statechange': ('stateChange', 'Event'), | 173 'RTCPeerConnection.signalingstatechange': ('signalingStateChange', 'Event'), |
174 'SharedWorkerContext.connect': ('connect', 'Event'), | 174 'SharedWorkerContext.connect': ('connect', 'Event'), |
175 'SpeechRecognition.audioend': ('audioEnd', 'Event'), | 175 'SpeechRecognition.audioend': ('audioEnd', 'Event'), |
176 'SpeechRecognition.audiostart': ('audioStart', 'Event'), | 176 'SpeechRecognition.audiostart': ('audioStart', 'Event'), |
177 'SpeechRecognition.end': ('end', 'Event'), | 177 'SpeechRecognition.end': ('end', 'Event'), |
178 'SpeechRecognition.error': ('error', 'SpeechRecognitionError'), | 178 'SpeechRecognition.error': ('error', 'SpeechRecognitionError'), |
179 'SpeechRecognition.nomatch': ('noMatch', 'SpeechRecognitionEvent'), | 179 'SpeechRecognition.nomatch': ('noMatch', 'SpeechRecognitionEvent'), |
180 'SpeechRecognition.result': ('result', 'SpeechRecognitionEvent'), | 180 'SpeechRecognition.result': ('result', 'SpeechRecognitionEvent'), |
181 'SpeechRecognition.soundend': ('soundEnd', 'Event'), | 181 'SpeechRecognition.soundend': ('soundEnd', 'Event'), |
182 'SpeechRecognition.soundstart': ('soundStart', 'Event'), | 182 'SpeechRecognition.soundstart': ('soundStart', 'Event'), |
183 'SpeechRecognition.speechend': ('speechEnd', 'Event'), | 183 'SpeechRecognition.speechend': ('speechEnd', 'Event'), |
(...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
352 """ | 352 """ |
353 key = '%s.%s' % (html_interface_name, dom_event_name) | 353 key = '%s.%s' % (html_interface_name, dom_event_name) |
354 if key in _html_event_types: | 354 if key in _html_event_types: |
355 return _html_event_types[key] | 355 return _html_event_types[key] |
356 key = '*.%s' % dom_event_name | 356 key = '*.%s' % dom_event_name |
357 if key in _html_event_types: | 357 if key in _html_event_types: |
358 return _html_event_types[key] | 358 return _html_event_types[key] |
359 _logger.warn('Cannot resolve event type for %s.%s' % | 359 _logger.warn('Cannot resolve event type for %s.%s' % |
360 (html_interface_name, dom_event_name)) | 360 (html_interface_name, dom_event_name)) |
361 return None | 361 return None |
OLD | NEW |