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

Side by Side Diff: lib/html/scripts/htmlrenamer.py

Issue 11028018: Missed a change in the rename from initCustomEvent -> $dom_initCustomEvent. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 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 html_interface_renames = { 6 html_interface_renames = {
7 'DOMFormData': 'FormData', 7 'DOMFormData': 'FormData',
8 'DOMWindow': 'Window', 8 'DOMWindow': 'Window',
9 'WebKitAnimation': 'Animation', 9 'WebKitAnimation': 'Animation',
10 'WebKitAnimationEvent': 'AnimationEvent', 10 'WebKitAnimationEvent': 'AnimationEvent',
(...skipping 10 matching lines...) Expand all
21 'XMLHttpRequest': 'HttpRequest', 21 'XMLHttpRequest': 'HttpRequest',
22 'XMLHttpRequestException': 'HttpRequestException', 22 'XMLHttpRequestException': 'HttpRequestException',
23 'XMLHttpRequestProgressEvent': 'HttpRequestProgressEvent', 23 'XMLHttpRequestProgressEvent': 'HttpRequestProgressEvent',
24 'XMLHttpRequestUpload': 'HttpRequestUpload', 24 'XMLHttpRequestUpload': 'HttpRequestUpload',
25 } 25 }
26 26
27 # Members from the standard dom that should not be exposed publicly in dart:html 27 # Members from the standard dom that should not be exposed publicly in dart:html
28 # but need to be exposed internally to implement dart:html on top of a standard 28 # but need to be exposed internally to implement dart:html on top of a standard
29 # browser. 29 # browser.
30 _private_html_members = set([ 30 _private_html_members = set([
31 'CustomEvent.initCustomEvent',
31 'Document.createElement', 32 'Document.createElement',
32 'Document.createElementNS', 33 'Document.createElementNS',
33 'Document.createEvent', 34 'Document.createEvent',
34 'Document.createTextNode', 35 'Document.createTextNode',
35 'Document.createTouchList', 36 'Document.createTouchList',
36 'Document.getElementById', 37 'Document.getElementById',
37 'Document.getElementsByClassName', 38 'Document.getElementsByClassName',
38 'Document.getElementsByName', 39 'Document.getElementsByName',
39 'Document.getElementsByTagName', 40 'Document.getElementsByTagName',
40 'Document.querySelector', 41 'Document.querySelector',
(...skipping 272 matching lines...) Expand 10 before | Expand all | Expand 10 after
313 314
314 def _FindMatch(self, interface, member, member_prefix, candidates): 315 def _FindMatch(self, interface, member, member_prefix, candidates):
315 for interface in self._database.Hierarchy(interface): 316 for interface in self._database.Hierarchy(interface):
316 html_interface_name = self.RenameInterface(interface) 317 html_interface_name = self.RenameInterface(interface)
317 member_name = html_interface_name + '.' + member 318 member_name = html_interface_name + '.' + member
318 if member_name in candidates: 319 if member_name in candidates:
319 return member_name 320 return member_name
320 member_name = html_interface_name + '.' + member_prefix + member 321 member_name = html_interface_name + '.' + member_prefix + member
321 if member_name in candidates: 322 if member_name in candidates:
322 return member_name 323 return member_name
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698