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

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

Issue 13686018: Testing & supporting new HTMLTemplateElement (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/systemhtml.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 153 matching lines...) Expand 10 before | Expand all | Expand 10 after
164 "|Framebuffer|Renderbuffer|Texture')", 164 "|Framebuffer|Renderbuffer|Texture')",
165 "@Returns('Null|num|String|bool|=List|Float32List|Int32List|Uint32List" 165 "@Returns('Null|num|String|bool|=List|Float32List|Int32List|Uint32List"
166 "|Framebuffer|Renderbuffer|Texture')", 166 "|Framebuffer|Renderbuffer|Texture')",
167 ], 167 ],
168 168
169 'XMLHttpRequest.response': [ 169 'XMLHttpRequest.response': [
170 "@Creates('ByteBuffer|Blob|Document|=Object|=List|String|num')", 170 "@Creates('ByteBuffer|Blob|Document|=Object|=List|String|num')",
171 ], 171 ],
172 }, dart2jsOnly=True) 172 }, dart2jsOnly=True)
173 173
174 _blink_experimental_annotations = [
175 "@SupportedBrowser(SupportedBrowser.CHROME)",
176 "@Experimental",
177 ]
178
174 _indexed_db_annotations = [ 179 _indexed_db_annotations = [
175 "@SupportedBrowser(SupportedBrowser.CHROME)", 180 "@SupportedBrowser(SupportedBrowser.CHROME)",
176 "@SupportedBrowser(SupportedBrowser.FIREFOX, '15')", 181 "@SupportedBrowser(SupportedBrowser.FIREFOX, '15')",
177 "@SupportedBrowser(SupportedBrowser.IE, '10')", 182 "@SupportedBrowser(SupportedBrowser.IE, '10')",
178 "@Experimental", 183 "@Experimental",
179 ] 184 ]
180 185
181 _file_system_annotations = [ 186 _file_system_annotations = [
182 "@SupportedBrowser(SupportedBrowser.CHROME)", 187 "@SupportedBrowser(SupportedBrowser.CHROME)",
183 "@Experimental", 188 "@Experimental",
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after
293 'HTMLKeygenElement': _webkit_experimental_annotations, 298 'HTMLKeygenElement': _webkit_experimental_annotations,
294 'HTMLMeterElement': _no_ie_annotations, 299 'HTMLMeterElement': _no_ie_annotations,
295 'HTMLObjectElement': [ 300 'HTMLObjectElement': [
296 "@SupportedBrowser(SupportedBrowser.CHROME)", 301 "@SupportedBrowser(SupportedBrowser.CHROME)",
297 "@SupportedBrowser(SupportedBrowser.IE)", 302 "@SupportedBrowser(SupportedBrowser.IE)",
298 "@SupportedBrowser(SupportedBrowser.SAFARI)", 303 "@SupportedBrowser(SupportedBrowser.SAFARI)",
299 ], 304 ],
300 'HTMLOutputElement': _no_ie_annotations, 305 'HTMLOutputElement': _no_ie_annotations,
301 'HTMLProgressElement': _all_but_ie9_annotations, 306 'HTMLProgressElement': _all_but_ie9_annotations,
302 'HTMLShadowElement': _shadow_dom_annotations, 307 'HTMLShadowElement': _shadow_dom_annotations,
308 'HTMLTemplateElement': _blink_experimental_annotations,
303 'HTMLTrackElement': [ 309 'HTMLTrackElement': [
304 "@SupportedBrowser(SupportedBrowser.CHROME)", 310 "@SupportedBrowser(SupportedBrowser.CHROME)",
305 "@SupportedBrowser(SupportedBrowser.IE, '10')", 311 "@SupportedBrowser(SupportedBrowser.IE, '10')",
306 "@SupportedBrowser(SupportedBrowser.SAFARI)", 312 "@SupportedBrowser(SupportedBrowser.SAFARI)",
307 ], 313 ],
308 'IDBFactory': _indexed_db_annotations, 314 'IDBFactory': _indexed_db_annotations,
309 'IDBDatabase': _indexed_db_annotations, 315 'IDBDatabase': _indexed_db_annotations,
310 'LocalMediaStream': _rtc_annotations, 316 'LocalMediaStream': _rtc_annotations,
311 'MediaStream': _rtc_annotations, 317 'MediaStream': _rtc_annotations,
312 'MediaStreamEvent': _rtc_annotations, 318 'MediaStreamEvent': _rtc_annotations,
(...skipping 250 matching lines...) Expand 10 before | Expand all | Expand 10 after
563 return 569 return
564 elif support_level == 'deprecated': 570 elif support_level == 'deprecated':
565 return '@Deprecated' 571 return '@Deprecated'
566 else: 572 else:
567 _logger.warn('Unknown support_level - %s:%s' % (interface.id, member_id)) 573 _logger.warn('Unknown support_level - %s:%s' % (interface.id, member_id))
568 574
569 def Flush(self): 575 def Flush(self):
570 json_file = open(self._api_status_path, 'w+') 576 json_file = open(self._api_status_path, 'w+')
571 json.dump(self._types, json_file, indent=2, separators=(',', ': '), sort_key s=True) 577 json.dump(self._types, json_file, indent=2, separators=(',', ': '), sort_key s=True)
572 json_file.close() 578 json_file.close()
OLDNEW
« no previous file with comments | « tools/dom/dom.json ('k') | tools/dom/scripts/systemhtml.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698