зеркало из https://github.com/mozilla/gecko-dev.git
Added |do_GetInterface| (not turned on yet). This will be turned on when we add a file for the implementation. r=tbogard
This commit is contained in:
Родитель
d30947f33e
Коммит
586af1ee44
|
@ -45,4 +45,39 @@ interface nsIInterfaceRequestor : nsISupports
|
|||
*/
|
||||
void getInterface(in nsIIDRef uuid,
|
||||
[iid_is(uuid),retval] out nsQIResult result);
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
%{C++
|
||||
|
||||
#if 0
|
||||
#ifndef nsCOMPtr_h___
|
||||
#include "nsCOMPtr.h"
|
||||
#endif
|
||||
|
||||
class nsGetInterface : public nsCOMPtr_helper
|
||||
{
|
||||
public:
|
||||
nsGetInterface( nsISupports* aSource, nsresult* error )
|
||||
: mSource(aSource),
|
||||
mErrorPtr(error)
|
||||
{
|
||||
// nothing else to do here
|
||||
}
|
||||
|
||||
virtual nsresult operator()( const nsIID&, void** ) const;
|
||||
|
||||
private:
|
||||
nsCOMPtr<nsISupports> mSource;
|
||||
nsresult* mErrorPtr;
|
||||
};
|
||||
|
||||
inline
|
||||
const nsGetInterface
|
||||
do_GetInterface( nsISupports* aSource, nsresult* error = 0 )
|
||||
{
|
||||
return nsGetInterface(aSource, error);
|
||||
}
|
||||
#endif
|
||||
|
||||
%}
|
Загрузка…
Ссылка в новой задаче