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

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

Issue 16308002: Fixes for Blink roll to r151189 (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 6 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 270 matching lines...) Expand 10 before | Expand all | Expand 10 after
281 'DOMWindow.webkitResolveLocalFileSystemURL': _file_system_annotations, 281 'DOMWindow.webkitResolveLocalFileSystemURL': _file_system_annotations,
282 'Element.ontransitionend': _all_but_ie9_annotations, 282 'Element.ontransitionend': _all_but_ie9_annotations,
283 # Placeholder to add experimental flag, implementation for this is 283 # Placeholder to add experimental flag, implementation for this is
284 # pending in a separate CL. 284 # pending in a separate CL.
285 'Element.webkitMatchesSelector': ['@Experimental()'], 285 'Element.webkitMatchesSelector': ['@Experimental()'],
286 'Element.webkitCreateShadowRoot': [ 286 'Element.webkitCreateShadowRoot': [
287 "@SupportedBrowser(SupportedBrowser.CHROME, '25')", 287 "@SupportedBrowser(SupportedBrowser.CHROME, '25')",
288 "@Experimental", 288 "@Experimental",
289 ], 289 ],
290 'Event.clipboardData': _webkit_experimental_annotations, 290 'Event.clipboardData': _webkit_experimental_annotations,
291 'DOMFormData': _all_but_ie9_annotations, 291 'FormData': _all_but_ie9_annotations,
292 'HashChangeEvent': [ 292 'HashChangeEvent': [
293 "@SupportedBrowser(SupportedBrowser.CHROME)", 293 "@SupportedBrowser(SupportedBrowser.CHROME)",
294 "@SupportedBrowser(SupportedBrowser.FIREFOX)", 294 "@SupportedBrowser(SupportedBrowser.FIREFOX)",
295 "@SupportedBrowser(SupportedBrowser.SAFARI)", 295 "@SupportedBrowser(SupportedBrowser.SAFARI)",
296 ], 296 ],
297 'History.pushState': _history_annotations, 297 'History.pushState': _history_annotations,
298 'History.replaceState': _history_annotations, 298 'History.replaceState': _history_annotations,
299 'HTMLContentElement': _shadow_dom_annotations, 299 'HTMLContentElement': _shadow_dom_annotations,
300 'HTMLDataListElement': _all_but_ie9_annotations, 300 'HTMLDataListElement': _all_but_ie9_annotations,
301 'HTMLDetailsElement': _webkit_experimental_annotations, 301 'HTMLDetailsElement': _webkit_experimental_annotations,
(...skipping 330 matching lines...) Expand 10 before | Expand all | Expand 10 after
632 pass 632 pass
633 else: 633 else:
634 _logger.warn('Unknown support_level - %s:%s' % (interface_id, member_id)) 634 _logger.warn('Unknown support_level - %s:%s' % (interface_id, member_id))
635 635
636 return annotations 636 return annotations
637 637
638 def Flush(self): 638 def Flush(self):
639 json_file = open(self._api_status_path, 'w+') 639 json_file = open(self._api_status_path, 'w+')
640 json.dump(self._types, json_file, indent=2, separators=(',', ': '), sort_key s=True) 640 json.dump(self._types, json_file, indent=2, separators=(',', ': '), sort_key s=True)
641 json_file.close() 641 json_file.close()
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698