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

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

Issue 493843003: Round Touch attributes back to int for backwards compatibility (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Rebase Created 6 years, 4 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 typed_array_renames = { 9 typed_array_renames = {
10 'ArrayBuffer': 'ByteBuffer', 10 'ArrayBuffer': 'ByteBuffer',
(...skipping 311 matching lines...) Expand 10 before | Expand all | Expand 10 after
322 'ShadowRoot.applyAuthorStyles', 322 'ShadowRoot.applyAuthorStyles',
323 'ShadowRoot.resetStyleInheritance', 323 'ShadowRoot.resetStyleInheritance',
324 'Storage.clear', 324 'Storage.clear',
325 'Storage.getItem', 325 'Storage.getItem',
326 'Storage.key', 326 'Storage.key',
327 'Storage.length', 327 'Storage.length',
328 'Storage.removeItem', 328 'Storage.removeItem',
329 'Storage.setItem', 329 'Storage.setItem',
330 'StorageEvent.initStorageEvent', 330 'StorageEvent.initStorageEvent',
331 'TextEvent.initTextEvent', 331 'TextEvent.initTextEvent',
332 # TODO(leafp): These have been converted from int to double in Chrome 37.
333 # client, page, and screen were already special cased, adding webKitRadius.
334 # See impl_Touch.darttemplate for impedance matching code
332 'Touch.clientX', 335 'Touch.clientX',
333 'Touch.clientY', 336 'Touch.clientY',
334 'Touch.pageX', 337 'Touch.pageX',
335 'Touch.pageY', 338 'Touch.pageY',
336 'Touch.screenX', 339 'Touch.screenX',
337 'Touch.screenY', 340 'Touch.screenY',
341 'Touch.webkitRadiusX',
342 'Touch.webkitRadiusY',
338 'TouchEvent.initTouchEvent', 343 'TouchEvent.initTouchEvent',
339 'UIEvent.charCode', 344 'UIEvent.charCode',
340 'UIEvent.initUIEvent', 345 'UIEvent.initUIEvent',
341 'UIEvent.keyCode', 346 'UIEvent.keyCode',
342 'UIEvent.layerX', 347 'UIEvent.layerX',
343 'UIEvent.layerY', 348 'UIEvent.layerY',
344 'UIEvent.pageX', 349 'UIEvent.pageX',
345 'UIEvent.pageY', 350 'UIEvent.pageY',
346 'WheelEvent.initWebKitWheelEvent', 351 'WheelEvent.initWebKitWheelEvent',
347 'WheelEvent.deltaX', 352 'WheelEvent.deltaX',
(...skipping 634 matching lines...) Expand 10 before | Expand all | Expand 10 after
982 987
983 # We're looking for a sequence of letters which start with capital letter 988 # We're looking for a sequence of letters which start with capital letter
984 # then a series of caps and finishes with either the end of the string or 989 # then a series of caps and finishes with either the end of the string or
985 # a capital letter. 990 # a capital letter.
986 # The [0-9] check is for names such as 2D or 3D 991 # The [0-9] check is for names such as 2D or 3D
987 # The following test cases should match as: 992 # The following test cases should match as:
988 # WebKitCSSFilterValue: WebKit(C)(SS)(F)ilterValue 993 # WebKitCSSFilterValue: WebKit(C)(SS)(F)ilterValue
989 # XPathNSResolver: (X)()(P)ath(N)(S)(R)esolver (no change) 994 # XPathNSResolver: (X)()(P)ath(N)(S)(R)esolver (no change)
990 # IFrameElement: (I)()(F)rameElement (no change) 995 # IFrameElement: (I)()(F)rameElement (no change)
991 return re.sub(r'([A-Z])([A-Z]{2,})([A-Z]|$)', toLower, name) 996 return re.sub(r'([A-Z])([A-Z]{2,})([A-Z]|$)', toLower, name)
OLDNEW
« no previous file with comments | « sdk/lib/html/dartium/html_dartium.dart ('k') | tools/dom/templates/html/impl/impl_Touch.darttemplate » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698