| 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 493 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 504 'SVGSetElement': _no_ie_annotations, | 504 'SVGSetElement': _no_ie_annotations, |
| 505 'SQLTransaction': _web_sql_annotations, | 505 'SQLTransaction': _web_sql_annotations, |
| 506 'SQLTransactionSync': _web_sql_annotations, | 506 'SQLTransactionSync': _web_sql_annotations, |
| 507 'WebGLRenderingContext': _webgl_annotations, | 507 'WebGLRenderingContext': _webgl_annotations, |
| 508 'WebSocket': _all_but_ie9_annotations, | 508 'WebSocket': _all_but_ie9_annotations, |
| 509 'Worker': _all_but_ie9_annotations, | 509 'Worker': _all_but_ie9_annotations, |
| 510 'XMLHttpRequest.overrideMimeType': _no_ie_annotations, | 510 'XMLHttpRequest.overrideMimeType': _no_ie_annotations, |
| 511 'XMLHttpRequest.response': _all_but_ie9_annotations, | 511 'XMLHttpRequest.response': _all_but_ie9_annotations, |
| 512 'XMLHttpRequestEventTarget.onloadend': _all_but_ie9_annotations, | 512 'XMLHttpRequestEventTarget.onloadend': _all_but_ie9_annotations, |
| 513 'XMLHttpRequestEventTarget.onprogress': _all_but_ie9_annotations, | 513 'XMLHttpRequestEventTarget.onprogress': _all_but_ie9_annotations, |
| 514 'XMLHttpRequestProgressEvent': _webkit_experimental_annotations, | |
| 515 'XSLTProcessor': [ | 514 'XSLTProcessor': [ |
| 516 "@SupportedBrowser(SupportedBrowser.CHROME)", | 515 "@SupportedBrowser(SupportedBrowser.CHROME)", |
| 517 "@SupportedBrowser(SupportedBrowser.FIREFOX)", | 516 "@SupportedBrowser(SupportedBrowser.FIREFOX)", |
| 518 "@SupportedBrowser(SupportedBrowser.SAFARI)", | 517 "@SupportedBrowser(SupportedBrowser.SAFARI)", |
| 519 ], | 518 ], |
| 520 }) | 519 }) |
| 521 | 520 |
| 522 # TODO(blois): minimize noise and enable by default. | 521 # TODO(blois): minimize noise and enable by default. |
| 523 _monitor_type_metadata = False | 522 _monitor_type_metadata = False |
| 524 | 523 |
| (...skipping 236 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 761 pass | 760 pass |
| 762 else: | 761 else: |
| 763 _logger.warn('Unknown support_level - %s:%s' % (interface_id, member_id)) | 762 _logger.warn('Unknown support_level - %s:%s' % (interface_id, member_id)) |
| 764 | 763 |
| 765 return annotations | 764 return annotations |
| 766 | 765 |
| 767 def Flush(self): | 766 def Flush(self): |
| 768 json_file = open(self._api_status_path, 'w+') | 767 json_file = open(self._api_status_path, 'w+') |
| 769 json.dump(self._types, json_file, indent=2, separators=(',', ': '), sort_key
s=True) | 768 json.dump(self._types, json_file, indent=2, separators=(',', ': '), sort_key
s=True) |
| 770 json_file.close() | 769 json_file.close() |
| OLD | NEW |