| 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'
|
|
|