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

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

Issue 2898673003: Split DragEvent back out from MouseEvent (Closed)
Patch Set: Created 3 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
« no previous file with comments | « tools/dom/idl/dart/dart.idl ('k') | tools/dom/scripts/htmleventgenerator.py » ('j') | 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 shared functionality for systems to generate 6 """This module provides shared functionality for systems to generate
7 Dart APIs from the IDL database.""" 7 Dart APIs from the IDL database."""
8 8
9 import copy 9 import copy
10 import json 10 import json
(...skipping 277 matching lines...) Expand 10 before | Expand all | Expand 10 after
288 'Event,InputEvent', 288 'Event,InputEvent',
289 289
290 'HTMLTableCellElement': 290 'HTMLTableCellElement':
291 'HTMLTableCellElement,HTMLTableDataCellElement,HTMLTableHeaderCellElemen t', 291 'HTMLTableCellElement,HTMLTableDataCellElement,HTMLTableHeaderCellElemen t',
292 292
293 'GainNode': 'GainNode,AudioGainNode', 293 'GainNode': 'GainNode,AudioGainNode',
294 294
295 'IDBOpenDBRequest': 295 'IDBOpenDBRequest':
296 'IDBOpenDBRequest,IDBVersionChangeRequest', 296 'IDBOpenDBRequest,IDBVersionChangeRequest',
297 297
298 'MouseEvent': 'MouseEvent,DragEvent',
299
300 'MutationObserver': 'MutationObserver,WebKitMutationObserver', 298 'MutationObserver': 'MutationObserver,WebKitMutationObserver',
301 299
302 'NamedNodeMap': 'NamedNodeMap,MozNamedAttrMap', 300 'NamedNodeMap': 'NamedNodeMap,MozNamedAttrMap',
303 301
304 'NodeList': 'NodeList,RadioNodeList', 302 'NodeList': 'NodeList,RadioNodeList',
305 303
306 'OscillatorNode': 'OscillatorNode,Oscillator', 304 'OscillatorNode': 'OscillatorNode,Oscillator',
307 305
308 'PannerNode': 'PannerNode,AudioPannerNode,webkitAudioPannerNode', 306 'PannerNode': 'PannerNode,AudioPannerNode,webkitAudioPannerNode',
309 307
(...skipping 1412 matching lines...) Expand 10 before | Expand all | Expand 10 after
1722 return_type == 'Rectangle') 1720 return_type == 'Rectangle')
1723 1721
1724 def wrap_return_type_blink(return_type, type_name, type_registry): 1722 def wrap_return_type_blink(return_type, type_name, type_registry):
1725 """Returns True if we should wrap the returned value. This checks 1723 """Returns True if we should wrap the returned value. This checks
1726 a number of different variations, calling the more basic functions 1724 a number of different variations, calling the more basic functions
1727 above.""" 1725 above."""
1728 return (wrap_unwrap_type_blink(return_type, type_registry) or 1726 return (wrap_unwrap_type_blink(return_type, type_registry) or
1729 wrap_unwrap_type_blink(type_name, type_registry) or 1727 wrap_unwrap_type_blink(type_name, type_registry) or
1730 wrap_type_blink(return_type, type_registry) or 1728 wrap_type_blink(return_type, type_registry) or
1731 wrap_unwrap_list_blink(return_type, type_registry)) 1729 wrap_unwrap_list_blink(return_type, type_registry))
OLDNEW
« no previous file with comments | « tools/dom/idl/dart/dart.idl ('k') | tools/dom/scripts/htmleventgenerator.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698