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

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

Issue 13685021: Properly exposing NodeIterator and TreeWalker. (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 | « tests/html/node_test.dart ('k') | tools/dom/templates/html/impl/impl_NodeIterator.darttemplate » ('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 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
73 _removed_html_interfaces = [ 73 _removed_html_interfaces = [
74 'CSSPrimitiveValue', 74 'CSSPrimitiveValue',
75 'CSSValue', 75 'CSSValue',
76 'Counter', 76 'Counter',
77 'DOMFileSystemSync', # Workers 77 'DOMFileSystemSync', # Workers
78 'DatabaseSync', # Workers 78 'DatabaseSync', # Workers
79 'DataView', # Typed arrays 79 'DataView', # Typed arrays
80 'DedicatedWorkerContext', # Workers 80 'DedicatedWorkerContext', # Workers
81 'DirectoryEntrySync', # Workers 81 'DirectoryEntrySync', # Workers
82 'DirectoryReaderSync', # Workers 82 'DirectoryReaderSync', # Workers
83 'EntityReference',
83 'EntrySync', # Workers 84 'EntrySync', # Workers
84 'FileEntrySync', # Workers 85 'FileEntrySync', # Workers
85 'FileReaderSync', # Workers 86 'FileReaderSync', # Workers
86 'FileWriterSync', # Workers 87 'FileWriterSync', # Workers
87 'HTMLAppletElement', 88 'HTMLAppletElement',
88 'HTMLBaseFontElement', 89 'HTMLBaseFontElement',
89 'HTMLDirectoryElement', 90 'HTMLDirectoryElement',
90 'HTMLFontElement', 91 'HTMLFontElement',
91 'HTMLFrameElement', 92 'HTMLFrameElement',
92 'HTMLFrameSetElement', 93 'HTMLFrameSetElement',
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
162 # browser. 163 # browser.
163 _private_html_members = monitored.Set('htmlrenamer._private_html_members', [ 164 _private_html_members = monitored.Set('htmlrenamer._private_html_members', [
164 'CanvasRenderingContext2D.arc', 165 'CanvasRenderingContext2D.arc',
165 'CanvasRenderingContext2D.drawImage', 166 'CanvasRenderingContext2D.drawImage',
166 'CompositionEvent.initCompositionEvent', 167 'CompositionEvent.initCompositionEvent',
167 'CustomEvent.initCustomEvent', 168 'CustomEvent.initCustomEvent',
168 'DeviceOrientationEvent.initDeviceOrientationEvent', 169 'DeviceOrientationEvent.initDeviceOrientationEvent',
169 'Document.createElement', 170 'Document.createElement',
170 'Document.createElementNS', 171 'Document.createElementNS',
171 'Document.createEvent', 172 'Document.createEvent',
173 'Document.createNodeIterator',
172 'Document.createRange', 174 'Document.createRange',
173 'Document.createTextNode', 175 'Document.createTextNode',
174 'Document.createTouch', 176 'Document.createTouch',
175 'Document.createTouchList', 177 'Document.createTouchList',
178 'Document.createTreeWalker',
176 'Document.querySelectorAll', 179 'Document.querySelectorAll',
177 180
178 # Moved to HTMLDocument. 181 # Moved to HTMLDocument.
179 'Document.body', 182 'Document.body',
180 'Document.caretRangeFromPoint', 183 'Document.caretRangeFromPoint',
181 'Document.elementFromPoint', 184 'Document.elementFromPoint',
182 'Document.getCSSCanvasContext', 185 'Document.getCSSCanvasContext',
183 'Document.head', 186 'Document.head',
184 'Document.lastModified', 187 'Document.lastModified',
185 'Document.preferredStylesheetSet', 188 'Document.preferredStylesheetSet',
(...skipping 207 matching lines...) Expand 10 before | Expand all | Expand 10 after
393 'Document.applets', 396 'Document.applets',
394 'Document.bgColor', 397 'Document.bgColor',
395 'Document.captureEvents', 398 'Document.captureEvents',
396 'Document.clear', 399 'Document.clear',
397 'Document.createAttribute', 400 'Document.createAttribute',
398 'Document.createAttributeNS', 401 'Document.createAttributeNS',
399 'Document.createComment', 402 'Document.createComment',
400 'Document.createEntityReference', 403 'Document.createEntityReference',
401 'Document.createExpression', 404 'Document.createExpression',
402 'Document.createNSResolver', 405 'Document.createNSResolver',
403 'Document.createNodeIterator',
404 'Document.createProcessingInstruction', 406 'Document.createProcessingInstruction',
405 'Document.createTreeWalker',
406 'Document.designMode', 407 'Document.designMode',
407 'Document.dir', 408 'Document.dir',
408 'Document.evaluate', 409 'Document.evaluate',
409 'Document.fgColor', 410 'Document.fgColor',
410 'Document.get:URL', 411 'Document.get:URL',
411 'Document.get:anchors', 412 'Document.get:anchors',
412 'Document.get:characterSet', 413 'Document.get:characterSet',
413 'Document.get:compatMode', 414 'Document.get:compatMode',
414 'Document.get:defaultCharset', 415 'Document.get:defaultCharset',
415 'Document.get:doctype', 416 'Document.get:doctype',
(...skipping 187 matching lines...) Expand 10 before | Expand all | Expand 10 after
603 'Node.get:prefix', 604 'Node.get:prefix',
604 'Node.hasAttributes', 605 'Node.hasAttributes',
605 'Node.isDefaultNamespace', 606 'Node.isDefaultNamespace',
606 'Node.isEqualNode', 607 'Node.isEqualNode',
607 'Node.isSameNode', 608 'Node.isSameNode',
608 'Node.isSupported', 609 'Node.isSupported',
609 'Node.lookupNamespaceURI', 610 'Node.lookupNamespaceURI',
610 'Node.lookupPrefix', 611 'Node.lookupPrefix',
611 'Node.normalize', 612 'Node.normalize',
612 'Node.set:nodeValue', 613 'Node.set:nodeValue',
614 'NodeFilter.acceptNode',
615 'NodeIterator.expandEntityReferences',
616 'NodeIterator.filter',
613 'NodeList.item', 617 'NodeList.item',
614 'ShadowRoot.getElementsByTagNameNS', 618 'ShadowRoot.getElementsByTagNameNS',
615 'SVGStyledElement.getPresentationAttribute',
616 'WheelEvent.wheelDelta', 619 'WheelEvent.wheelDelta',
617 'WorkerContext.webkitIndexedDB', 620 'WorkerContext.webkitIndexedDB',
618 # TODO(jacobr): should these be removed? 621 # TODO(jacobr): should these be removed?
619 'Document.close', 622 'Document.close',
620 'Document.hasFocus', 623 'Document.hasFocus',
621 ]) 624 ])
622 625
623 # Manual dart: library name lookup. 626 # Manual dart: library name lookup.
624 _library_names = monitored.Dict('htmlrenamer._library_names', { 627 _library_names = monitored.Dict('htmlrenamer._library_names', {
625 'DOMWindow': 'html', 628 'DOMWindow': 'html',
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after
756 759
757 # We're looking for a sequence of letters which start with capital letter 760 # We're looking for a sequence of letters which start with capital letter
758 # then a series of caps and finishes with either the end of the string or 761 # then a series of caps and finishes with either the end of the string or
759 # a capital letter. 762 # a capital letter.
760 # The [0-9] check is for names such as 2D or 3D 763 # The [0-9] check is for names such as 2D or 3D
761 # The following test cases should match as: 764 # The following test cases should match as:
762 # WebKitCSSFilterValue: WebKit(C)(SS)(F)ilterValue 765 # WebKitCSSFilterValue: WebKit(C)(SS)(F)ilterValue
763 # XPathNSResolver: (X)()(P)ath(N)(S)(R)esolver (no change) 766 # XPathNSResolver: (X)()(P)ath(N)(S)(R)esolver (no change)
764 # IFrameElement: (I)()(F)rameElement (no change) 767 # IFrameElement: (I)()(F)rameElement (no change)
765 return re.sub(r'([A-Z])([A-Z]{2,})([A-Z]|$)', toLower, name) 768 return re.sub(r'([A-Z])([A-Z]{2,})([A-Z]|$)', toLower, name)
OLDNEW
« no previous file with comments | « tests/html/node_test.dart ('k') | tools/dom/templates/html/impl/impl_NodeIterator.darttemplate » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698