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

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

Issue 19820007: Fixes for Blink roll. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Minors fixes Created 7 years, 5 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 339ba0803c52b304242b49844ec23a93de56b05b..d0b1d7865f45ca0f1ad03b331a5af50fce7f96b7 100644
--- a/tools/dom/scripts/htmlrenamer.py
+++ b/tools/dom/scripts/htmlrenamer.py
@@ -30,7 +30,7 @@ html_interface_renames = monitored.Dict('htmlrenamer.html_interface_renames',
'DatabaseSync': 'SqlDatabaseSync',
'DOMApplicationCache': 'ApplicationCache',
'DOMFileSystem': 'FileSystem',
- 'DOMPoint': '_DomPoint',
+ 'WebKitPoint': '_DomPoint',
'Entity': '_Entity', # Not sure if we want to expose this yet, may conflict with other libs.
'EntryCallback': '_EntryCallback',
'EntriesCallback': '_EntriesCallback',
@@ -55,6 +55,7 @@ html_interface_renames = monitored.Dict('htmlrenamer.html_interface_renames',
'SVGException': 'SvgException', # Manual of avoid conflict with Exception.
'SVGGradientElement': '_GradientElement',
'SVGSVGElement': 'SvgSvgElement', # Manual to avoid name conflicts.
+ 'Stream': 'FileStream',
'StringCallback': '_StringCallback',
'WebGLVertexArrayObjectOES': 'VertexArrayObject',
'XMLHttpRequest': 'HttpRequest',
@@ -115,6 +116,9 @@ _removed_html_interfaces = [
'SVGVKernElement',
'SharedWorker', # Workers
'SharedWorkerContext', # Workers
+ 'WebKitMediaSource',
+ 'WebKitSourceBuffer',
+ 'WebKitSourceBufferList',
'WorkerContext', # Workers
'WorkerLocation', # Workers
'WorkerNavigator', # Workers
@@ -131,8 +135,8 @@ convert_to_future_members = monitored.Set(
'DirectoryEntry.getFile',
'DirectoryEntry.removeRecursively',
'DirectoryReader.readEntries',
- 'DOMWindow.webkitRequestFileSystem',
- 'DOMWindow.webkitResolveLocalFileSystemURL',
+ 'Window.webkitRequestFileSystem',
+ 'Window.webkitResolveLocalFileSystemURL',
'Entry.copyTo',
'Entry.getMetadata',
'Entry.getParent',
@@ -196,12 +200,15 @@ private_html_members = monitored.Set('htmlrenamer.private_html_members', [
'Element.childElementCount',
'Element.children',
'Element.firstElementChild',
+ 'ParentNode.childElementCount',
+ 'ParentNode.children',
+ 'ParentNode.firstElementChild',
'Element.getAttribute',
'Element.getAttributeNS',
'Element.getElementsByTagName',
'Element.hasAttribute',
'Element.hasAttributeNS',
- 'Element.lastElementChild',
+ 'ParentNode.lastElementChild',
'Element.querySelectorAll',
'Element.removeAttribute',
'Element.removeAttributeNS',
@@ -298,8 +305,8 @@ private_html_members = monitored.Set('htmlrenamer.private_html_members', [
'UIEvent.pageX',
'UIEvent.pageY',
'WheelEvent.initWebKitWheelEvent',
- 'DOMWindow.getComputedStyle',
- 'DOMWindow.moveTo',
+ 'Window.getComputedStyle',
+ 'Window.moveTo',
])
# Members from the standard dom that exist in the dart:html library with
@@ -314,16 +321,16 @@ renamed_html_members = monitored.Dict('htmlrenamer.renamed_html_members', {
'Document.createCDATASection': 'createCDataSection',
'Document.defaultView': 'window',
'Document.querySelector': 'query',
- 'DOMWindow.CSS': 'css',
- 'DOMWindow.clearTimeout': '_clearTimeout',
- 'DOMWindow.clearInterval': '_clearInterval',
- 'DOMWindow.setTimeout': '_setTimeout',
- 'DOMWindow.setInterval': '_setInterval',
- 'DOMWindow.webkitConvertPointFromNodeToPage': '_convertPointFromNodeToPage',
- 'DOMWindow.webkitConvertPointFromPageToNode': '_convertPointFromPageToNode',
- 'DOMWindow.webkitNotifications': 'notifications',
- 'DOMWindow.webkitRequestFileSystem': '_requestFileSystem',
- 'DOMWindow.webkitResolveLocalFileSystemURL': 'resolveLocalFileSystemUrl',
+ 'Window.CSS': 'css',
+ 'Window.clearTimeout': '_clearTimeout',
+ 'Window.clearInterval': '_clearInterval',
+ 'Window.setTimeout': '_setTimeout',
+ 'Window.setInterval': '_setInterval',
+ 'Window.webkitConvertPointFromNodeToPage': '_convertPointFromNodeToPage',
+ 'Window.webkitConvertPointFromPageToNode': '_convertPointFromPageToNode',
+ 'Window.webkitNotifications': 'notifications',
+ 'Window.webkitRequestFileSystem': '_requestFileSystem',
+ 'Window.webkitResolveLocalFileSystemURL': 'resolveLocalFileSystemUrl',
'Element.querySelector': 'query',
'Element.webkitCreateShadowRoot': 'createShadowRoot',
'Element.webkitMatchesSelector' : 'matches',
@@ -373,7 +380,10 @@ renamed_overloads = monitored.Dict('htmldartgenreator.renamed_overloads', {
'RTCDataChannel.send(ArrayBufferView data)': 'sendTypedData',
'RTCDataChannel.send(Blob data)': 'sendBlob',
'RTCDataChannel.send(DOMString data)': 'sendString',
+ 'SourceBuffer.appendBuffer(ArrayBufferView view)': 'appendBufferView',
'URL.createObjectURL(WebKitMediaSource source)':
+ '_createObjectUrlFromWebKitMediaSource',
+ 'URL.createObjectURL(MediaSource source)':
'createObjectUrlFromSource',
'URL.createObjectURL(MediaStream stream)': 'createObjectUrlFromStream',
'URL.createObjectURL(Blob blob)': 'createObjectUrlFromBlob',
@@ -460,18 +470,18 @@ removed_html_members = monitored.Set('htmlrenamer.removed_html_members', [
'CanvasRenderingContext2D.setShadow',
'CanvasRenderingContext2D.setStrokeColor',
'CharacterData.remove',
- 'DOMWindow.call:blur',
- 'DOMWindow.call:focus',
- 'DOMWindow.clientInformation',
- 'DOMWindow.get:frames',
- 'DOMWindow.get:length',
- 'DOMWindow.on:beforeUnload',
- 'DOMWindow.pagePopupController',
- 'DOMWindow.prompt',
- 'DOMWindow.webkitCancelAnimationFrame',
- 'DOMWindow.webkitCancelRequestAnimationFrame',
- 'DOMWindow.webkitIndexedDB',
- 'DOMWindow.webkitRequestAnimationFrame',
+ 'Window.call:blur',
+ 'Window.call:focus',
+ 'Window.clientInformation',
+ 'Window.get:frames',
+ 'Window.get:length',
+ 'Window.on:beforeUnload',
+ 'Window.pagePopupController',
+ 'Window.prompt',
+ 'Window.webkitCancelAnimationFrame',
+ 'Window.webkitCancelRequestAnimationFrame',
+ 'Window.webkitIndexedDB',
+ 'Window.webkitRequestAnimationFrame',
'Document.alinkColor',
'Document.all',
'Document.applets',
@@ -711,7 +721,7 @@ removed_html_members = monitored.Set('htmlrenamer.removed_html_members', [
# Manual dart: library name lookup.
_library_names = monitored.Dict('htmlrenamer._library_names', {
- 'DOMWindow': 'html',
+ 'Window': 'html',
'Database': 'web_sql',
'Navigator': 'html',
'WorkerContext': 'html',

Powered by Google App Engine
This is Rietveld 408576698