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 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 Loading... |
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 Loading... |
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)) |
OLD | NEW |