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 365 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
376 'SVGForeignObjectElement': _no_ie_annotations, | 376 'SVGForeignObjectElement': _no_ie_annotations, |
377 'SVGSetElement': _no_ie_annotations, | 377 'SVGSetElement': _no_ie_annotations, |
378 'SQLTransaction': _web_sql_annotations, | 378 'SQLTransaction': _web_sql_annotations, |
379 'SQLTransactionSync': _web_sql_annotations, | 379 'SQLTransactionSync': _web_sql_annotations, |
380 'WebGLRenderingContext': _webgl_annotations, | 380 'WebGLRenderingContext': _webgl_annotations, |
381 'WebKitCSSMatrix': _webkit_experimental_annotations, | 381 'WebKitCSSMatrix': _webkit_experimental_annotations, |
382 'WebSocket': _all_but_ie9_annotations, | 382 'WebSocket': _all_but_ie9_annotations, |
383 'Worker': _all_but_ie9_annotations, | 383 'Worker': _all_but_ie9_annotations, |
384 'XMLHttpRequest.onloadend': _all_but_ie9_annotations, | 384 'XMLHttpRequest.onloadend': _all_but_ie9_annotations, |
385 'XMLHttpRequest.onprogress': _all_but_ie9_annotations, | 385 'XMLHttpRequest.onprogress': _all_but_ie9_annotations, |
| 386 'XMLHttpRequest.overrideMimeType': _no_ie_annotations, |
386 'XMLHttpRequest.response': _all_but_ie9_annotations, | 387 'XMLHttpRequest.response': _all_but_ie9_annotations, |
387 'XMLHttpRequestProgressEvent': _webkit_experimental_annotations, | 388 'XMLHttpRequestProgressEvent': _webkit_experimental_annotations, |
388 'XSLTProcessor': [ | 389 'XSLTProcessor': [ |
389 "@SupportedBrowser(SupportedBrowser.CHROME)", | 390 "@SupportedBrowser(SupportedBrowser.CHROME)", |
390 "@SupportedBrowser(SupportedBrowser.FIREFOX)", | 391 "@SupportedBrowser(SupportedBrowser.FIREFOX)", |
391 "@SupportedBrowser(SupportedBrowser.SAFARI)", | 392 "@SupportedBrowser(SupportedBrowser.SAFARI)", |
392 ], | 393 ], |
393 }) | 394 }) |
394 | 395 |
395 | 396 |
(...skipping 184 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
580 return | 581 return |
581 elif support_level == 'deprecated': | 582 elif support_level == 'deprecated': |
582 return '@Deprecated' | 583 return '@Deprecated' |
583 else: | 584 else: |
584 _logger.warn('Unknown support_level - %s:%s' % (interface_id, member_id)) | 585 _logger.warn('Unknown support_level - %s:%s' % (interface_id, member_id)) |
585 | 586 |
586 def Flush(self): | 587 def Flush(self): |
587 json_file = open(self._api_status_path, 'w+') | 588 json_file = open(self._api_status_path, 'w+') |
588 json.dump(self._types, json_file, indent=2, separators=(',', ': '), sort_key
s=True) | 589 json.dump(self._types, json_file, indent=2, separators=(',', ': '), sort_key
s=True) |
589 json_file.close() | 590 json_file.close() |
OLD | NEW |