mirror of
https://github.com/servo/servo.git
synced 2025-06-08 16:43:28 +00:00
script: Make callbacks generic over DOM interfaces. (#35459)
Signed-off-by: Josh Matthews <josh@joshmatthews.net>
This commit is contained in:
parent
2b0d2ecc73
commit
a433b20259
9 changed files with 141 additions and 97 deletions
|
@ -228,9 +228,9 @@ class Descriptor(DescriptorProvider):
|
|||
self.nativeType = typeName
|
||||
pathDefault = 'crate::dom::types::%s' % typeName
|
||||
elif self.interface.isCallback():
|
||||
ty = 'crate::dom::bindings::codegen::Bindings::%sBinding::%s' % (ifaceName, ifaceName)
|
||||
ty = 'crate::dom::bindings::codegen::GenericBindings::%sBinding::%s' % (ifaceName, ifaceName)
|
||||
pathDefault = ty
|
||||
self.returnType = "Rc<%s>" % ty
|
||||
self.returnType = "Rc<%s<D>>" % ty
|
||||
self.argumentType = "???"
|
||||
self.nativeType = ty
|
||||
else:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue