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 353 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
364 # Section 5.14.3 Setting and getting state | 364 # Section 5.14.3 Setting and getting state |
365 "@Creates('Null|num|String|bool|JSExtendableArray|" | 365 "@Creates('Null|num|String|bool|JSExtendableArray|" |
366 "NativeFloat32List|NativeInt32List|NativeUint32List|" | 366 "NativeFloat32List|NativeInt32List|NativeUint32List|" |
367 "Framebuffer|Renderbuffer|Texture')", | 367 "Framebuffer|Renderbuffer|Texture')", |
368 "@Returns('Null|num|String|bool|JSExtendableArray|" | 368 "@Returns('Null|num|String|bool|JSExtendableArray|" |
369 "NativeFloat32List|NativeInt32List|NativeUint32List|" | 369 "NativeFloat32List|NativeInt32List|NativeUint32List|" |
370 "Framebuffer|Renderbuffer|Texture')", | 370 "Framebuffer|Renderbuffer|Texture')", |
371 ], | 371 ], |
372 | 372 |
373 'WebGLRenderingContext.getContextAttributes': [ | 373 'WebGLRenderingContext.getContextAttributes': [ |
374 "@Creates('ContextAttributes|=Object')", | 374 "@Creates('ContextAttributes|Null')", |
375 ], | 375 ], |
376 | 376 |
377 'XMLHttpRequest.response': [ | 377 'XMLHttpRequest.response': [ |
378 "@Creates('NativeByteBuffer|Blob|Document|=Object|JSExtendableArray" | 378 "@Creates('NativeByteBuffer|Blob|Document|=Object|JSExtendableArray" |
379 "|String|num')", | 379 "|String|num')", |
380 ], | 380 ], |
381 }, dart2jsOnly=True) | 381 }, dart2jsOnly=True) |
382 | 382 |
383 _blink_experimental_annotations = [ | 383 _blink_experimental_annotations = [ |
384 "@SupportedBrowser(SupportedBrowser.CHROME)", | 384 "@SupportedBrowser(SupportedBrowser.CHROME)", |
(...skipping 470 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
855 pass | 855 pass |
856 else: | 856 else: |
857 _logger.warn('Unknown support_level - %s:%s' % (interface_id, member_id)) | 857 _logger.warn('Unknown support_level - %s:%s' % (interface_id, member_id)) |
858 | 858 |
859 return annotations | 859 return annotations |
860 | 860 |
861 def Flush(self): | 861 def Flush(self): |
862 json_file = open(self._api_status_path, 'w+') | 862 json_file = open(self._api_status_path, 'w+') |
863 json.dump(self._types, json_file, indent=2, separators=(',', ': '), sort_key
s=True) | 863 json.dump(self._types, json_file, indent=2, separators=(',', ': '), sort_key
s=True) |
864 json_file.close() | 864 json_file.close() |
OLD | NEW |