| 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 to provide Dart metadata for | 6 """This module provides shared functionality to provide Dart metadata for |
| 7 DOM APIs. | 7 DOM APIs. |
| 8 """ | 8 """ |
| 9 | 9 |
| 10 import copy | 10 import copy |
| (...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 76 ], | 76 ], |
| 77 | 77 |
| 78 'Window.openDatabase': [ | 78 'Window.openDatabase': [ |
| 79 "@Creates('SqlDatabase')", | 79 "@Creates('SqlDatabase')", |
| 80 ], | 80 ], |
| 81 | 81 |
| 82 'Window.showModalDialog': [ | 82 'Window.showModalDialog': [ |
| 83 "@Creates('Null')", | 83 "@Creates('Null')", |
| 84 ], | 84 ], |
| 85 | 85 |
| 86 'Element.webkitGetRegionFlowRanges': [ |
| 87 "@Creates('JSExtendableArray')", |
| 88 "@Returns('JSExtendableArray')", |
| 89 ], |
| 90 |
| 86 "ErrorEvent.error": [ | 91 "ErrorEvent.error": [ |
| 87 "@Creates('Null')", # Only returns values created elsewhere. | 92 "@Creates('Null')", # Only returns values created elsewhere. |
| 88 ], | 93 ], |
| 89 | 94 |
| 90 # To be in callback with the browser-created Event, we had to have called | 95 # To be in callback with the browser-created Event, we had to have called |
| 91 # addEventListener on the target, so we avoid | 96 # addEventListener on the target, so we avoid |
| 92 'Event.currentTarget': [ | 97 'Event.currentTarget': [ |
| 93 "@Creates('Null')", | 98 "@Creates('Null')", |
| 94 "@Returns('EventTarget|=Object')", | 99 "@Returns('EventTarget|=Object')", |
| 95 ], | 100 ], |
| (...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 195 'IDBVersionChangeEvent.newVersion': [ | 200 'IDBVersionChangeEvent.newVersion': [ |
| 196 "@Creates('int|String|Null')", | 201 "@Creates('int|String|Null')", |
| 197 "@Returns('int|String|Null')", | 202 "@Returns('int|String|Null')", |
| 198 ], | 203 ], |
| 199 | 204 |
| 200 'IDBVersionChangeEvent.oldVersion': [ | 205 'IDBVersionChangeEvent.oldVersion': [ |
| 201 "@Creates('int|String|Null')", | 206 "@Creates('int|String|Null')", |
| 202 "@Returns('int|String|Null')", | 207 "@Returns('int|String|Null')", |
| 203 ], | 208 ], |
| 204 | 209 |
| 210 'MediaStream.getAudioTracks': [ |
| 211 "@Creates('JSExtendableArray')", |
| 212 "@Returns('JSExtendableArray')", |
| 213 ], |
| 214 |
| 215 'MediaStream.getVideoTracks': [ |
| 216 "@Creates('JSExtendableArray')", |
| 217 "@Returns('JSExtendableArray')", |
| 218 ], |
| 219 |
| 205 'MessageEvent.data': [ | 220 'MessageEvent.data': [ |
| 206 "@annotation_Creates_SerializedScriptValue", | 221 "@annotation_Creates_SerializedScriptValue", |
| 207 "@annotation_Returns_SerializedScriptValue", | 222 "@annotation_Returns_SerializedScriptValue", |
| 208 ], | 223 ], |
| 209 | 224 |
| 210 'MessageEvent.ports': ["@Creates('JSExtendableArray')"], | 225 'MessageEvent.ports': ["@Creates('JSExtendableArray')"], |
| 211 | 226 |
| 212 'MessageEvent.source': [ | 227 'MessageEvent.source': [ |
| 213 "@Creates('Null')", | 228 "@Creates('Null')", |
| 214 "@Returns('EventTarget|=Object')", | 229 "@Returns('EventTarget|=Object')", |
| (...skipping 545 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 760 pass | 775 pass |
| 761 else: | 776 else: |
| 762 _logger.warn('Unknown support_level - %s:%s' % (interface_id, member_id)) | 777 _logger.warn('Unknown support_level - %s:%s' % (interface_id, member_id)) |
| 763 | 778 |
| 764 return annotations | 779 return annotations |
| 765 | 780 |
| 766 def Flush(self): | 781 def Flush(self): |
| 767 json_file = open(self._api_status_path, 'w+') | 782 json_file = open(self._api_status_path, 'w+') |
| 768 json.dump(self._types, json_file, indent=2, separators=(',', ': '), sort_key
s=True) | 783 json.dump(self._types, json_file, indent=2, separators=(',', ': '), sort_key
s=True) |
| 769 json_file.close() | 784 json_file.close() |
| OLD | NEW |