| 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 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 106 '*.unload': ('unload', 'Event'), | 106 '*.unload': ('unload', 'Event'), |
| 107 '*.volumechange': ('volumeChange', 'Event'), | 107 '*.volumechange': ('volumeChange', 'Event'), |
| 108 '*.waiting': ('waiting', 'Event'), | 108 '*.waiting': ('waiting', 'Event'), |
| 109 '*.webkitAnimationEnd': ('animationEnd', 'AnimationEvent'), | 109 '*.webkitAnimationEnd': ('animationEnd', 'AnimationEvent'), |
| 110 '*.webkitAnimationIteration': ('animationIteration', 'AnimationEvent'), | 110 '*.webkitAnimationIteration': ('animationIteration', 'AnimationEvent'), |
| 111 '*.webkitAnimationStart': ('animationStart', 'AnimationEvent'), | 111 '*.webkitAnimationStart': ('animationStart', 'AnimationEvent'), |
| 112 '*.webkitTransitionEnd': ('transitionEnd', 'TransitionEvent'), | 112 '*.webkitTransitionEnd': ('transitionEnd', 'TransitionEvent'), |
| 113 '*.webkitfullscreenchange': ('fullscreenChange', 'Event'), | 113 '*.webkitfullscreenchange': ('fullscreenChange', 'Event'), |
| 114 '*.webkitfullscreenerror': ('fullscreenError', 'Event'), | 114 '*.webkitfullscreenerror': ('fullscreenError', 'Event'), |
| 115 'AudioContext.complete': ('complete', 'Event'), | 115 'AudioContext.complete': ('complete', 'Event'), |
| 116 'BatteryManager.chargingchange': ('chargingChange', 'Event'), | |
| 117 'BatteryManager.chargingtimechange': ('chargingTimeChange', 'Event'), | |
| 118 'BatteryManager.dischargingtimechange': ('dischargingTimeChange', 'Event'), | |
| 119 'BatteryManager.levelchange': ('levelChange', 'Event'), | |
| 120 'DOMApplicationCache.cached': ('cached', 'Event'), | 116 'DOMApplicationCache.cached': ('cached', 'Event'), |
| 121 'DOMApplicationCache.checking': ('checking', 'Event'), | 117 'DOMApplicationCache.checking': ('checking', 'Event'), |
| 122 'DOMApplicationCache.downloading': ('downloading', 'Event'), | 118 'DOMApplicationCache.downloading': ('downloading', 'Event'), |
| 123 'DOMApplicationCache.noupdate': ('noUpdate', 'Event'), | 119 'DOMApplicationCache.noupdate': ('noUpdate', 'Event'), |
| 124 'DOMApplicationCache.obsolete': ('obsolete', 'Event'), | 120 'DOMApplicationCache.obsolete': ('obsolete', 'Event'), |
| 125 'DOMApplicationCache.progress': ('progress', 'Event'), | 121 'DOMApplicationCache.progress': ('progress', 'Event'), |
| 126 'DOMApplicationCache.updateready': ('updateReady', 'Event'), | 122 'DOMApplicationCache.updateready': ('updateReady', 'Event'), |
| 127 'Document.readystatechange': ('readyStateChange', 'Event'), | 123 'Document.readystatechange': ('readyStateChange', 'Event'), |
| 128 'Document.selectionchange': ('selectionChange', 'Event'), | 124 'Document.selectionchange': ('selectionChange', 'Event'), |
| 129 'Document.webkitpointerlockchange': ('pointerLockChange', 'Event'), | 125 'Document.webkitpointerlockchange': ('pointerLockChange', 'Event'), |
| (...skipping 222 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 352 """ | 348 """ |
| 353 key = '%s.%s' % (html_interface_name, dom_event_name) | 349 key = '%s.%s' % (html_interface_name, dom_event_name) |
| 354 if key in _html_event_types: | 350 if key in _html_event_types: |
| 355 return _html_event_types[key] | 351 return _html_event_types[key] |
| 356 key = '*.%s' % dom_event_name | 352 key = '*.%s' % dom_event_name |
| 357 if key in _html_event_types: | 353 if key in _html_event_types: |
| 358 return _html_event_types[key] | 354 return _html_event_types[key] |
| 359 _logger.warn('Cannot resolve event type for %s.%s' % | 355 _logger.warn('Cannot resolve event type for %s.%s' % |
| 360 (html_interface_name, dom_event_name)) | 356 (html_interface_name, dom_event_name)) |
| 361 return None | 357 return None |
| OLD | NEW |