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 444 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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, | 464 'WebKitPoint': _webkit_experimental_annotations, |
465 'Window.webkitConvertPointFromNodeToPage': _webkit_experimental_annotations, | |
466 'Window.webkitConvertPointFromPageToNode': _webkit_experimental_annotations, | |
467 'Window.indexedDB': _indexed_db_annotations, | 465 'Window.indexedDB': _indexed_db_annotations, |
468 'Window.openDatabase': _web_sql_annotations, | 466 'Window.openDatabase': _web_sql_annotations, |
469 'Window.performance': _performance_annotations, | 467 'Window.performance': _performance_annotations, |
470 'Window.webkitNotifications': _webkit_experimental_annotations, | 468 'Window.webkitNotifications': _webkit_experimental_annotations, |
471 'Window.webkitRequestFileSystem': _file_system_annotations, | 469 'Window.webkitRequestFileSystem': _file_system_annotations, |
472 'Window.webkitResolveLocalFileSystemURL': _file_system_annotations, | 470 'Window.webkitResolveLocalFileSystemURL': _file_system_annotations, |
473 'Element.createShadowRoot': [ | 471 'Element.createShadowRoot': [ |
474 "@SupportedBrowser(SupportedBrowser.CHROME, '25')", | 472 "@SupportedBrowser(SupportedBrowser.CHROME, '25')", |
475 "@Experimental()", | 473 "@Experimental()", |
476 ], | 474 ], |
(...skipping 360 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
837 pass | 835 pass |
838 else: | 836 else: |
839 _logger.warn('Unknown support_level - %s:%s' % (interface_id, member_id)) | 837 _logger.warn('Unknown support_level - %s:%s' % (interface_id, member_id)) |
840 | 838 |
841 return annotations | 839 return annotations |
842 | 840 |
843 def Flush(self): | 841 def Flush(self): |
844 json_file = open(self._api_status_path, 'w+') | 842 json_file = open(self._api_status_path, 'w+') |
845 json.dump(self._types, json_file, indent=2, separators=(',', ': '), sort_key
s=True) | 843 json.dump(self._types, json_file, indent=2, separators=(',', ': '), sort_key
s=True) |
846 json_file.close() | 844 json_file.close() |
OLD | NEW |