mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 972312 part 1. Generate virtual As*Event functions on WebIDL events so that we can easily go from an nsDOMEvent to the relevant event subtype. r=smaug
This commit is contained in:
parent
ec10a1eee2
commit
018e2c3c0d
@ -11992,9 +11992,17 @@ class CGEventClass(CGBindingImplClass):
|
||||
"parentType": self.parentType
|
||||
})
|
||||
|
||||
CGClass.__init__(self, descriptor.nativeType.split('::')[-1],
|
||||
className = descriptor.nativeType.split('::')[-1]
|
||||
asConcreteTypeMethod = ClassMethod("As%s" % className,
|
||||
"%s*" % className,
|
||||
[],
|
||||
virtual=True,
|
||||
body="return this;",
|
||||
breakAfterReturnDecl=" ")
|
||||
|
||||
CGClass.__init__(self, className,
|
||||
bases=[ClassBase(self.parentType)],
|
||||
methods=self.methodDecls,
|
||||
methods=[asConcreteTypeMethod]+self.methodDecls,
|
||||
members=members,
|
||||
extradeclarations=baseDeclarations)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user