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 443 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
454 "@SupportedBrowser(SupportedBrowser.CHROME)", | 454 "@SupportedBrowser(SupportedBrowser.CHROME)", |
455 "@SupportedBrowser(SupportedBrowser.FIREFOX)", | 455 "@SupportedBrowser(SupportedBrowser.FIREFOX)", |
456 "@SupportedBrowser(SupportedBrowser.IE, '10')", | 456 "@SupportedBrowser(SupportedBrowser.IE, '10')", |
457 "@SupportedBrowser(SupportedBrowser.OPERA)", | 457 "@SupportedBrowser(SupportedBrowser.OPERA)", |
458 "@SupportedBrowser(SupportedBrowser.SAFARI)", | 458 "@SupportedBrowser(SupportedBrowser.SAFARI)", |
459 ], | 459 ], |
460 'AudioBufferSourceNode': _web_audio_annotations, | 460 'AudioBufferSourceNode': _web_audio_annotations, |
461 'AudioContext': _web_audio_annotations, | 461 'AudioContext': _web_audio_annotations, |
462 'DOMFileSystem': _file_system_annotations, | 462 'DOMFileSystem': _file_system_annotations, |
463 'DOMFileSystemSync': _file_system_annotations, | 463 'DOMFileSystemSync': _file_system_annotations, |
464 'WebKitPoint': _webkit_experimental_annotations, | |
465 'Window.indexedDB': _indexed_db_annotations, | 464 'Window.indexedDB': _indexed_db_annotations, |
466 'Window.openDatabase': _web_sql_annotations, | 465 'Window.openDatabase': _web_sql_annotations, |
467 'Window.performance': _performance_annotations, | 466 'Window.performance': _performance_annotations, |
468 'Window.webkitNotifications': _webkit_experimental_annotations, | 467 'Window.webkitNotifications': _webkit_experimental_annotations, |
469 'Window.webkitRequestFileSystem': _file_system_annotations, | 468 'Window.webkitRequestFileSystem': _file_system_annotations, |
470 'Window.webkitResolveLocalFileSystemURL': _file_system_annotations, | 469 'Window.webkitResolveLocalFileSystemURL': _file_system_annotations, |
471 'Element.createShadowRoot': [ | 470 'Element.createShadowRoot': [ |
472 "@SupportedBrowser(SupportedBrowser.CHROME, '25')", | 471 "@SupportedBrowser(SupportedBrowser.CHROME, '25')", |
473 "@Experimental()", | 472 "@Experimental()", |
474 ], | 473 ], |
(...skipping 360 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
835 pass | 834 pass |
836 else: | 835 else: |
837 _logger.warn('Unknown support_level - %s:%s' % (interface_id, member_id)) | 836 _logger.warn('Unknown support_level - %s:%s' % (interface_id, member_id)) |
838 | 837 |
839 return annotations | 838 return annotations |
840 | 839 |
841 def Flush(self): | 840 def Flush(self): |
842 json_file = open(self._api_status_path, 'w+') | 841 json_file = open(self._api_status_path, 'w+') |
843 json.dump(self._types, json_file, indent=2, separators=(',', ': '), sort_key
s=True) | 842 json.dump(self._types, json_file, indent=2, separators=(',', ': '), sort_key
s=True) |
844 json_file.close() | 843 json_file.close() |
OLD | NEW |