Re: How to add a new class as an input parameter in a idl file
Boris Zbarsky <[email protected]>
| Newsgroups | gmane.comp.mozilla.devel.dom |
|---|---|
| Message-ID | <[email protected]> |
[email protected] wrote: > How can I add a new class as an input parameter in a idl file: > For example, I add this in a idl file > > void setMyClass(in MyClass myclass); Presumably MyClass is actually an interface, not a concrete class? And in that case you should be including whatever IDL file defines it, or just forward-declaring it. If it's a C++ class (so setMyClass must not be a scriptable method, etc), there are ways to declare that too. See, for example, http://bonsai.mozilla.org/cvsblame.cgi?file=mozilla/js/src/xpconnect/idl/nsIXPCSecurityManager.idl&rev=1.12&mark=53-55#50 -Boris