Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(767)

Side by Side Diff: tools/dom/scripts/dartmetadata.py

Issue 23889005: Cleaning up a bunch of DOM generation tables (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « tools/dom/scripts/dartgenerator.py ('k') | tools/dom/scripts/generator.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 484 matching lines...) Expand 10 before | Expand all | Expand 10 after
495 'SVGFETileElement': _svg_annotations, 495 'SVGFETileElement': _svg_annotations,
496 'SVGFETurbulenceElement': _svg_annotations, 496 'SVGFETurbulenceElement': _svg_annotations,
497 'SVGFilterElement': _svg_annotations, 497 'SVGFilterElement': _svg_annotations,
498 'SVGForeignObjectElement': _no_ie_annotations, 498 'SVGForeignObjectElement': _no_ie_annotations,
499 'SVGSetElement': _no_ie_annotations, 499 'SVGSetElement': _no_ie_annotations,
500 'SQLTransaction': _web_sql_annotations, 500 'SQLTransaction': _web_sql_annotations,
501 'SQLTransactionSync': _web_sql_annotations, 501 'SQLTransactionSync': _web_sql_annotations,
502 'WebGLRenderingContext': _webgl_annotations, 502 'WebGLRenderingContext': _webgl_annotations,
503 'WebSocket': _all_but_ie9_annotations, 503 'WebSocket': _all_but_ie9_annotations,
504 'Worker': _all_but_ie9_annotations, 504 'Worker': _all_but_ie9_annotations,
505 'XMLHttpRequest.onloadend': _all_but_ie9_annotations,
506 'XMLHttpRequest.onprogress': _all_but_ie9_annotations,
507 'XMLHttpRequest.overrideMimeType': _no_ie_annotations, 505 'XMLHttpRequest.overrideMimeType': _no_ie_annotations,
508 'XMLHttpRequest.response': _all_but_ie9_annotations, 506 'XMLHttpRequest.response': _all_but_ie9_annotations,
507 'XMLHttpRequestEventTarget.onloadend': _all_but_ie9_annotations,
508 'XMLHttpRequestEventTarget.onprogress': _all_but_ie9_annotations,
509 'XMLHttpRequestProgressEvent': _webkit_experimental_annotations, 509 'XMLHttpRequestProgressEvent': _webkit_experimental_annotations,
510 'XSLTProcessor': [ 510 'XSLTProcessor': [
511 "@SupportedBrowser(SupportedBrowser.CHROME)", 511 "@SupportedBrowser(SupportedBrowser.CHROME)",
512 "@SupportedBrowser(SupportedBrowser.FIREFOX)", 512 "@SupportedBrowser(SupportedBrowser.FIREFOX)",
513 "@SupportedBrowser(SupportedBrowser.SAFARI)", 513 "@SupportedBrowser(SupportedBrowser.SAFARI)",
514 ], 514 ],
515 }) 515 })
516 516
517 # TODO(blois): minimize noise and enable by default. 517 # TODO(blois): minimize noise and enable by default.
518 _monitor_type_metadata = False 518 _monitor_type_metadata = False
(...skipping 237 matching lines...) Expand 10 before | Expand all | Expand 10 after
756 pass 756 pass
757 else: 757 else:
758 _logger.warn('Unknown support_level - %s:%s' % (interface_id, member_id)) 758 _logger.warn('Unknown support_level - %s:%s' % (interface_id, member_id))
759 759
760 return annotations 760 return annotations
761 761
762 def Flush(self): 762 def Flush(self):
763 json_file = open(self._api_status_path, 'w+') 763 json_file = open(self._api_status_path, 'w+')
764 json.dump(self._types, json_file, indent=2, separators=(',', ': '), sort_key s=True) 764 json.dump(self._types, json_file, indent=2, separators=(',', ': '), sort_key s=True)
765 json_file.close() 765 json_file.close()
OLDNEW
« no previous file with comments | « tools/dom/scripts/dartgenerator.py ('k') | tools/dom/scripts/generator.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698