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

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

Issue 952133004: Changes to support roll 39 IDLs (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Cleanup Created 5 years, 9 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/database.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 443 matching lines...) Expand 10 before | Expand all | Expand 10 after
454 "@SupportedBrowser(SupportedBrowser.CHROME)", 454 "@SupportedBrowser(SupportedBrowser.CHROME)",
455 "@SupportedBrowser(SupportedBrowser.FIREFOX)", 455 "@SupportedBrowser(SupportedBrowser.FIREFOX)",
456 "@SupportedBrowser(SupportedBrowser.IE, '10')", 456 "@SupportedBrowser(SupportedBrowser.IE, '10')",
457 "@SupportedBrowser(SupportedBrowser.OPERA)", 457 "@SupportedBrowser(SupportedBrowser.OPERA)",
458 "@SupportedBrowser(SupportedBrowser.SAFARI)", 458 "@SupportedBrowser(SupportedBrowser.SAFARI)",
459 ], 459 ],
460 'AudioBufferSourceNode': _web_audio_annotations, 460 'AudioBufferSourceNode': _web_audio_annotations,
461 'AudioContext': _web_audio_annotations, 461 'AudioContext': _web_audio_annotations,
462 'DOMFileSystem': _file_system_annotations, 462 'DOMFileSystem': _file_system_annotations,
463 'DOMFileSystemSync': _file_system_annotations, 463 'DOMFileSystemSync': _file_system_annotations,
464 'WebKitPoint': _webkit_experimental_annotations,
465 'Window.indexedDB': _indexed_db_annotations, 464 'Window.indexedDB': _indexed_db_annotations,
466 'Window.openDatabase': _web_sql_annotations, 465 'Window.openDatabase': _web_sql_annotations,
467 'Window.performance': _performance_annotations, 466 'Window.performance': _performance_annotations,
468 'Window.webkitNotifications': _webkit_experimental_annotations, 467 'Window.webkitNotifications': _webkit_experimental_annotations,
469 'Window.webkitRequestFileSystem': _file_system_annotations, 468 'Window.webkitRequestFileSystem': _file_system_annotations,
470 'Window.webkitResolveLocalFileSystemURL': _file_system_annotations, 469 'Window.webkitResolveLocalFileSystemURL': _file_system_annotations,
471 'Element.createShadowRoot': [ 470 'Element.createShadowRoot': [
472 "@SupportedBrowser(SupportedBrowser.CHROME, '25')", 471 "@SupportedBrowser(SupportedBrowser.CHROME, '25')",
473 "@Experimental()", 472 "@Experimental()",
474 ], 473 ],
(...skipping 360 matching lines...) Expand 10 before | Expand all | Expand 10 after
835 pass 834 pass
836 else: 835 else:
837 _logger.warn('Unknown support_level - %s:%s' % (interface_id, member_id)) 836 _logger.warn('Unknown support_level - %s:%s' % (interface_id, member_id))
838 837
839 return annotations 838 return annotations
840 839
841 def Flush(self): 840 def Flush(self):
842 json_file = open(self._api_status_path, 'w+') 841 json_file = open(self._api_status_path, 'w+')
843 json.dump(self._types, json_file, indent=2, separators=(',', ': '), sort_key s=True) 842 json.dump(self._types, json_file, indent=2, separators=(',', ': '), sort_key s=True)
844 json_file.close() 843 json_file.close()
OLDNEW
« no previous file with comments | « tools/dom/scripts/dartgenerator.py ('k') | tools/dom/scripts/database.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698