| 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 189 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 200 'IDBVersionChangeEvent.newVersion': [ | 200 'IDBVersionChangeEvent.newVersion': [ |
| 201 "@Creates('int|String|Null')", | 201 "@Creates('int|String|Null')", |
| 202 "@Returns('int|String|Null')", | 202 "@Returns('int|String|Null')", |
| 203 ], | 203 ], |
| 204 | 204 |
| 205 'IDBVersionChangeEvent.oldVersion': [ | 205 'IDBVersionChangeEvent.oldVersion': [ |
| 206 "@Creates('int|String|Null')", | 206 "@Creates('int|String|Null')", |
| 207 "@Returns('int|String|Null')", | 207 "@Returns('int|String|Null')", |
| 208 ], | 208 ], |
| 209 | 209 |
| 210 'ImageData.data': [ |
| 211 "@Creates('Uint8ClampedList')", |
| 212 "@Returns('Uint8ClampedList')", |
| 213 ], |
| 214 |
| 210 'MediaStream.getAudioTracks': [ | 215 'MediaStream.getAudioTracks': [ |
| 211 "@Creates('JSExtendableArray')", | 216 "@Creates('JSExtendableArray')", |
| 212 "@Returns('JSExtendableArray')", | 217 "@Returns('JSExtendableArray')", |
| 213 ], | 218 ], |
| 214 | 219 |
| 215 'MediaStream.getVideoTracks': [ | 220 'MediaStream.getVideoTracks': [ |
| 216 "@Creates('JSExtendableArray')", | 221 "@Creates('JSExtendableArray')", |
| 217 "@Returns('JSExtendableArray')", | 222 "@Returns('JSExtendableArray')", |
| 218 ], | 223 ], |
| 219 | 224 |
| (...skipping 564 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 784 pass | 789 pass |
| 785 else: | 790 else: |
| 786 _logger.warn('Unknown support_level - %s:%s' % (interface_id, member_id)) | 791 _logger.warn('Unknown support_level - %s:%s' % (interface_id, member_id)) |
| 787 | 792 |
| 788 return annotations | 793 return annotations |
| 789 | 794 |
| 790 def Flush(self): | 795 def Flush(self): |
| 791 json_file = open(self._api_status_path, 'w+') | 796 json_file = open(self._api_status_path, 'w+') |
| 792 json.dump(self._types, json_file, indent=2, separators=(',', ': '), sort_key
s=True) | 797 json.dump(self._types, json_file, indent=2, separators=(',', ': '), sort_key
s=True) |
| 793 json_file.close() | 798 json_file.close() |
| OLD | NEW |