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

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

Issue 15231009: Regen dart:html from IDL with fixes (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 7 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/dom.json ('k') | tools/dom/scripts/htmlrenamer.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 304 matching lines...) Expand 10 before | Expand all | Expand 10 after
315 'HTMLProgressElement': _all_but_ie9_annotations, 315 'HTMLProgressElement': _all_but_ie9_annotations,
316 'HTMLShadowElement': _shadow_dom_annotations, 316 'HTMLShadowElement': _shadow_dom_annotations,
317 'HTMLTemplateElement': _blink_experimental_annotations, 317 'HTMLTemplateElement': _blink_experimental_annotations,
318 'HTMLTrackElement': [ 318 'HTMLTrackElement': [
319 "@SupportedBrowser(SupportedBrowser.CHROME)", 319 "@SupportedBrowser(SupportedBrowser.CHROME)",
320 "@SupportedBrowser(SupportedBrowser.IE, '10')", 320 "@SupportedBrowser(SupportedBrowser.IE, '10')",
321 "@SupportedBrowser(SupportedBrowser.SAFARI)", 321 "@SupportedBrowser(SupportedBrowser.SAFARI)",
322 ], 322 ],
323 'IDBFactory': _indexed_db_annotations, 323 'IDBFactory': _indexed_db_annotations,
324 'IDBDatabase': _indexed_db_annotations, 324 'IDBDatabase': _indexed_db_annotations,
325 'LocalMediaStream': _rtc_annotations,
326 'MediaStream': _rtc_annotations, 325 'MediaStream': _rtc_annotations,
327 'MediaStreamEvent': _rtc_annotations, 326 'MediaStreamEvent': _rtc_annotations,
328 'MediaStreamTrack': _rtc_annotations, 327 'MediaStreamTrack': _rtc_annotations,
329 'MediaStreamTrackEvent': _rtc_annotations, 328 'MediaStreamTrackEvent': _rtc_annotations,
330 'MutationObserver': [ 329 'MutationObserver': [
331 "@SupportedBrowser(SupportedBrowser.CHROME)", 330 "@SupportedBrowser(SupportedBrowser.CHROME)",
332 "@SupportedBrowser(SupportedBrowser.FIREFOX)", 331 "@SupportedBrowser(SupportedBrowser.FIREFOX)",
333 "@SupportedBrowser(SupportedBrowser.SAFARI)", 332 "@SupportedBrowser(SupportedBrowser.SAFARI)",
334 "@Experimental", 333 "@Experimental",
335 ], 334 ],
(...skipping 245 matching lines...) Expand 10 before | Expand all | Expand 10 after
581 return 580 return
582 elif support_level == 'deprecated': 581 elif support_level == 'deprecated':
583 return '@Deprecated' 582 return '@Deprecated'
584 else: 583 else:
585 _logger.warn('Unknown support_level - %s:%s' % (interface_id, member_id)) 584 _logger.warn('Unknown support_level - %s:%s' % (interface_id, member_id))
586 585
587 def Flush(self): 586 def Flush(self):
588 json_file = open(self._api_status_path, 'w+') 587 json_file = open(self._api_status_path, 'w+')
589 json.dump(self._types, json_file, indent=2, separators=(',', ': '), sort_key s=True) 588 json.dump(self._types, json_file, indent=2, separators=(',', ': '), sort_key s=True)
590 json_file.close() 589 json_file.close()
OLDNEW
« no previous file with comments | « tools/dom/dom.json ('k') | tools/dom/scripts/htmlrenamer.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698