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

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

Issue 13901019: Fixing error event type of Workers. (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 | « sdk/lib/html/dartium/html_dartium.dart ('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 from generator import GetAnnotationsAndComments, FormatAnnotationsAndComments 10 from generator import GetAnnotationsAndComments, FormatAnnotationsAndComments
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
105 '*.touchstart': ('touchStart', 'TouchEvent'), 105 '*.touchstart': ('touchStart', 'TouchEvent'),
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 'AbstractWorker.error': ('error', 'ErrorEvent'),
115 'AudioContext.complete': ('complete', 'Event'), 116 'AudioContext.complete': ('complete', 'Event'),
116 'DOMApplicationCache.cached': ('cached', 'Event'), 117 'DOMApplicationCache.cached': ('cached', 'Event'),
117 'DOMApplicationCache.checking': ('checking', 'Event'), 118 'DOMApplicationCache.checking': ('checking', 'Event'),
118 'DOMApplicationCache.downloading': ('downloading', 'Event'), 119 'DOMApplicationCache.downloading': ('downloading', 'Event'),
119 'DOMApplicationCache.noupdate': ('noUpdate', 'Event'), 120 'DOMApplicationCache.noupdate': ('noUpdate', 'Event'),
120 'DOMApplicationCache.obsolete': ('obsolete', 'Event'), 121 'DOMApplicationCache.obsolete': ('obsolete', 'Event'),
121 'DOMApplicationCache.progress': ('progress', 'Event'), 122 'DOMApplicationCache.progress': ('progress', 'Event'),
122 'DOMApplicationCache.updateready': ('updateReady', 'Event'), 123 'DOMApplicationCache.updateready': ('updateReady', 'Event'),
123 'Document.readystatechange': ('readyStateChange', 'Event'), 124 'Document.readystatechange': ('readyStateChange', 'Event'),
124 'Document.selectionchange': ('selectionChange', 'Event'), 125 'Document.selectionchange': ('selectionChange', 'Event'),
(...skipping 223 matching lines...) Expand 10 before | Expand all | Expand 10 after
348 """ 349 """
349 key = '%s.%s' % (html_interface_name, dom_event_name) 350 key = '%s.%s' % (html_interface_name, dom_event_name)
350 if key in _html_event_types: 351 if key in _html_event_types:
351 return _html_event_types[key] 352 return _html_event_types[key]
352 key = '*.%s' % dom_event_name 353 key = '*.%s' % dom_event_name
353 if key in _html_event_types: 354 if key in _html_event_types:
354 return _html_event_types[key] 355 return _html_event_types[key]
355 _logger.warn('Cannot resolve event type for %s.%s' % 356 _logger.warn('Cannot resolve event type for %s.%s' %
356 (html_interface_name, dom_event_name)) 357 (html_interface_name, dom_event_name))
357 return None 358 return None
OLDNEW
« no previous file with comments | « sdk/lib/html/dartium/html_dartium.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698