| 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 358 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 369 "@SupportedBrowser(SupportedBrowser.SAFARI)", | 369 "@SupportedBrowser(SupportedBrowser.SAFARI)", |
| 370 "@Experimental()", | 370 "@Experimental()", |
| 371 ] | 371 ] |
| 372 | 372 |
| 373 # Annotations to be placed on generated members. | 373 # Annotations to be placed on generated members. |
| 374 # The table is indexed as: | 374 # The table is indexed as: |
| 375 # INTERFACE: annotations to be added to the interface declaration | 375 # INTERFACE: annotations to be added to the interface declaration |
| 376 # INTERFACE.MEMBER: annotation to be added to the member declaration | 376 # INTERFACE.MEMBER: annotation to be added to the member declaration |
| 377 _annotations = monitored.Dict('dartmetadata._annotations', { | 377 _annotations = monitored.Dict('dartmetadata._annotations', { |
| 378 'CSSHostRule': _shadow_dom_annotations, | 378 'CSSHostRule': _shadow_dom_annotations, |
| 379 'CSSMatrix': _webkit_experimental_annotations, | 379 'WebKitCSSMatrix': _webkit_experimental_annotations, |
| 380 'Crypto': _webkit_experimental_annotations, | 380 'Crypto': _webkit_experimental_annotations, |
| 381 'Database': _web_sql_annotations, | 381 'Database': _web_sql_annotations, |
| 382 'DatabaseSync': _web_sql_annotations, | 382 'DatabaseSync': _web_sql_annotations, |
| 383 'DOMApplicationCache': [ | 383 'DOMApplicationCache': [ |
| 384 "@SupportedBrowser(SupportedBrowser.CHROME)", | 384 "@SupportedBrowser(SupportedBrowser.CHROME)", |
| 385 "@SupportedBrowser(SupportedBrowser.FIREFOX)", | 385 "@SupportedBrowser(SupportedBrowser.FIREFOX)", |
| 386 "@SupportedBrowser(SupportedBrowser.IE, '10')", | 386 "@SupportedBrowser(SupportedBrowser.IE, '10')", |
| 387 "@SupportedBrowser(SupportedBrowser.OPERA)", | 387 "@SupportedBrowser(SupportedBrowser.OPERA)", |
| 388 "@SupportedBrowser(SupportedBrowser.SAFARI)", | 388 "@SupportedBrowser(SupportedBrowser.SAFARI)", |
| 389 ], | 389 ], |
| (...skipping 362 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 752 pass | 752 pass |
| 753 else: | 753 else: |
| 754 _logger.warn('Unknown support_level - %s:%s' % (interface_id, member_id)) | 754 _logger.warn('Unknown support_level - %s:%s' % (interface_id, member_id)) |
| 755 | 755 |
| 756 return annotations | 756 return annotations |
| 757 | 757 |
| 758 def Flush(self): | 758 def Flush(self): |
| 759 json_file = open(self._api_status_path, 'w+') | 759 json_file = open(self._api_status_path, 'w+') |
| 760 json.dump(self._types, json_file, indent=2, separators=(',', ': '), sort_key
s=True) | 760 json.dump(self._types, json_file, indent=2, separators=(',', ': '), sort_key
s=True) |
| 761 json_file.close() | 761 json_file.close() |
| OLD | NEW |