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 703 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
714 'Dictionary set': | 714 'Dictionary set': |
715 Conversion('convertDartToNative_Dictionary', 'Map', 'dynamic'), | 715 Conversion('convertDartToNative_Dictionary', 'Map', 'dynamic'), |
716 | 716 |
717 'sequence<DOMString> set': | 717 'sequence<DOMString> set': |
718 Conversion('convertDartToNative_StringArray', 'List<String>', 'List'), | 718 Conversion('convertDartToNative_StringArray', 'List<String>', 'List'), |
719 | 719 |
720 'any set IDBObjectStore.add': _serialize_SSV, | 720 'any set IDBObjectStore.add': _serialize_SSV, |
721 'any set IDBObjectStore.put': _serialize_SSV, | 721 'any set IDBObjectStore.put': _serialize_SSV, |
722 'any set IDBCursor.update': _serialize_SSV, | 722 'any set IDBCursor.update': _serialize_SSV, |
723 | 723 |
| 724 'any get SQLResultSetRowList.item' : |
| 725 Conversion('convertNativeToDart_Dictionary', 'dynamic', 'Map'), |
| 726 |
724 # postMessage | 727 # postMessage |
725 'SerializedScriptValue set': _serialize_SSV, | 728 'SerializedScriptValue set': _serialize_SSV, |
726 'any set CompositorWorkerGlobalScope.postMessage': _serialize_SSV, | 729 'any set CompositorWorkerGlobalScope.postMessage': _serialize_SSV, |
727 'any set DedicatedWorkerGlobalScope.postMessage': _serialize_SSV, | 730 'any set DedicatedWorkerGlobalScope.postMessage': _serialize_SSV, |
728 'any set MessagePort.postMessage': _serialize_SSV, | 731 'any set MessagePort.postMessage': _serialize_SSV, |
729 'any set Window.postMessage': _serialize_SSV, | 732 'any set Window.postMessage': _serialize_SSV, |
730 'any set _DOMWindowCrossFrame.postMessage': _serialize_SSV, | 733 'any set _DOMWindowCrossFrame.postMessage': _serialize_SSV, |
731 | 734 |
732 '* get CustomEvent.detail': | 735 '* get CustomEvent.detail': |
733 Conversion('convertNativeToDart_SerializedScriptValue', | 736 Conversion('convertNativeToDart_SerializedScriptValue', |
(...skipping 787 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1521 return_type == 'Rectangle') | 1524 return_type == 'Rectangle') |
1522 | 1525 |
1523 def wrap_return_type_blink(return_type, type_name, type_registry): | 1526 def wrap_return_type_blink(return_type, type_name, type_registry): |
1524 """Returns True if we should wrap the returned value. This checks | 1527 """Returns True if we should wrap the returned value. This checks |
1525 a number of different variations, calling the more basic functions | 1528 a number of different variations, calling the more basic functions |
1526 above.""" | 1529 above.""" |
1527 return (wrap_unwrap_type_blink(return_type, type_registry) or | 1530 return (wrap_unwrap_type_blink(return_type, type_registry) or |
1528 wrap_unwrap_type_blink(type_name, type_registry) or | 1531 wrap_unwrap_type_blink(type_name, type_registry) or |
1529 wrap_type_blink(return_type, type_registry) or | 1532 wrap_type_blink(return_type, type_registry) or |
1530 wrap_unwrap_list_blink(return_type, type_registry)) | 1533 wrap_unwrap_list_blink(return_type, type_registry)) |
OLD | NEW |