| 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 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 134 'CSSStyleDeclaration': | 134 'CSSStyleDeclaration': |
| 135 # IE Firefox | 135 # IE Firefox |
| 136 'CSSStyleDeclaration,MSStyleCSSProperties,CSS2Properties', | 136 'CSSStyleDeclaration,MSStyleCSSProperties,CSS2Properties', |
| 137 | 137 |
| 138 'Clipboard': 'Clipboard,DataTransfer', | 138 'Clipboard': 'Clipboard,DataTransfer', |
| 139 | 139 |
| 140 'ApplicationCache': | 140 'ApplicationCache': |
| 141 'ApplicationCache,DOMApplicationCache,OfflineResourceList', | 141 'ApplicationCache,DOMApplicationCache,OfflineResourceList', |
| 142 | 142 |
| 143 'Event': | 143 'Event': |
| 144 'Event,InputEvent,ClipboardEvent', | 144 'Event,InputEvent', |
| 145 | 145 |
| 146 'HTMLTableCellElement': | 146 'HTMLTableCellElement': |
| 147 'HTMLTableCellElement,HTMLTableDataCellElement,HTMLTableHeaderCellElemen
t', | 147 'HTMLTableCellElement,HTMLTableDataCellElement,HTMLTableHeaderCellElemen
t', |
| 148 | 148 |
| 149 'GainNode': 'GainNode,AudioGainNode', | 149 'GainNode': 'GainNode,AudioGainNode', |
| 150 | 150 |
| 151 'IDBOpenDBRequest': | 151 'IDBOpenDBRequest': |
| 152 'IDBOpenDBRequest,IDBVersionChangeRequest', | 152 'IDBOpenDBRequest,IDBVersionChangeRequest', |
| 153 | 153 |
| 154 'MouseEvent': 'MouseEvent,DragEvent,PointerEvent,MSPointerEvent', | 154 'MouseEvent': 'MouseEvent,DragEvent', |
| 155 | 155 |
| 156 'MutationObserver': 'MutationObserver,WebKitMutationObserver', | 156 'MutationObserver': 'MutationObserver,WebKitMutationObserver', |
| 157 | 157 |
| 158 'NamedNodeMap': 'NamedNodeMap,MozNamedAttrMap', | 158 'NamedNodeMap': 'NamedNodeMap,MozNamedAttrMap', |
| 159 | 159 |
| 160 'NodeList': 'NodeList,RadioNodeList', | 160 'NodeList': 'NodeList,RadioNodeList', |
| 161 | 161 |
| 162 'OscillatorNode': 'OscillatorNode,Oscillator', | 162 'OscillatorNode': 'OscillatorNode,Oscillator', |
| 163 | 163 |
| 164 'PannerNode': 'PannerNode,AudioPannerNode,webkitAudioPannerNode', | 164 'PannerNode': 'PannerNode,AudioPannerNode,webkitAudioPannerNode', |
| (...skipping 1337 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1502 return_type == 'Rectangle') | 1502 return_type == 'Rectangle') |
| 1503 | 1503 |
| 1504 def wrap_return_type_blink(return_type, type_name, type_registry): | 1504 def wrap_return_type_blink(return_type, type_name, type_registry): |
| 1505 """Returns True if we should wrap the returned value. This checks | 1505 """Returns True if we should wrap the returned value. This checks |
| 1506 a number of different variations, calling the more basic functions | 1506 a number of different variations, calling the more basic functions |
| 1507 above.""" | 1507 above.""" |
| 1508 return (wrap_unwrap_type_blink(return_type, type_registry) or | 1508 return (wrap_unwrap_type_blink(return_type, type_registry) or |
| 1509 wrap_unwrap_type_blink(type_name, type_registry) or | 1509 wrap_unwrap_type_blink(type_name, type_registry) or |
| 1510 wrap_type_blink(return_type, type_registry) or | 1510 wrap_type_blink(return_type, type_registry) or |
| 1511 wrap_unwrap_list_blink(return_type, type_registry)) | 1511 wrap_unwrap_list_blink(return_type, type_registry)) |
| OLD | NEW |