Chromium Code Reviews| 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 237 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 248 "@Creates('int|String|Null')", | 248 "@Creates('int|String|Null')", |
| 249 "@Returns('int|String|Null')", | 249 "@Returns('int|String|Null')", |
| 250 ], | 250 ], |
| 251 | 251 |
| 252 'ImageData.data': [ | 252 'ImageData.data': [ |
| 253 "@Creates('NativeUint8ClampedList')", | 253 "@Creates('NativeUint8ClampedList')", |
| 254 "@Returns('NativeUint8ClampedList')", | 254 "@Returns('NativeUint8ClampedList')", |
| 255 ], | 255 ], |
| 256 | 256 |
| 257 'MediaStream.getAudioTracks': [ | 257 'MediaStream.getAudioTracks': [ |
| 258 "@Creates('JSExtendableArray')", | 258 "@Creates('JSExtendableArray|MediaStreamTrack')", |
| 259 "@Returns('JSExtendableArray')", | 259 "@Returns('JSExtendableArray')", |
| 260 ], | 260 ], |
| 261 | 261 |
| 262 'MediaStream.getVideoTracks': [ | 262 'MediaStream.getVideoTracks': [ |
| 263 "@Creates('JSExtendableArray')", | 263 "@Creates('JSExtendableArray|MediaStreamTrack')", |
|
Alan Knight
2016/07/19 23:42:21
The IDL says this returns sequence<MediaStreamTrac
| |
| 264 "@Returns('JSExtendableArray')", | 264 "@Returns('JSExtendableArray')", |
| 265 ], | 265 ], |
| 266 | 266 |
| 267 'MessageEvent.data': [ | 267 'MessageEvent.data': [ |
| 268 "@annotation_Creates_SerializedScriptValue", | 268 "@annotation_Creates_SerializedScriptValue", |
| 269 "@annotation_Returns_SerializedScriptValue", | 269 "@annotation_Returns_SerializedScriptValue", |
| 270 ], | 270 ], |
| 271 | 271 |
| 272 'MessageEvent.ports': ["@Creates('JSExtendableArray')"], | 272 'MessageEvent.ports': ["@Creates('JSExtendableArray')"], |
| 273 | 273 |
| (...skipping 613 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 887 pass | 887 pass |
| 888 else: | 888 else: |
| 889 _logger.warn('Unknown support_level - %s:%s' % (interface_id, member_id)) | 889 _logger.warn('Unknown support_level - %s:%s' % (interface_id, member_id)) |
| 890 | 890 |
| 891 return annotations | 891 return annotations |
| 892 | 892 |
| 893 def Flush(self): | 893 def Flush(self): |
| 894 json_file = open(self._api_status_path, 'w+') | 894 json_file = open(self._api_status_path, 'w+') |
| 895 json.dump(self._types, json_file, indent=2, separators=(',', ': '), sort_key s=True) | 895 json.dump(self._types, json_file, indent=2, separators=(',', ': '), sort_key s=True) |
| 896 json_file.close() | 896 json_file.close() |
| OLD | NEW |