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

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

Issue 589253002: Revert "Chrome 38 script changes from integration branch" (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 2 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/databasebuilder.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 439 matching lines...) Expand 10 before | Expand all | Expand 10 after
450 "@SupportedBrowser(SupportedBrowser.FIREFOX)", 450 "@SupportedBrowser(SupportedBrowser.FIREFOX)",
451 "@SupportedBrowser(SupportedBrowser.IE, '10')", 451 "@SupportedBrowser(SupportedBrowser.IE, '10')",
452 "@SupportedBrowser(SupportedBrowser.OPERA)", 452 "@SupportedBrowser(SupportedBrowser.OPERA)",
453 "@SupportedBrowser(SupportedBrowser.SAFARI)", 453 "@SupportedBrowser(SupportedBrowser.SAFARI)",
454 ], 454 ],
455 'AudioBufferSourceNode': _web_audio_annotations, 455 'AudioBufferSourceNode': _web_audio_annotations,
456 'AudioContext': _web_audio_annotations, 456 'AudioContext': _web_audio_annotations,
457 'DOMFileSystem': _file_system_annotations, 457 'DOMFileSystem': _file_system_annotations,
458 'DOMFileSystemSync': _file_system_annotations, 458 'DOMFileSystemSync': _file_system_annotations,
459 'WebKitPoint': _webkit_experimental_annotations, 459 'WebKitPoint': _webkit_experimental_annotations,
460 'Window.webkitConvertPointFromNodeToPage': _webkit_experimental_annotations,
461 'Window.webkitConvertPointFromPageToNode': _webkit_experimental_annotations,
460 'Window.indexedDB': _indexed_db_annotations, 462 'Window.indexedDB': _indexed_db_annotations,
461 'Window.openDatabase': _web_sql_annotations, 463 'Window.openDatabase': _web_sql_annotations,
462 'Window.performance': _performance_annotations, 464 'Window.performance': _performance_annotations,
463 'Window.webkitNotifications': _webkit_experimental_annotations, 465 'Window.webkitNotifications': _webkit_experimental_annotations,
464 'Window.webkitRequestFileSystem': _file_system_annotations, 466 'Window.webkitRequestFileSystem': _file_system_annotations,
465 'Window.webkitResolveLocalFileSystemURL': _file_system_annotations, 467 'Window.webkitResolveLocalFileSystemURL': _file_system_annotations,
466 'Element.createShadowRoot': [ 468 'Element.createShadowRoot': [
467 "@SupportedBrowser(SupportedBrowser.CHROME, '25')", 469 "@SupportedBrowser(SupportedBrowser.CHROME, '25')",
468 "@Experimental()", 470 "@Experimental()",
469 ], 471 ],
(...skipping 360 matching lines...) Expand 10 before | Expand all | Expand 10 after
830 pass 832 pass
831 else: 833 else:
832 _logger.warn('Unknown support_level - %s:%s' % (interface_id, member_id)) 834 _logger.warn('Unknown support_level - %s:%s' % (interface_id, member_id))
833 835
834 return annotations 836 return annotations
835 837
836 def Flush(self): 838 def Flush(self):
837 json_file = open(self._api_status_path, 'w+') 839 json_file = open(self._api_status_path, 'w+')
838 json.dump(self._types, json_file, indent=2, separators=(',', ': '), sort_key s=True) 840 json.dump(self._types, json_file, indent=2, separators=(',', ': '), sort_key s=True)
839 json_file.close() 841 json_file.close()
OLDNEW
« no previous file with comments | « tools/dom/scripts/dartgenerator.py ('k') | tools/dom/scripts/databasebuilder.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698