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

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

Issue 1744093002: Migrated changed for sdk/lib genernation from integration branch to master (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 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
« no previous file with comments | « no previous file | tools/dom/scripts/idlnode.py » ('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 250 matching lines...) Expand 10 before | Expand all | Expand 10 after
261 'Element.hasAttribute', 261 'Element.hasAttribute',
262 'Element.hasAttributeNS', 262 'Element.hasAttributeNS',
263 'Element.innerHTML', 263 'Element.innerHTML',
264 'Element.querySelectorAll', 264 'Element.querySelectorAll',
265 # TODO(vsm): These have been converted from int to double in Chrome 36. 265 # TODO(vsm): These have been converted from int to double in Chrome 36.
266 # Special case them so we run on 34, 35, and 36. 266 # Special case them so we run on 34, 35, and 36.
267 'Element.scrollLeft', 267 'Element.scrollLeft',
268 'Element.scrollTop', 268 'Element.scrollTop',
269 'Element.scrollWidth', 269 'Element.scrollWidth',
270 'Element.scrollHeight', 270 'Element.scrollHeight',
271 'Element.clientLeft',
272 'Element.clientTop',
273 'Element.clientWidth',
274 'Element.clientHeight',
275 271
276 'Event.initEvent', 272 'Event.initEvent',
277 'EventTarget.addEventListener', 273 'EventTarget.addEventListener',
278 'EventTarget.removeEventListener', 274 'EventTarget.removeEventListener',
279 'FileReader.result', 275 'FileReader.result',
280 'Geolocation.clearWatch', 276 'Geolocation.clearWatch',
281 'Geolocation.getCurrentPosition', 277 'Geolocation.getCurrentPosition',
282 'Geolocation.watchPosition', 278 'Geolocation.watchPosition',
283 'HashChangeEvent.initHashChangeEvent', 279 'HashChangeEvent.initHashChangeEvent',
284 'HTMLCanvasElement.toDataURL', 280 'HTMLCanvasElement.toDataURL',
(...skipping 540 matching lines...) Expand 10 before | Expand all | Expand 10 after
825 'Node.lookupNamespaceURI', 821 'Node.lookupNamespaceURI',
826 'Node.lookupPrefix', 822 'Node.lookupPrefix',
827 'Node.normalize', 823 'Node.normalize',
828 'Node.set:nodeValue', 824 'Node.set:nodeValue',
829 'NodeFilter.acceptNode', 825 'NodeFilter.acceptNode',
830 'NodeIterator.expandEntityReferences', 826 'NodeIterator.expandEntityReferences',
831 'NodeIterator.filter', 827 'NodeIterator.filter',
832 'NodeList.item', 828 'NodeList.item',
833 'ParentNode.append', 829 'ParentNode.append',
834 'ParentNode.prepend', 830 'ParentNode.prepend',
835 'Performance.webkitClearMarks',
836 'Performance.webkitClearMeasures',
837 'Performance.webkitGetEntries',
838 'Performance.webkitGetEntriesByName',
839 'Performance.webkitGetEntriesByType',
840 'Performance.webkitMark',
841 'Performance.webkitMeasure',
842 'ShadowRoot.getElementsByTagNameNS', 831 'ShadowRoot.getElementsByTagNameNS',
843 'SVGElement.getPresentationAttribute', 832 'SVGElement.getPresentationAttribute',
844 'SVGElementInstance.on:wheel', 833 'SVGElementInstance.on:wheel',
845 'Touch.get:webkitRadiusX', 834 'Touch.get:webkitRadiusX',
846 'Touch.get:webkitRadiusY', 835 'Touch.get:webkitRadiusY',
847 'Touch.get:webkitForce', 836 'Touch.get:webkitForce',
848 'Touch.get:webkitRotationAngle', 837 'Touch.get:webkitRotationAngle',
849 'WheelEvent.wheelDelta', 838 'WheelEvent.wheelDelta',
850 'WheelEvent.wheelDeltaX', 839 'WheelEvent.wheelDeltaX',
851 'WheelEvent.wheelDeltaY', 840 'WheelEvent.wheelDeltaY',
(...skipping 212 matching lines...) Expand 10 before | Expand all | Expand 10 after
1064 1053
1065 # We're looking for a sequence of letters which start with capital letter 1054 # We're looking for a sequence of letters which start with capital letter
1066 # then a series of caps and finishes with either the end of the string or 1055 # then a series of caps and finishes with either the end of the string or
1067 # a capital letter. 1056 # a capital letter.
1068 # The [0-9] check is for names such as 2D or 3D 1057 # The [0-9] check is for names such as 2D or 3D
1069 # The following test cases should match as: 1058 # The following test cases should match as:
1070 # WebKitCSSFilterValue: WebKit(C)(SS)(F)ilterValue 1059 # WebKitCSSFilterValue: WebKit(C)(SS)(F)ilterValue
1071 # XPathNSResolver: (X)()(P)ath(N)(S)(R)esolver (no change) 1060 # XPathNSResolver: (X)()(P)ath(N)(S)(R)esolver (no change)
1072 # IFrameElement: (I)()(F)rameElement (no change) 1061 # IFrameElement: (I)()(F)rameElement (no change)
1073 return re.sub(r'([A-Z])([A-Z]{2,})([A-Z]|$)', toLower, name) 1062 return re.sub(r'([A-Z])([A-Z]{2,})([A-Z]|$)', toLower, name)
OLDNEW
« no previous file with comments | « no previous file | tools/dom/scripts/idlnode.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698