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

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

Issue 1727003002: Replace the now missing ContextAttributes with our previously Firefox-only _TypedContextAttributes (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 9 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
« no previous file with comments | « sdk/lib/html/html_common/conversions.dart ('k') | no next file » | 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 353 matching lines...) Expand 10 before | Expand all | Expand 10 after
364 # Section 5.14.3 Setting and getting state 364 # Section 5.14.3 Setting and getting state
365 "@Creates('Null|num|String|bool|JSExtendableArray|" 365 "@Creates('Null|num|String|bool|JSExtendableArray|"
366 "NativeFloat32List|NativeInt32List|NativeUint32List|" 366 "NativeFloat32List|NativeInt32List|NativeUint32List|"
367 "Framebuffer|Renderbuffer|Texture')", 367 "Framebuffer|Renderbuffer|Texture')",
368 "@Returns('Null|num|String|bool|JSExtendableArray|" 368 "@Returns('Null|num|String|bool|JSExtendableArray|"
369 "NativeFloat32List|NativeInt32List|NativeUint32List|" 369 "NativeFloat32List|NativeInt32List|NativeUint32List|"
370 "Framebuffer|Renderbuffer|Texture')", 370 "Framebuffer|Renderbuffer|Texture')",
371 ], 371 ],
372 372
373 'WebGLRenderingContext.getContextAttributes': [ 373 'WebGLRenderingContext.getContextAttributes': [
374 "@Creates('ContextAttributes|=Object')", 374 "@Creates('ContextAttributes|Null')",
375 ], 375 ],
376 376
377 'XMLHttpRequest.response': [ 377 'XMLHttpRequest.response': [
378 "@Creates('NativeByteBuffer|Blob|Document|=Object|JSExtendableArray" 378 "@Creates('NativeByteBuffer|Blob|Document|=Object|JSExtendableArray"
379 "|String|num')", 379 "|String|num')",
380 ], 380 ],
381 }, dart2jsOnly=True) 381 }, dart2jsOnly=True)
382 382
383 _blink_experimental_annotations = [ 383 _blink_experimental_annotations = [
384 "@SupportedBrowser(SupportedBrowser.CHROME)", 384 "@SupportedBrowser(SupportedBrowser.CHROME)",
(...skipping 470 matching lines...) Expand 10 before | Expand all | Expand 10 after
855 pass 855 pass
856 else: 856 else:
857 _logger.warn('Unknown support_level - %s:%s' % (interface_id, member_id)) 857 _logger.warn('Unknown support_level - %s:%s' % (interface_id, member_id))
858 858
859 return annotations 859 return annotations
860 860
861 def Flush(self): 861 def Flush(self):
862 json_file = open(self._api_status_path, 'w+') 862 json_file = open(self._api_status_path, 'w+')
863 json.dump(self._types, json_file, indent=2, separators=(',', ': '), sort_key s=True) 863 json.dump(self._types, json_file, indent=2, separators=(',', ': '), sort_key s=True)
864 json_file.close() 864 json_file.close()
OLDNEW
« no previous file with comments | « sdk/lib/html/html_common/conversions.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698