| 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 261 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 272 'DOMFileSystemSync': _file_system_annotations, | 272 'DOMFileSystemSync': _file_system_annotations, |
| 273 'DOMPoint': _webkit_experimental_annotations, | 273 'DOMPoint': _webkit_experimental_annotations, |
| 274 'DOMWindow.webkitConvertPointFromNodeToPage': _webkit_experimental_annotations
, | 274 'DOMWindow.webkitConvertPointFromNodeToPage': _webkit_experimental_annotations
, |
| 275 'DOMWindow.webkitConvertPointFromPageToNode': _webkit_experimental_annotations
, | 275 'DOMWindow.webkitConvertPointFromPageToNode': _webkit_experimental_annotations
, |
| 276 'DOMWindow.indexedDB': _indexed_db_annotations, | 276 'DOMWindow.indexedDB': _indexed_db_annotations, |
| 277 'DOMWindow.openDatabase': _web_sql_annotations, | 277 'DOMWindow.openDatabase': _web_sql_annotations, |
| 278 'DOMWindow.performance': _performance_annotations, | 278 'DOMWindow.performance': _performance_annotations, |
| 279 'DOMWindow.webkitNotifications': _webkit_experimental_annotations, | 279 'DOMWindow.webkitNotifications': _webkit_experimental_annotations, |
| 280 'DOMWindow.webkitRequestFileSystem': _file_system_annotations, | 280 'DOMWindow.webkitRequestFileSystem': _file_system_annotations, |
| 281 'DOMWindow.webkitResolveLocalFileSystemURL': _file_system_annotations, | 281 'DOMWindow.webkitResolveLocalFileSystemURL': _file_system_annotations, |
| 282 'Element.onwebkitTransitionEnd': _all_but_ie9_annotations, | 282 'Element.ontransitionend': _all_but_ie9_annotations, |
| 283 # Placeholder to add experimental flag, implementation for this is | 283 # Placeholder to add experimental flag, implementation for this is |
| 284 # pending in a separate CL. | 284 # pending in a separate CL. |
| 285 'Element.webkitMatchesSelector': ['@Experimental()'], | 285 'Element.webkitMatchesSelector': ['@Experimental()'], |
| 286 'Element.webkitCreateShadowRoot': [ | 286 'Element.webkitCreateShadowRoot': [ |
| 287 "@SupportedBrowser(SupportedBrowser.CHROME, '25')", | 287 "@SupportedBrowser(SupportedBrowser.CHROME, '25')", |
| 288 "@Experimental", | 288 "@Experimental", |
| 289 ], | 289 ], |
| 290 'Event.clipboardData': _webkit_experimental_annotations, | 290 'Event.clipboardData': _webkit_experimental_annotations, |
| 291 'DOMFormData': _all_but_ie9_annotations, | 291 'DOMFormData': _all_but_ie9_annotations, |
| 292 'HashChangeEvent': [ | 292 'HashChangeEvent': [ |
| (...skipping 339 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 632 pass | 632 pass |
| 633 else: | 633 else: |
| 634 _logger.warn('Unknown support_level - %s:%s' % (interface_id, member_id)) | 634 _logger.warn('Unknown support_level - %s:%s' % (interface_id, member_id)) |
| 635 | 635 |
| 636 return annotations | 636 return annotations |
| 637 | 637 |
| 638 def Flush(self): | 638 def Flush(self): |
| 639 json_file = open(self._api_status_path, 'w+') | 639 json_file = open(self._api_status_path, 'w+') |
| 640 json.dump(self._types, json_file, indent=2, separators=(',', ': '), sort_key
s=True) | 640 json.dump(self._types, json_file, indent=2, separators=(',', ': '), sort_key
s=True) |
| 641 json_file.close() | 641 json_file.close() |
| OLD | NEW |