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

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

Issue 15231009: Regen dart:html from IDL with fixes (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 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 | Annotate | Revision Log
« no previous file with comments | « tools/dom/scripts/dartmetadata.py ('k') | tools/dom/src/WebGLConstants.dart » ('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 import logging 5 import logging
6 import monitored 6 import monitored
7 import re 7 import re
8 8
9 typed_array_renames = { 9 typed_array_renames = {
10 'ArrayBuffer': 'ByteBuffer', 10 'ArrayBuffer': 'ByteBuffer',
(...skipping 301 matching lines...) Expand 10 before | Expand all | Expand 10 after
312 renamed_html_members = monitored.Dict('htmlrenamer.renamed_html_members', { 312 renamed_html_members = monitored.Dict('htmlrenamer.renamed_html_members', {
313 'CSSStyleDeclaration.getPropertyValue': '_getPropertyValue', 313 'CSSStyleDeclaration.getPropertyValue': '_getPropertyValue',
314 'CSSStyleDeclaration.setProperty': '_setProperty', 314 'CSSStyleDeclaration.setProperty': '_setProperty',
315 'DirectoryEntry.getDirectory': '_getDirectory', 315 'DirectoryEntry.getDirectory': '_getDirectory',
316 'DirectoryEntry.getFile': '_getFile', 316 'DirectoryEntry.getFile': '_getFile',
317 'Document.createCDATASection': 'createCDataSection', 317 'Document.createCDATASection': 'createCDataSection',
318 'Document.defaultView': 'window', 318 'Document.defaultView': 'window',
319 'Document.querySelector': 'query', 319 'Document.querySelector': 'query',
320 'DOMURL.createObjectURL': 'createObjectUrl', 320 'DOMURL.createObjectURL': 'createObjectUrl',
321 'DOMURL.revokeObjectURL': 'revokeObjectUrl', 321 'DOMURL.revokeObjectURL': 'revokeObjectUrl',
322 'DOMWindow.CSS': 'css',
322 'DOMWindow.clearTimeout': '_clearTimeout', 323 'DOMWindow.clearTimeout': '_clearTimeout',
323 'DOMWindow.clearInterval': '_clearInterval', 324 'DOMWindow.clearInterval': '_clearInterval',
324 'DOMWindow.setTimeout': '_setTimeout', 325 'DOMWindow.setTimeout': '_setTimeout',
325 'DOMWindow.setInterval': '_setInterval', 326 'DOMWindow.setInterval': '_setInterval',
326 'DOMWindow.webkitConvertPointFromNodeToPage': '_convertPointFromNodeToPage', 327 'DOMWindow.webkitConvertPointFromNodeToPage': '_convertPointFromNodeToPage',
327 'DOMWindow.webkitConvertPointFromPageToNode': '_convertPointFromPageToNode', 328 'DOMWindow.webkitConvertPointFromPageToNode': '_convertPointFromPageToNode',
328 'DOMWindow.webkitNotifications': 'notifications', 329 'DOMWindow.webkitNotifications': 'notifications',
329 'DOMWindow.webkitRequestFileSystem': '_requestFileSystem', 330 'DOMWindow.webkitRequestFileSystem': '_requestFileSystem',
330 'DOMWindow.webkitResolveLocalFileSystemURL': 'resolveLocalFileSystemUrl', 331 'DOMWindow.webkitResolveLocalFileSystemURL': 'resolveLocalFileSystemUrl',
331 'Element.querySelector': 'query', 332 'Element.querySelector': 'query',
(...skipping 436 matching lines...) Expand 10 before | Expand all | Expand 10 after
768 769
769 # We're looking for a sequence of letters which start with capital letter 770 # We're looking for a sequence of letters which start with capital letter
770 # then a series of caps and finishes with either the end of the string or 771 # then a series of caps and finishes with either the end of the string or
771 # a capital letter. 772 # a capital letter.
772 # The [0-9] check is for names such as 2D or 3D 773 # The [0-9] check is for names such as 2D or 3D
773 # The following test cases should match as: 774 # The following test cases should match as:
774 # WebKitCSSFilterValue: WebKit(C)(SS)(F)ilterValue 775 # WebKitCSSFilterValue: WebKit(C)(SS)(F)ilterValue
775 # XPathNSResolver: (X)()(P)ath(N)(S)(R)esolver (no change) 776 # XPathNSResolver: (X)()(P)ath(N)(S)(R)esolver (no change)
776 # IFrameElement: (I)()(F)rameElement (no change) 777 # IFrameElement: (I)()(F)rameElement (no change)
777 return re.sub(r'([A-Z])([A-Z]{2,})([A-Z]|$)', toLower, name) 778 return re.sub(r'([A-Z])([A-Z]{2,})([A-Z]|$)', toLower, name)
OLDNEW
« no previous file with comments | « tools/dom/scripts/dartmetadata.py ('k') | tools/dom/src/WebGLConstants.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698