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

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

Issue 12218131: Combine window.setTimeout/setInterval with Timer and Timer.repeating. Also (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 222 matching lines...) Expand 10 before | Expand all | Expand 10 after
233 'CanvasRenderingContext2D.setLineCap', 233 'CanvasRenderingContext2D.setLineCap',
234 'CanvasRenderingContext2D.setLineJoin', 234 'CanvasRenderingContext2D.setLineJoin',
235 'CanvasRenderingContext2D.setLineWidth', 235 'CanvasRenderingContext2D.setLineWidth',
236 'CanvasRenderingContext2D.setMiterLimit', 236 'CanvasRenderingContext2D.setMiterLimit',
237 'CanvasRenderingContext2D.setShadow', 237 'CanvasRenderingContext2D.setShadow',
238 'CanvasRenderingContext2D.setStrokeColor', 238 'CanvasRenderingContext2D.setStrokeColor',
239 'CharacterData.remove', 239 'CharacterData.remove',
240 'DOMWindow.call:blur', 240 'DOMWindow.call:blur',
241 'DOMWindow.clientInformation', 241 'DOMWindow.clientInformation',
242 'DOMWindow.call:focus', 242 'DOMWindow.call:focus',
243 'DOMWindow.clearTimeout',
244 'DOMWindow.clearInterval',
243 'DOMWindow.get:frames', 245 'DOMWindow.get:frames',
244 'DOMWindow.get:length', 246 'DOMWindow.get:length',
245 'DOMWindow.prompt', 247 'DOMWindow.prompt',
248 'DOMWindow.setTimeout',
249 'DOMWindow.setInterval',
246 'DOMWindow.webkitCancelRequestAnimationFrame', 250 'DOMWindow.webkitCancelRequestAnimationFrame',
247 'DOMWindow.webkitIndexedDB', 251 'DOMWindow.webkitIndexedDB',
248 'Document.adoptNode', 252 'Document.adoptNode',
249 'Document.alinkColor', 253 'Document.alinkColor',
250 'Document.all', 254 'Document.all',
251 'Document.applets', 255 'Document.applets',
252 'Document.bgColor', 256 'Document.bgColor',
253 'Document.captureEvents', 257 'Document.captureEvents',
254 'Document.clear', 258 'Document.clear',
255 'Document.createAttribute', 259 'Document.createAttribute',
(...skipping 326 matching lines...) Expand 10 before | Expand all | Expand 10 after
582 586
583 # We're looking for a sequence of letters which start with capital letter 587 # We're looking for a sequence of letters which start with capital letter
584 # then a series of caps and finishes with either the end of the string or 588 # then a series of caps and finishes with either the end of the string or
585 # a capital letter. 589 # a capital letter.
586 # The [0-9] check is for names such as 2D or 3D 590 # The [0-9] check is for names such as 2D or 3D
587 # The following test cases should match as: 591 # The following test cases should match as:
588 # WebKitCSSFilterValue: WebKit(C)(SS)(F)ilterValue 592 # WebKitCSSFilterValue: WebKit(C)(SS)(F)ilterValue
589 # XPathNSResolver: (X)()(P)ath(N)(S)(R)esolver (no change) 593 # XPathNSResolver: (X)()(P)ath(N)(S)(R)esolver (no change)
590 # IFrameElement: (I)()(F)rameElement (no change) 594 # IFrameElement: (I)()(F)rameElement (no change)
591 return re.sub(r'([A-Z])([A-Z]{2,})([A-Z]|$)', toLower, name) 595 return re.sub(r'([A-Z])([A-Z]{2,})([A-Z]|$)', toLower, name)
OLDNEW
« no previous file with comments | « tests/html/window_open_test.dart ('k') | tools/dom/templates/html/dart2js/impl_Window.darttemplate » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698