Generate code for NoInterfaceObject interfaces in InterfaceTypes and InheritTypes.

There is no reason for those interfaces to be excluded.
This commit is contained in:
Ms2ger 2014-06-20 17:31:47 +02:00
parent c8b8550cfb
commit f11e7ee0a9

View file

@ -5128,13 +5128,7 @@ class GlobalGenRoots():
@staticmethod
def InterfaceTypes(config):
def pathToType(descriptor):
if descriptor.interface.isCallback():
return "dom::bindings::codegen::Bindings::%sBinding" % descriptor.name
return "dom::%s" % descriptor.name.lower()
descriptors = [d.name for d in config.getDescriptors(register=True, hasInterfaceObject=True)]
descriptors = [d.name for d in config.getDescriptors(register=True, isCallback=False)]
curr = CGList([CGGeneric("pub use dom::%s::%s;\n" % (name.lower(), name)) for name in descriptors])
curr = CGWrapper(curr, pre=AUTOGENERATED_WARNING_COMMENT)
return curr
@ -5151,7 +5145,7 @@ class GlobalGenRoots():
@staticmethod
def InheritTypes(config):
descriptors = config.getDescriptors(register=True, hasInterfaceObject=True)
descriptors = config.getDescriptors(register=True, isCallback=False)
allprotos = [CGGeneric("#![allow(unused_imports)]\n"),
CGGeneric("use dom::types::*;\n"),
CGGeneric("use dom::bindings::js::{JS, JSRef, Temporary};\n"),