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

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

Issue 2242203002: record that Gamepad.buttons creates GamepadButtons (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: add test Created 4 years, 4 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 | « tests/html/gamepad_test.dart ('k') | tools/dom/scripts/generator.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 134 matching lines...) Expand 10 before | Expand all | Expand 10 after
145 ], 145 ],
146 146
147 'File.lastModifiedDate': [ 147 'File.lastModifiedDate': [
148 "@Creates('Null')", # JS date object. 148 "@Creates('Null')", # JS date object.
149 ], 149 ],
150 150
151 'FocusEvent.relatedTarget': [ 151 'FocusEvent.relatedTarget': [
152 "@Creates('Null')", 152 "@Creates('Null')",
153 ], 153 ],
154 154
155 'Gamepad.buttons': [
156 "@Creates('JSExtendableArray|GamepadButton')",
157 "@Returns('JSExtendableArray')",
158 ],
159
155 'HTMLCanvasElement.getContext': [ 160 'HTMLCanvasElement.getContext': [
156 "@Creates('CanvasRenderingContext2D|RenderingContext')", 161 "@Creates('CanvasRenderingContext2D|RenderingContext')",
157 "@Returns('CanvasRenderingContext2D|RenderingContext|Null')", 162 "@Returns('CanvasRenderingContext2D|RenderingContext|Null')",
158 ], 163 ],
159 164
160 'HTMLInputElement.valueAsDate': [ 165 'HTMLInputElement.valueAsDate': [
161 "@Creates('Null')", # JS date object. 166 "@Creates('Null')", # JS date object.
162 ], 167 ],
163 168
164 # Rather than have the result of an IDBRequest as a union over all possible 169 # Rather than have the result of an IDBRequest as a union over all possible
(...skipping 722 matching lines...) Expand 10 before | Expand all | Expand 10 after
887 pass 892 pass
888 else: 893 else:
889 _logger.warn('Unknown support_level - %s:%s' % (interface_id, member_id)) 894 _logger.warn('Unknown support_level - %s:%s' % (interface_id, member_id))
890 895
891 return annotations 896 return annotations
892 897
893 def Flush(self): 898 def Flush(self):
894 json_file = open(self._api_status_path, 'w+') 899 json_file = open(self._api_status_path, 'w+')
895 json.dump(self._types, json_file, indent=2, separators=(',', ': '), sort_key s=True) 900 json.dump(self._types, json_file, indent=2, separators=(',', ': '), sort_key s=True)
896 json_file.close() 901 json_file.close()
OLDNEW
« no previous file with comments | « tests/html/gamepad_test.dart ('k') | tools/dom/scripts/generator.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698