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

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

Issue 23829002: Checkpoint in changes to match push (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Ready for review 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
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 366 matching lines...) Expand 10 before | Expand all | Expand 10 after
377 # Annotations to be placed on generated members. 377 # Annotations to be placed on generated members.
378 # The table is indexed as: 378 # The table is indexed as:
379 # INTERFACE: annotations to be added to the interface declaration 379 # INTERFACE: annotations to be added to the interface declaration
380 # INTERFACE.MEMBER: annotation to be added to the member declaration 380 # INTERFACE.MEMBER: annotation to be added to the member declaration
381 _annotations = monitored.Dict('dartmetadata._annotations', { 381 _annotations = monitored.Dict('dartmetadata._annotations', {
382 'CSSHostRule': _shadow_dom_annotations, 382 'CSSHostRule': _shadow_dom_annotations,
383 'WebKitCSSMatrix': _webkit_experimental_annotations, 383 'WebKitCSSMatrix': _webkit_experimental_annotations,
384 'Crypto': _webkit_experimental_annotations, 384 'Crypto': _webkit_experimental_annotations,
385 'Database': _web_sql_annotations, 385 'Database': _web_sql_annotations,
386 'DatabaseSync': _web_sql_annotations, 386 'DatabaseSync': _web_sql_annotations,
387 'DOMApplicationCache': [ 387 'ApplicationCache': [
388 "@SupportedBrowser(SupportedBrowser.CHROME)", 388 "@SupportedBrowser(SupportedBrowser.CHROME)",
389 "@SupportedBrowser(SupportedBrowser.FIREFOX)", 389 "@SupportedBrowser(SupportedBrowser.FIREFOX)",
390 "@SupportedBrowser(SupportedBrowser.IE, '10')", 390 "@SupportedBrowser(SupportedBrowser.IE, '10')",
391 "@SupportedBrowser(SupportedBrowser.OPERA)", 391 "@SupportedBrowser(SupportedBrowser.OPERA)",
392 "@SupportedBrowser(SupportedBrowser.SAFARI)", 392 "@SupportedBrowser(SupportedBrowser.SAFARI)",
393 ], 393 ],
394 'DOMFileSystem': _file_system_annotations, 394 'DOMFileSystem': _file_system_annotations,
395 'DOMFileSystemSync': _file_system_annotations, 395 'DOMFileSystemSync': _file_system_annotations,
396 'WebKitPoint': _webkit_experimental_annotations, 396 'WebKitPoint': _webkit_experimental_annotations,
397 'Window.webkitConvertPointFromNodeToPage': _webkit_experimental_annotations, 397 'Window.webkitConvertPointFromNodeToPage': _webkit_experimental_annotations,
(...skipping 358 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

Powered by Google App Engine
This is Rietveld 408576698