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

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

Issue 35863006: Fix for getContextAttributes which wraps bare dictionary into a Dart type. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 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
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 297 matching lines...) Expand 10 before | Expand all | Expand 10 after
308 308
309 'WebGLRenderingContext.getParameter': [ 309 'WebGLRenderingContext.getParameter': [
310 # Taken from http://www.khronos.org/registry/webgl/specs/latest/ 310 # Taken from http://www.khronos.org/registry/webgl/specs/latest/
311 # Section 5.14.3 Setting and getting state 311 # Section 5.14.3 Setting and getting state
312 "@Creates('Null|num|String|bool|JSExtendableArray|Float32List|Int32List" 312 "@Creates('Null|num|String|bool|JSExtendableArray|Float32List|Int32List"
313 "|Uint32List|Framebuffer|Renderbuffer|Texture')", 313 "|Uint32List|Framebuffer|Renderbuffer|Texture')",
314 "@Returns('Null|num|String|bool|JSExtendableArray|Float32List|Int32List" 314 "@Returns('Null|num|String|bool|JSExtendableArray|Float32List|Int32List"
315 "|Uint32List|Framebuffer|Renderbuffer|Texture')", 315 "|Uint32List|Framebuffer|Renderbuffer|Texture')",
316 ], 316 ],
317 317
318 'WebGLRenderingContext.getContextAttributes': [
319 "@Creates('ContextAttributes|=Object')",
320 ],
321
318 'XMLHttpRequest.response': [ 322 'XMLHttpRequest.response': [
319 "@Creates('ByteBuffer|Blob|Document|=Object|JSExtendableArray|String" 323 "@Creates('ByteBuffer|Blob|Document|=Object|JSExtendableArray|String"
320 "|num')", 324 "|num')",
321 ], 325 ],
322 }, dart2jsOnly=True) 326 }, dart2jsOnly=True)
323 327
324 _blink_experimental_annotations = [ 328 _blink_experimental_annotations = [
325 "@SupportedBrowser(SupportedBrowser.CHROME)", 329 "@SupportedBrowser(SupportedBrowser.CHROME)",
326 "@Experimental()", 330 "@Experimental()",
327 ] 331 ]
(...skipping 447 matching lines...) Expand 10 before | Expand all | Expand 10 after
775 pass 779 pass
776 else: 780 else:
777 _logger.warn('Unknown support_level - %s:%s' % (interface_id, member_id)) 781 _logger.warn('Unknown support_level - %s:%s' % (interface_id, member_id))
778 782
779 return annotations 783 return annotations
780 784
781 def Flush(self): 785 def Flush(self):
782 json_file = open(self._api_status_path, 'w+') 786 json_file = open(self._api_status_path, 'w+')
783 json.dump(self._types, json_file, indent=2, separators=(',', ': '), sort_key s=True) 787 json.dump(self._types, json_file, indent=2, separators=(',', ': '), sort_key s=True)
784 json_file.close() 788 json_file.close()
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698