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

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

Issue 2879403002: dart2js + html: getBoundingClientRect() returns a ClientRect (Closed)
Patch Set: add TODO comment Created 3 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
« no previous file with comments | « sdk/lib/html/dart2js/html_dart2js.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 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
99 ], 99 ],
100 'DocumentFragment.querySelectorAll': [ 100 'DocumentFragment.querySelectorAll': [
101 "@Creates('NodeList')", 101 "@Creates('NodeList')",
102 "@Returns('NodeList')", 102 "@Returns('NodeList')",
103 ], 103 ],
104 'Element.querySelectorAll': [ 104 'Element.querySelectorAll': [
105 "@Creates('NodeList')", 105 "@Creates('NodeList')",
106 "@Returns('NodeList')", 106 "@Returns('NodeList')",
107 ], 107 ],
108 108
109 'Element.getBoundingClientRect': [
110 "@Creates('_ClientRect')",
111 "@Returns('_ClientRect|Null')", # TODO(sra): Verify and remove Null.
112 ],
113
109 # Methods returning Window can return a local window, or a cross-frame 114 # Methods returning Window can return a local window, or a cross-frame
110 # window (=Object) that needs wrapping. 115 # window (=Object) that needs wrapping.
111 'Window': [ 116 'Window': [
112 "@Creates('Window|=Object')", 117 "@Creates('Window|=Object')",
113 "@Returns('Window|=Object')", 118 "@Returns('Window|=Object')",
114 ], 119 ],
115 120
116 'Window.openDatabase': [ 121 'Window.openDatabase': [
117 "@Creates('SqlDatabase')", 122 "@Creates('SqlDatabase')",
118 ], 123 ],
(...skipping 802 matching lines...) Expand 10 before | Expand all | Expand 10 after
921 pass 926 pass
922 else: 927 else:
923 _logger.warn('Unknown support_level - %s:%s' % (interface_id, member_id)) 928 _logger.warn('Unknown support_level - %s:%s' % (interface_id, member_id))
924 929
925 return annotations 930 return annotations
926 931
927 def Flush(self): 932 def Flush(self):
928 json_file = open(self._api_status_path, 'w+') 933 json_file = open(self._api_status_path, 'w+')
929 json.dump(self._types, json_file, indent=2, separators=(',', ': '), sort_key s=True) 934 json.dump(self._types, json_file, indent=2, separators=(',', ': '), sort_key s=True)
930 json_file.close() 935 json_file.close()
OLDNEW
« no previous file with comments | « sdk/lib/html/dart2js/html_dart2js.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698