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

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

Issue 971033004: Revert "Element.style is not null" (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 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 | Annotate | Revision Log
« 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 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
101 'Element.getElementsByTagName': [ 101 'Element.getElementsByTagName': [
102 "@Creates('NodeList|HtmlCollection')", 102 "@Creates('NodeList|HtmlCollection')",
103 "@Returns('NodeList|HtmlCollection')", 103 "@Returns('NodeList|HtmlCollection')",
104 ], 104 ],
105 105
106 'Element.getElementsByClassName': [ 106 'Element.getElementsByClassName': [
107 "@Creates('NodeList|HtmlCollection')", 107 "@Creates('NodeList|HtmlCollection')",
108 "@Returns('NodeList|HtmlCollection')", 108 "@Returns('NodeList|HtmlCollection')",
109 ], 109 ],
110 110
111 'Element.style': [ # Element.style is never null.
112 "@Returns('CssStyleDeclaration')",
113 ],
114
115 "ErrorEvent.error": [ 111 "ErrorEvent.error": [
116 "@Creates('Null')", # Only returns values created elsewhere. 112 "@Creates('Null')", # Only returns values created elsewhere.
117 ], 113 ],
118 114
119 # To be in callback with the browser-created Event, we had to have called 115 # To be in callback with the browser-created Event, we had to have called
120 # addEventListener on the target, so we avoid 116 # addEventListener on the target, so we avoid
121 'Event.currentTarget': [ 117 'Event.currentTarget': [
122 "@Creates('Null')", 118 "@Creates('Null')",
123 "@Returns('EventTarget|=Object')", 119 "@Returns('EventTarget|=Object')",
124 ], 120 ],
(...skipping 713 matching lines...) Expand 10 before | Expand all | Expand 10 after
838 pass 834 pass
839 else: 835 else:
840 _logger.warn('Unknown support_level - %s:%s' % (interface_id, member_id)) 836 _logger.warn('Unknown support_level - %s:%s' % (interface_id, member_id))
841 837
842 return annotations 838 return annotations
843 839
844 def Flush(self): 840 def Flush(self):
845 json_file = open(self._api_status_path, 'w+') 841 json_file = open(self._api_status_path, 'w+')
846 json.dump(self._types, json_file, indent=2, separators=(',', ': '), sort_key s=True) 842 json.dump(self._types, json_file, indent=2, separators=(',', ': '), sort_key s=True)
847 json_file.close() 843 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