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

Unified Diff: sdk/lib/html/scripts/systemhtml.py

Issue 11312091: Rename DOMURL to ObjectUrl. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 1 month 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: sdk/lib/html/scripts/systemhtml.py
===================================================================
--- sdk/lib/html/scripts/systemhtml.py (revision 14542)
+++ sdk/lib/html/scripts/systemhtml.py (working copy)
@@ -35,11 +35,17 @@
'LocalWindow.requestAnimationFrame',
'LocalWindow.webkitCancelAnimationFrame',
'LocalWindow.webkitRequestAnimationFrame',
+ 'Url.createObjectURL',
+ 'Url.revokeObjectURL',
'WheelEvent.wheelDeltaX',
'WheelEvent.wheelDeltaY',
])
+# Classes that offer only static methods, and therefore we should suppress
+# constructor creation.
+_static_classes = set(['Url'])
+
# Types that are accessible cross-frame in a limited fashion.
# In these cases, the base type (e.g., Window) provides restricted access
# while the subtype (e.g., LocalWindow) provides full access to the
@@ -267,7 +273,10 @@
factory_provider = interface_factories[interface_name]
constructors = []
- constructor_info = AnalyzeConstructor(self._interface)
+ if interface_name in _static_classes:
+ constructor_info = None
+ else:
+ constructor_info = AnalyzeConstructor(self._interface)
if constructor_info:
constructors.append(constructor_info)
factory_provider = '_' + interface_name + 'FactoryProvider'
« no previous file with comments | « sdk/lib/html/scripts/htmlrenamer.py ('k') | sdk/lib/html/templates/html/dart2js/impl_LocalWindow.darttemplate » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698