| 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 1474 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1485 'EventHandler': TypeData(clazz='Interface', custom_to_native=True), | 1485 'EventHandler': TypeData(clazz='Interface', custom_to_native=True), |
| 1486 'EventTarget': TypeData(clazz='Interface', custom_to_native=True), | 1486 'EventTarget': TypeData(clazz='Interface', custom_to_native=True), |
| 1487 'HTMLElement': TypeData(clazz='Interface', merged_into='Element', | 1487 'HTMLElement': TypeData(clazz='Interface', merged_into='Element', |
| 1488 custom_to_dart=True), | 1488 custom_to_dart=True), |
| 1489 'IDBAny': TypeData(clazz='Interface', dart_type='dynamic', custom_to_native=
True), | 1489 'IDBAny': TypeData(clazz='Interface', dart_type='dynamic', custom_to_native=
True), |
| 1490 'MutationRecordArray': TypeData(clazz='Interface', # C++ pass by pointer. | 1490 'MutationRecordArray': TypeData(clazz='Interface', # C++ pass by pointer. |
| 1491 native_type='MutationRecordArray', dart_type='List<MutationRecord>'), | 1491 native_type='MutationRecordArray', dart_type='List<MutationRecord>'), |
| 1492 'StyleSheet': TypeData(clazz='Interface', conversion_includes=['CSSStyleShee
t']), | 1492 'StyleSheet': TypeData(clazz='Interface', conversion_includes=['CSSStyleShee
t']), |
| 1493 'SVGElement': TypeData(clazz='Interface', custom_to_dart=True), | 1493 'SVGElement': TypeData(clazz='Interface', custom_to_dart=True), |
| 1494 | 1494 |
| 1495 'AudioTrackList': TypeData(clazz='Interface', item_type='AudioTrack', |
| 1496 suppress_interface=False, dart_type='List<AudioTrack>'), |
| 1495 'ClientRectList': TypeData(clazz='Interface', | 1497 'ClientRectList': TypeData(clazz='Interface', |
| 1496 item_type='ClientRect', dart_type='List<Rectangle>', | 1498 item_type='ClientRect', dart_type='List<Rectangle>', |
| 1497 suppress_interface=True), | 1499 suppress_interface=True), |
| 1498 'CSSRuleList': TypeData(clazz='Interface', | 1500 'CSSRuleList': TypeData(clazz='Interface', |
| 1499 item_type='CSSRule', suppress_interface=True), | 1501 item_type='CSSRule', suppress_interface=True), |
| 1500 'CSSValueList': TypeData(clazz='Interface', | 1502 'CSSValueList': TypeData(clazz='Interface', |
| 1501 item_type='CSSValue', suppress_interface=True), | 1503 item_type='CSSValue', suppress_interface=True), |
| 1502 'MimeTypeArray': TypeData(clazz='Interface', item_type='MimeType'), | 1504 'MimeTypeArray': TypeData(clazz='Interface', item_type='MimeType'), |
| 1503 'PluginArray': TypeData(clazz='Interface', item_type='Plugin'), | 1505 'PluginArray': TypeData(clazz='Interface', item_type='Plugin'), |
| 1504 'DOMStringList': TypeData(clazz='Interface', item_type='DOMString', | 1506 'DOMStringList': TypeData(clazz='Interface', item_type='DOMString', |
| (...skipping 215 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1720 return_type == 'Rectangle') | 1722 return_type == 'Rectangle') |
| 1721 | 1723 |
| 1722 def wrap_return_type_blink(return_type, type_name, type_registry): | 1724 def wrap_return_type_blink(return_type, type_name, type_registry): |
| 1723 """Returns True if we should wrap the returned value. This checks | 1725 """Returns True if we should wrap the returned value. This checks |
| 1724 a number of different variations, calling the more basic functions | 1726 a number of different variations, calling the more basic functions |
| 1725 above.""" | 1727 above.""" |
| 1726 return (wrap_unwrap_type_blink(return_type, type_registry) or | 1728 return (wrap_unwrap_type_blink(return_type, type_registry) or |
| 1727 wrap_unwrap_type_blink(type_name, type_registry) or | 1729 wrap_unwrap_type_blink(type_name, type_registry) or |
| 1728 wrap_type_blink(return_type, type_registry) or | 1730 wrap_type_blink(return_type, type_registry) or |
| 1729 wrap_unwrap_list_blink(return_type, type_registry)) | 1731 wrap_unwrap_list_blink(return_type, type_registry)) |
| OLD | NEW |