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

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

Issue 2907563003: Revert "[Experiment] Stop suppressing DragEvent" (Closed)
Patch Set: Created 3 years, 6 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/generator.py ('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 28 matching lines...) Expand all
39 '*.beforeunload': ('beforeUnload', 'Event'), 39 '*.beforeunload': ('beforeUnload', 'Event'),
40 '*.blur': ('blur', 'Event'), 40 '*.blur': ('blur', 'Event'),
41 '*.canplay': ('canPlay', 'Event'), 41 '*.canplay': ('canPlay', 'Event'),
42 '*.canplaythrough': ('canPlayThrough', 'Event'), 42 '*.canplaythrough': ('canPlayThrough', 'Event'),
43 '*.change': ('change', 'Event'), 43 '*.change': ('change', 'Event'),
44 '*.click': ('click', 'MouseEvent'), 44 '*.click': ('click', 'MouseEvent'),
45 '*.contextmenu': ('contextMenu', 'MouseEvent'), 45 '*.contextmenu': ('contextMenu', 'MouseEvent'),
46 '*.copy': ('copy', 'ClipboardEvent'), 46 '*.copy': ('copy', 'ClipboardEvent'),
47 '*.cut': ('cut', 'ClipboardEvent'), 47 '*.cut': ('cut', 'ClipboardEvent'),
48 '*.dblclick': ('doubleClick', 'Event'), 48 '*.dblclick': ('doubleClick', 'Event'),
49 '*.drag': ('drag', 'DragEvent'), 49 '*.drag': ('drag', 'MouseEvent'),
50 '*.dragend': ('dragEnd', 'DragEvent'), 50 '*.dragend': ('dragEnd', 'MouseEvent'),
51 '*.dragenter': ('dragEnter', 'DragEvent'), 51 '*.dragenter': ('dragEnter', 'MouseEvent'),
52 '*.dragleave': ('dragLeave', 'DragEvent'), 52 '*.dragleave': ('dragLeave', 'MouseEvent'),
53 '*.dragover': ('dragOver', 'DragEvent'), 53 '*.dragover': ('dragOver', 'MouseEvent'),
54 '*.dragstart': ('dragStart', 'DragEvent'), 54 '*.dragstart': ('dragStart', 'MouseEvent'),
55 '*.drop': ('drop', 'DragEvent'), 55 '*.drop': ('drop', 'MouseEvent'),
56 '*.durationchange': ('durationChange', 'Event'), 56 '*.durationchange': ('durationChange', 'Event'),
57 '*.emptied': ('emptied', 'Event'), 57 '*.emptied': ('emptied', 'Event'),
58 '*.ended': ('ended', 'Event'), 58 '*.ended': ('ended', 'Event'),
59 '*.error': ('error', 'Event'), 59 '*.error': ('error', 'Event'),
60 '*.focus': ('focus', 'Event'), 60 '*.focus': ('focus', 'Event'),
61 # Should be HashChangeEvent, but IE does not support it. 61 # Should be HashChangeEvent, but IE does not support it.
62 '*.hashchange': ('hashChange', 'Event'), 62 '*.hashchange': ('hashChange', 'Event'),
63 '*.input': ('input', 'Event'), 63 '*.input': ('input', 'Event'),
64 '*.invalid': ('invalid', 'Event'), 64 '*.invalid': ('invalid', 'Event'),
65 '*.keydown': ('keyDown', 'KeyboardEvent'), 65 '*.keydown': ('keyDown', 'KeyboardEvent'),
(...skipping 347 matching lines...) Expand 10 before | Expand all | Expand 10 after
413 """ 413 """
414 key = '%s.%s' % (html_interface_name, dom_event_name) 414 key = '%s.%s' % (html_interface_name, dom_event_name)
415 if key in _html_event_types: 415 if key in _html_event_types:
416 return _html_event_types[key] 416 return _html_event_types[key]
417 key = '*.%s' % dom_event_name 417 key = '*.%s' % dom_event_name
418 if key in _html_event_types: 418 if key in _html_event_types:
419 return _html_event_types[key] 419 return _html_event_types[key]
420 _logger.warn('Cannot resolve event type for %s.%s' % 420 _logger.warn('Cannot resolve event type for %s.%s' %
421 (html_interface_name, dom_event_name)) 421 (html_interface_name, dom_event_name))
422 return None 422 return None
OLDNEW
« no previous file with comments | « tools/dom/scripts/generator.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698