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

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

Issue 12159005: Dartifying some IndexedDB APIs. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 10 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 import logging 5 import logging
6 import monitored 6 import monitored
7 import re 7 import re
8 8
9 html_interface_renames = monitored.Dict('htmlrenamer.html_interface_renames', { 9 html_interface_renames = monitored.Dict('htmlrenamer.html_interface_renames', {
10 'CDATASection': 'CDataSection', 10 'CDATASection': 'CDataSection',
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after
135 'Element.removeAttributeNS', 135 'Element.removeAttributeNS',
136 'Element.setAttribute', 136 'Element.setAttribute',
137 'Element.setAttributeNS', 137 'Element.setAttributeNS',
138 'ElementTraversal.childElementCount', 138 'ElementTraversal.childElementCount',
139 'ElementTraversal.firstElementChild', 139 'ElementTraversal.firstElementChild',
140 'ElementTraversal.lastElementChild', 140 'ElementTraversal.lastElementChild',
141 'Event.initEvent', 141 'Event.initEvent',
142 'EventTarget.addEventListener', 142 'EventTarget.addEventListener',
143 'EventTarget.removeEventListener', 143 'EventTarget.removeEventListener',
144 'HashChangeEvent.initHashChangeEvent', 144 'HashChangeEvent.initHashChangeEvent',
145 'IDBFactory.deleteDatabase',
146 'IDBFactory.open',
147 'IDBObjectStore.put',
148 'IDBObjectStore.getObject',
149 'IDBObjectStore.openCursor',
145 'KeyboardEvent.initKeyboardEvent', 150 'KeyboardEvent.initKeyboardEvent',
146 'KeyboardEvent.keyIdentifier', 151 'KeyboardEvent.keyIdentifier',
147 'MessageEvent.initMessageEvent', 152 'MessageEvent.initMessageEvent',
148 'MouseEvent.initMouseEvent', 153 'MouseEvent.initMouseEvent',
149 'MutationEvent.initMutationEvent', 154 'MutationEvent.initMutationEvent',
150 'Node.appendChild', 155 'Node.appendChild',
151 'Node.attributes', 156 'Node.attributes',
152 'Node.childNodes', 157 'Node.childNodes',
153 'Node.firstChild', 158 'Node.firstChild',
154 'Node.lastChild', 159 'Node.lastChild',
(...skipping 418 matching lines...) Expand 10 before | Expand all | Expand 10 after
573 578
574 # We're looking for a sequence of letters which start with capital letter 579 # We're looking for a sequence of letters which start with capital letter
575 # then a series of caps and finishes with either the end of the string or 580 # then a series of caps and finishes with either the end of the string or
576 # a capital letter. 581 # a capital letter.
577 # The [0-9] check is for names such as 2D or 3D 582 # The [0-9] check is for names such as 2D or 3D
578 # The following test cases should match as: 583 # The following test cases should match as:
579 # WebKitCSSFilterValue: WebKit(C)(SS)(F)ilterValue 584 # WebKitCSSFilterValue: WebKit(C)(SS)(F)ilterValue
580 # XPathNSResolver: (X)()(P)ath(N)(S)(R)esolver (no change) 585 # XPathNSResolver: (X)()(P)ath(N)(S)(R)esolver (no change)
581 # IFrameElement: (I)()(F)rameElement (no change) 586 # IFrameElement: (I)()(F)rameElement (no change)
582 return re.sub(r'([A-Z])([A-Z]{2,})([A-Z]|$)', toLower, name) 587 return re.sub(r'([A-Z])([A-Z]{2,})([A-Z]|$)', toLower, name)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698