| 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 297 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 308 | 308 |
| 309 'WebGLRenderingContext.getParameter': [ | 309 'WebGLRenderingContext.getParameter': [ |
| 310 # Taken from http://www.khronos.org/registry/webgl/specs/latest/ | 310 # Taken from http://www.khronos.org/registry/webgl/specs/latest/ |
| 311 # Section 5.14.3 Setting and getting state | 311 # Section 5.14.3 Setting and getting state |
| 312 "@Creates('Null|num|String|bool|JSExtendableArray|Float32List|Int32List" | 312 "@Creates('Null|num|String|bool|JSExtendableArray|Float32List|Int32List" |
| 313 "|Uint32List|Framebuffer|Renderbuffer|Texture')", | 313 "|Uint32List|Framebuffer|Renderbuffer|Texture')", |
| 314 "@Returns('Null|num|String|bool|JSExtendableArray|Float32List|Int32List" | 314 "@Returns('Null|num|String|bool|JSExtendableArray|Float32List|Int32List" |
| 315 "|Uint32List|Framebuffer|Renderbuffer|Texture')", | 315 "|Uint32List|Framebuffer|Renderbuffer|Texture')", |
| 316 ], | 316 ], |
| 317 | 317 |
| 318 'WebGLRenderingContext.getContextAttributes': [ |
| 319 "@Creates('ContextAttributes|=Object')", |
| 320 ], |
| 321 |
| 318 'XMLHttpRequest.response': [ | 322 'XMLHttpRequest.response': [ |
| 319 "@Creates('ByteBuffer|Blob|Document|=Object|JSExtendableArray|String" | 323 "@Creates('ByteBuffer|Blob|Document|=Object|JSExtendableArray|String" |
| 320 "|num')", | 324 "|num')", |
| 321 ], | 325 ], |
| 322 }, dart2jsOnly=True) | 326 }, dart2jsOnly=True) |
| 323 | 327 |
| 324 _blink_experimental_annotations = [ | 328 _blink_experimental_annotations = [ |
| 325 "@SupportedBrowser(SupportedBrowser.CHROME)", | 329 "@SupportedBrowser(SupportedBrowser.CHROME)", |
| 326 "@Experimental()", | 330 "@Experimental()", |
| 327 ] | 331 ] |
| (...skipping 452 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 780 pass | 784 pass |
| 781 else: | 785 else: |
| 782 _logger.warn('Unknown support_level - %s:%s' % (interface_id, member_id)) | 786 _logger.warn('Unknown support_level - %s:%s' % (interface_id, member_id)) |
| 783 | 787 |
| 784 return annotations | 788 return annotations |
| 785 | 789 |
| 786 def Flush(self): | 790 def Flush(self): |
| 787 json_file = open(self._api_status_path, 'w+') | 791 json_file = open(self._api_status_path, 'w+') |
| 788 json.dump(self._types, json_file, indent=2, separators=(',', ': '), sort_key
s=True) | 792 json.dump(self._types, json_file, indent=2, separators=(',', ': '), sort_key
s=True) |
| 789 json_file.close() | 793 json_file.close() |
| OLD | NEW |