| 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 383 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 394 'DOMWindow.webkitConvertPointFromPageToNode': _webkit_experimental_annotations
, | 394 'DOMWindow.webkitConvertPointFromPageToNode': _webkit_experimental_annotations
, |
| 395 'DOMWindow.indexedDB': _indexed_db_annotations, | 395 'DOMWindow.indexedDB': _indexed_db_annotations, |
| 396 'DOMWindow.openDatabase': _web_sql_annotations, | 396 'DOMWindow.openDatabase': _web_sql_annotations, |
| 397 'DOMWindow.performance': _performance_annotations, | 397 'DOMWindow.performance': _performance_annotations, |
| 398 'DOMWindow.webkitNotifications': _webkit_experimental_annotations, | 398 'DOMWindow.webkitNotifications': _webkit_experimental_annotations, |
| 399 'DOMWindow.webkitRequestFileSystem': _file_system_annotations, | 399 'DOMWindow.webkitRequestFileSystem': _file_system_annotations, |
| 400 'DOMWindow.webkitResolveLocalFileSystemURL': _file_system_annotations, | 400 'DOMWindow.webkitResolveLocalFileSystemURL': _file_system_annotations, |
| 401 'Element.ontransitionend': _all_but_ie9_annotations, | 401 'Element.ontransitionend': _all_but_ie9_annotations, |
| 402 # Placeholder to add experimental flag, implementation for this is | 402 # Placeholder to add experimental flag, implementation for this is |
| 403 # pending in a separate CL. | 403 # pending in a separate CL. |
| 404 'Element.webkitMatchesSelector': ['@Experimental()()'], | 404 'Element.webkitMatchesSelector': ['@Experimental()'], |
| 405 'Element.webkitCreateShadowRoot': [ | 405 'Element.webkitCreateShadowRoot': [ |
| 406 "@SupportedBrowser(SupportedBrowser.CHROME, '25')", | 406 "@SupportedBrowser(SupportedBrowser.CHROME, '25')", |
| 407 "@Experimental()", | 407 "@Experimental()", |
| 408 ], | 408 ], |
| 409 'Event.clipboardData': _webkit_experimental_annotations, | 409 'Event.clipboardData': _webkit_experimental_annotations, |
| 410 'FormData': _all_but_ie9_annotations, | 410 'FormData': _all_but_ie9_annotations, |
| 411 'HashChangeEvent': [ | 411 'HashChangeEvent': [ |
| 412 "@SupportedBrowser(SupportedBrowser.CHROME)", | 412 "@SupportedBrowser(SupportedBrowser.CHROME)", |
| 413 "@SupportedBrowser(SupportedBrowser.FIREFOX)", | 413 "@SupportedBrowser(SupportedBrowser.FIREFOX)", |
| 414 "@SupportedBrowser(SupportedBrowser.SAFARI)", | 414 "@SupportedBrowser(SupportedBrowser.SAFARI)", |
| (...skipping 337 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 |