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

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

Issue 13444007: Removing all Worker-related APIs (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 8 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
« no previous file with comments | « tools/dom/scripts/generator.py ('k') | tools/dom/scripts/systemhtml.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/dom/scripts/htmlrenamer.py
diff --git a/tools/dom/scripts/htmlrenamer.py b/tools/dom/scripts/htmlrenamer.py
index 8b696d6994c364da01a14a8be7b3dcdce838a0b6..38c65b30849c7db48bb12d9e89786c63ef1b3a74 100644
--- a/tools/dom/scripts/htmlrenamer.py
+++ b/tools/dom/scripts/htmlrenamer.py
@@ -14,7 +14,6 @@ html_interface_renames = monitored.Dict('htmlrenamer.html_interface_renames', {
'DOMApplicationCache': 'ApplicationCache',
'DOMCoreException': 'DomException',
'DOMFileSystem': 'FileSystem',
- 'DOMFileSystemSync': 'FileSystemSync',
'DOMFormData': 'FormData',
'DOMURL': 'Url',
'DOMWindow': 'Window',
@@ -62,6 +61,15 @@ html_interface_renames = monitored.Dict('htmlrenamer.html_interface_renames', {
# Interfaces that are suppressed, but need to still exist for Dartium and to
# properly wrap DOM objects if/when encountered.
_removed_html_interfaces = [
+ 'DOMFileSystemSync', # Workers
+ 'DatabaseSync', # Workers
+ 'DedicatedWorkerContext', # Workers
+ 'DirectoryEntrySync', # Workers
+ 'DirectoryReaderSync', # Workers
+ 'EntrySync', # Workers
+ 'FileEntrySync', # Workers
+ 'FileReaderSync', # Workers
+ 'FileWriterSync', # Workers
'HTMLAppletElement',
'HTMLBaseFontElement',
'HTMLDirectoryElement',
@@ -70,12 +78,13 @@ _removed_html_interfaces = [
'HTMLFrameSetElement',
'HTMLMarqueeElement',
'IDBAny',
+ 'SQLTransactionSync', # Workers
+ 'SQLTransactionSyncCallback', # Workers
'SVGAltGlyphDefElement', # Webkit only.
'SVGAltGlyphItemElement', # Webkit only.
'SVGAnimateColorElement', # Deprecated. Use AnimateElement instead.
'SVGComponentTransferFunctionElement', # Currently not supported anywhere.
'SVGCursorElement', # Webkit only.
- 'SVGGradientElement', # Currently not supported anywhere.
'SVGFEDropShadowElement', # Webkit only for the following:
'SVGFontElement',
'SVGFontFaceElement',
@@ -85,11 +94,17 @@ _removed_html_interfaces = [
'SVGFontFaceUriElement',
'SVGGlyphElement',
'SVGGlyphRefElement',
+ 'SVGGradientElement', # Currently not supported anywhere.
'SVGHKernElement',
- 'SVGMissingGlyphElement',
'SVGMPathElement',
+ 'SVGMissingGlyphElement',
'SVGTRefElement',
'SVGVKernElement',
+ 'SharedWorker', # Workers
+ 'SharedWorkerContext', # Workers
+ 'WorkerContext', # Workers
+ 'WorkerLocation', # Workers
+ 'WorkerNavigator', # Workers
]
for interface in _removed_html_interfaces:
@@ -306,15 +321,10 @@ renamed_html_members = monitored.Dict('htmlrenamer.renamed_html_members', {
'RTCPeerConnection.createAnswer': '_createAnswer',
'RTCPeerConnection.createOffer': '_createOffer',
'StorageInfo.queryUsageAndQuota': '_queryUsageAndQuota',
- 'SVGComponentTransferFunctionElement.offset': 'gradientOffset',
'SVGElement.className': '$dom_svgClassName',
'SVGStopElement.offset': 'gradientOffset',
- 'WorkerContext.webkitRequestFileSystem': '_requestFileSystem',
- 'WorkerContext.webkitRequestFileSystemSync': '_requestFileSystemSync',
- 'WorkerContext.webkitResolveLocalFileSystemSyncURL':
- 'resolveLocalFileSystemSyncUrl',
- 'WorkerContext.webkitResolveLocalFileSystemURL':
- 'resolveLocalFileSystemUrl',
+ #'WorkerContext.webkitRequestFileSystem': '_requestFileSystem', # Workers
+ #'WorkerContext.webkitRequestFileSystemSync': '_requestFileSystemSync', # Workers
})
for member in convert_to_future_members:
@@ -611,6 +621,10 @@ class HtmlRenamer(object):
self._database = database
def RenameInterface(self, interface):
+ if 'Callback' in interface.ext_attrs:
+ if interface.id in _removed_html_interfaces:
+ return None
+
if interface.id in html_interface_renames:
return html_interface_renames[interface.id]
elif interface.id.startswith('HTML'):
@@ -655,6 +669,8 @@ class HtmlRenamer(object):
if self._FindMatch(interface, member, member_prefix,
_removed_html_members):
return True
+ if interface.id in _removed_html_interfaces:
+ return True
return False
def _FindMatch(self, interface, member, member_prefix, candidates):
« no previous file with comments | « tools/dom/scripts/generator.py ('k') | tools/dom/scripts/systemhtml.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698