Re: How to implement XPCOM API void render(in long width, in long height, out nsIImageLoadingContent imageContent); in Javascript?

2014-08-22 Thread David Rajchenbach-Teller
If I recall correctly, this is implemented as an object with a field `out` – I'm not 100% sure of the name of the field, though, so you might need to experiment. Cheers, David On 21/08/14 18:18, Yonggang Luo wrote: I want to pass a out parameter with render, but don't know how to do that.

Re: How to implement XPCOM API void render(in long width, in long height, out nsIImageLoadingContent imageContent); in Javascript?

2014-08-22 Thread Boris Zbarsky
On 8/22/14, 5:34 AM, David Rajchenbach-Teller wrote: If I recall correctly, this is implemented as an object with a field `out` – I'm not 100% sure of the name of the field, though, so you might need to experiment. The field name is value. I should note that searching the web for xpcom out

Re: How to implement XPCOM API void render(in long width, in long height, out nsIImageLoadingContent imageContent); in Javascript?

2014-08-22 Thread J. Ryan Stinnett
On Fri, Aug 22, 2014 at 7:54 AM, Boris Zbarsky bzbar...@mit.edu wrote: On 8/22/14, 5:34 AM, David Rajchenbach-Teller wrote: If I recall correctly, this is implemented as an object with a field `out` – I'm not 100% sure of the name of the field, though, so you might need to experiment. The

Re: How to implement XPCOM API void render(in long width, in long height, out nsIImageLoadingContent imageContent); in Javascript?

2014-08-22 Thread David Rajchenbach-Teller
By the way, I used to be able to find the answer on MDN, but I can't find it anymore. On 22/08/14 14:54, Boris Zbarsky wrote: The field name is value. I should note that searching the web for xpcom out parameter comes up with the answer to the original question in this thread as the first

Re: How to implement XPCOM API void render(in long width, in long height, out nsIImageLoadingContent imageContent); in Javascript?

2014-08-22 Thread Yonggang Luo
Thanks a lot, I've already deal with this problem, just as the normal return in javascript will resolve this problem. 2014-08-22 17:34 GMT+08:00 David Rajchenbach-Teller dtel...@mozilla.com: If I recall correctly, this is implemented as an object with a field `out` – I'm not 100% sure of the

How to implement XPCOM API void render(in long width, in long height, out nsIImageLoadingContent imageContent); in Javascript?

2014-08-21 Thread Yonggang Luo
I want to pass a out parameter with render, but don't know how to do that. ___ dev-platform mailing list dev-platform@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-platform