Re: [b2g] How to call function of Gecko C++ from Gecko JS using the XPCOM?

2013-08-08 Thread Kilcheon Kim
Hi Julien, I have some question. 1. As I know, FirefoxOS has WebFM API. It is needed by some countries such as EU and Central and South America. Do FirefoxOS have any plan to support special service for special countries? For examples, Korean DMB or Japanese BML etc. 2. If we want to

Re: [b2g] How to call function of Gecko C++ from Gecko JS using the XPCOM?

2013-08-07 Thread Kilcheon Kim
Thank you very much. Your comment will help me a lot. 2013년 8월 6일 화요일 오후 10시 21분 57초 UTC+9, Julien Wajsberg 님의 말: Le 06/08/2013 05:31, Kilcheon Kim a écrit : Thank you for comment. I have additional questions. 1. As your mention, we never be able to modify gecko and gonk layer such

Re: [b2g] How to call function of Gecko C++ from Gecko JS using the XPCOM?

2013-08-05 Thread Kilcheon Kim
Thank you for comment. I have additional questions. 1. As your mention, we never be able to modify gecko and gonk layer such as my sample codes. Is that right? 2. Do FirefoxOS have any plans to support native library for making applications? 3. To reuse my native library, the best way is to

Re: [b2g] How to call function of Gecko C++ from Gecko JS using the XPCOM?

2013-08-04 Thread Josh Matthews
I don't understand what you are trying to accomplish by having two separate implementations of nsIDOMMozTESTManager. On 08/03/2013 11:10 PM, Kilcheon Kim wrote: Hi, Now I am trying to use xpcom for callback function. But I couldn't call gecko c++ function from gecko js using the XPCOM. My

Re: [b2g] How to call function of Gecko C++ from Gecko JS using the XPCOM?

2013-08-04 Thread Kilcheon Kim
Hi, Ultimately, I want to call TEST_setJSCallBack of gecko C++(TESTManager.cpp) from TESTManager.js for testing callback function. So, I tried to add two interfaces in nsIDOMMozTESTManager.idl, and then, I called TEST_setJSCallback() function in gecko js(TESTManager.js) such as below: var

Re: [b2g] How to call function of Gecko C++ from Gecko JS using the XPCOM?

2013-08-04 Thread Josh Matthews
Yes, the XPCOM component registry sees your JS component as the official implementation of @mozilla.org/testManager;1, so any getService calls will return it. You need to have the C++ implementation use a different contract ID if they're going to exist simultaneously. I still don't understand

Re: [b2g] How to call function of Gecko C++ from Gecko JS using the XPCOM?

2013-08-04 Thread Kilcheon Kim
Thanks for your comment. Basically, I'm investigating how to use native library(made by C and C++) in B2G. Because I have some native application for android and iPhone. So, I'm investigating whether my native library can be reused in B2G. I had a lot of progress in my work using the js-ctypes.

[b2g] How to call function of Gecko C++ from Gecko JS using the XPCOM?

2013-08-03 Thread Kilcheon Kim
Hi, Now I am trying to use xpcom for callback function. But I couldn't call gecko c++ function from gecko js using the XPCOM. My test codes are below. In gecko js (TESTManager.js), I try to call TEST_setJSCallBack function but it did not be called. I don't know why gecko c++ function can't be