| 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 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 49 'CanvasRenderingContext2D.fillStyle': [ | 49 'CanvasRenderingContext2D.fillStyle': [ |
| 50 "@Creates('String|CanvasGradient|CanvasPattern')", | 50 "@Creates('String|CanvasGradient|CanvasPattern')", |
| 51 "@Returns('String|CanvasGradient|CanvasPattern')", | 51 "@Returns('String|CanvasGradient|CanvasPattern')", |
| 52 ], | 52 ], |
| 53 | 53 |
| 54 'CanvasRenderingContext2D.strokeStyle': [ | 54 'CanvasRenderingContext2D.strokeStyle': [ |
| 55 "@Creates('String|CanvasGradient|CanvasPattern')", | 55 "@Creates('String|CanvasGradient|CanvasPattern')", |
| 56 "@Returns('String|CanvasGradient|CanvasPattern')", | 56 "@Returns('String|CanvasGradient|CanvasPattern')", |
| 57 ], | 57 ], |
| 58 | 58 |
| 59 'CustomEvent.detail': [ | 59 'CustomEvent._detail': [ |
| 60 "@Creates('Null')", | 60 "@Creates('Null')", |
| 61 ], | 61 ], |
| 62 | 62 |
| 63 # Normally Window is nevernull, but starting from a <template> element in | 63 # Normally Window is nevernull, but starting from a <template> element in |
| 64 # JavaScript, this will be null: | 64 # JavaScript, this will be null: |
| 65 # template.content.ownerDocument.defaultView | 65 # template.content.ownerDocument.defaultView |
| 66 'Document.window': [ | 66 'Document.window': [ |
| 67 "@Creates('Window|=Object|Null')", | 67 "@Creates('Window|=Object|Null')", |
| 68 "@Returns('Window|=Object|Null')", | 68 "@Returns('Window|=Object|Null')", |
| 69 ], | 69 ], |
| (...skipping 705 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 775 pass | 775 pass |
| 776 else: | 776 else: |
| 777 _logger.warn('Unknown support_level - %s:%s' % (interface_id, member_id)) | 777 _logger.warn('Unknown support_level - %s:%s' % (interface_id, member_id)) |
| 778 | 778 |
| 779 return annotations | 779 return annotations |
| 780 | 780 |
| 781 def Flush(self): | 781 def Flush(self): |
| 782 json_file = open(self._api_status_path, 'w+') | 782 json_file = open(self._api_status_path, 'w+') |
| 783 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) |
| 784 json_file.close() | 784 json_file.close() |
| OLD | NEW |