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

Unified Diff: tools/dom/scripts/htmlrenamer.py

Issue 34733007: Add back unseparated out version of method overloads in dart:html. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 2 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 side-by-side diff with in-line comments
Download patch
Index: tools/dom/scripts/htmlrenamer.py
diff --git a/tools/dom/scripts/htmlrenamer.py b/tools/dom/scripts/htmlrenamer.py
index 3c957fe8cc55d7294106aeedb0e4d93a591270b4..c819d95ac33ad37bc4359316f555a7748fe514b7 100644
--- a/tools/dom/scripts/htmlrenamer.py
+++ b/tools/dom/scripts/htmlrenamer.py
@@ -314,7 +314,6 @@ private_html_members = monitored.Set('htmlrenamer.private_html_members', [
'UIEvent.layerY',
'UIEvent.pageX',
'UIEvent.pageY',
- 'WebGLRenderingContext.texImage2D',
'WheelEvent.initWebKitWheelEvent',
'WheelEvent.deltaX',
'WheelEvent.deltaY',
@@ -353,7 +352,6 @@ renamed_html_members = monitored.Dict('htmlrenamer.renamed_html_members', {
'SVGStopElement.offset': 'gradientOffset',
'URL.createObjectURL': 'createObjectUrl',
'URL.revokeObjectURL': 'revokeObjectUrl',
- 'WebGLRenderingContext.texSubImage2D': '_texSubImageImage2D',
#'WorkerContext.webkitRequestFileSystem': '_requestFileSystem',
#'WorkerContext.webkitRequestFileSystemSync': '_requestFileSystemSync',
})
@@ -368,8 +366,6 @@ renamed_overloads = monitored.Dict('htmldartgenreator.renamed_overloads', {
'DOMString repetitionType)': 'createPatternFromImage',
'DataTransferItemList.add(File file)': 'addFile',
'DataTransferItemList.add(DOMString data, DOMString type)': 'addData',
- 'Document.createElement(DOMString tagName)': None,
- 'Document.createElementNS(DOMString namespaceURI, DOMString qualifiedName)': None,
'FormData.append(DOMString name, Blob value, DOMString filename)':
'appendBlob',
'IDBDatabase.transaction(DOMStringList storeNames, DOMString mode)':
@@ -378,25 +374,11 @@ renamed_overloads = monitored.Dict('htmldartgenreator.renamed_overloads', {
'transactionList',
'IDBDatabase.transaction(DOMString storeName, DOMString mode)':
'transactionStore',
- 'ImageBitmapFactories.createImageBitmap(HTMLImageElement image)' : 'createImageBitmap0',
- 'ImageBitmapFactories.createImageBitmap(HTMLImageElement image, long sx, long sy, long sw, long sh)' : 'createImageBitmap1',
- 'ImageBitmapFactories.createImageBitmap(HTMLVideoElement video)' : 'createImageBitmap2',
- 'ImageBitmapFactories.createImageBitmap(HTMLVideoElement video, long sx, long sy, long sw, long sh)' : 'createImageBitmap3',
- 'ImageBitmapFactories.createImageBitmap(CanvasRenderingContext2D context)' : 'createImageBitmap4',
- 'ImageBitmapFactories.createImageBitmap(CanvasRenderingContext2D context, long sx, long sy, long sw, long sh)' : 'createImageBitmap5',
- 'ImageBitmapFactories.createImageBitmap(HTMLCanvasElement canvas)' : 'createImageBitmap6',
- 'ImageBitmapFactories.createImageBitmap(HTMLCanvasElement canvas, long sx, long sy, long sw, long sh)' : 'createImageBitmap7',
- 'ImageBitmapFactories.createImageBitmap(ImageData data)' : 'createImageBitmap8',
- 'ImageBitmapFactories.createImageBitmap(ImageData data, long sx, long sy, long sw, long sh)' : 'createImageBitmap9',
- 'ImageBitmapFactories.createImageBitmap(ImageBitmap bitmap)' : 'createImageBitmap10',
- 'ImageBitmapFactories.createImageBitmap(ImageBitmap bitmap, long sx, long sy, long sw, long sh)' : 'createImageBitmap11',
- 'ImageBitmapFactories.createImageBitmap(Blob blob)' : 'createImageBitmap12',
- 'ImageBitmapFactories.createImageBitmap(Blob blob, long sx, long sy, long sw, long sh)' : 'createImageBitmap13',
'RTCDataChannel.send(ArrayBuffer data)': 'sendByteBuffer',
'RTCDataChannel.send(ArrayBufferView data)': 'sendTypedData',
'RTCDataChannel.send(Blob data)': 'sendBlob',
'RTCDataChannel.send(DOMString data)': 'sendString',
- 'SourceBuffer.appendBuffer(ArrayBufferView data)': 'appendBufferView',
+ 'SourceBuffer.appendBuffer(ArrayBufferView data)': 'appendTypedData',
'URL.createObjectURL(MediaSource source)':
'createObjectUrlFromSource',
'URL.createObjectURL(WebKitMediaSource source)':
@@ -449,6 +431,8 @@ keep_overloaded_members = monitored.Set(
'CanvasRenderingContext2D.putImageData',
'CanvasRenderingContext2D.webkitPutImageDataHD',
'DataTransferItemList.add',
+ 'Document.createElement',
+ 'Document.createElementNS',
'HTMLInputElement.setRangeText',
'HTMLTextAreaElement.setRangeText',
'IDBDatabase.transaction',
@@ -458,6 +442,14 @@ keep_overloaded_members = monitored.Set(
'XMLHttpRequest.send'
])
+overloaded_and_renamed = monitored.Set(
+ 'htmldartgenerator.overloaded_and_renamed', [
+ 'WebGLRenderingContext.texImage2D',
+ 'WebGLRenderingContext.texSubImage2D',
+ 'WebGLRenderingContext.bufferData',
+ 'WebGLRenderingContext.bufferSubData',
+])
+
for member in convert_to_future_members:
if member in renamed_html_members:
renamed_html_members[member] = '_' + renamed_html_members[member]

Powered by Google App Engine
This is Rietveld 408576698