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

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

Issue 380383002: Add ClipboardEvent for Firefox. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 5 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 | « sdk/lib/html/dartium/html_dartium.dart ('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 451 matching lines...) Expand 10 before | Expand all | Expand 10 after
462 'Window.webkitRequestFileSystem': _file_system_annotations, 462 'Window.webkitRequestFileSystem': _file_system_annotations,
463 'Window.webkitResolveLocalFileSystemURL': _file_system_annotations, 463 'Window.webkitResolveLocalFileSystemURL': _file_system_annotations,
464 'Element.createShadowRoot': [ 464 'Element.createShadowRoot': [
465 "@SupportedBrowser(SupportedBrowser.CHROME, '25')", 465 "@SupportedBrowser(SupportedBrowser.CHROME, '25')",
466 "@Experimental()", 466 "@Experimental()",
467 ], 467 ],
468 'Element.ontransitionend': _all_but_ie9_annotations, 468 'Element.ontransitionend': _all_but_ie9_annotations,
469 # Placeholder to add experimental flag, implementation for this is 469 # Placeholder to add experimental flag, implementation for this is
470 # pending in a separate CL. 470 # pending in a separate CL.
471 'Element.webkitMatchesSelector': ['@Experimental()'], 471 'Element.webkitMatchesSelector': ['@Experimental()'],
472 'Event.clipboardData': _webkit_experimental_annotations, 472 'Event.clipboardData': [
473 "@SupportedBrowser(SupportedBrowser.CHROME)",
474 "@SupportedBrowser(SupportedBrowser.FIREFOX)",
475 "@SupportedBrowser(SupportedBrowser.SAFARI)",
476 "@Experimental()",
477 ],
473 'FormData': _all_but_ie9_annotations, 478 'FormData': _all_but_ie9_annotations,
474 'HashChangeEvent': [ 479 'HashChangeEvent': [
475 "@SupportedBrowser(SupportedBrowser.CHROME)", 480 "@SupportedBrowser(SupportedBrowser.CHROME)",
476 "@SupportedBrowser(SupportedBrowser.FIREFOX)", 481 "@SupportedBrowser(SupportedBrowser.FIREFOX)",
477 "@SupportedBrowser(SupportedBrowser.SAFARI)", 482 "@SupportedBrowser(SupportedBrowser.SAFARI)",
478 ], 483 ],
479 'History.pushState': _history_annotations, 484 'History.pushState': _history_annotations,
480 'History.replaceState': _history_annotations, 485 'History.replaceState': _history_annotations,
481 'HTMLContentElement': _shadow_dom_annotations, 486 'HTMLContentElement': _shadow_dom_annotations,
482 'HTMLDataListElement': _all_but_ie9_annotations, 487 'HTMLDataListElement': _all_but_ie9_annotations,
(...skipping 336 matching lines...) Expand 10 before | Expand all | Expand 10 after
819 pass 824 pass
820 else: 825 else:
821 _logger.warn('Unknown support_level - %s:%s' % (interface_id, member_id)) 826 _logger.warn('Unknown support_level - %s:%s' % (interface_id, member_id))
822 827
823 return annotations 828 return annotations
824 829
825 def Flush(self): 830 def Flush(self):
826 json_file = open(self._api_status_path, 'w+') 831 json_file = open(self._api_status_path, 'w+')
827 json.dump(self._types, json_file, indent=2, separators=(',', ': '), sort_key s=True) 832 json.dump(self._types, json_file, indent=2, separators=(',', ': '), sort_key s=True)
828 json_file.close() 833 json_file.close()
OLDNEW
« no previous file with comments | « sdk/lib/html/dartium/html_dartium.dart ('k') | tools/dom/scripts/generator.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698