Myk Melez <[email protected]> writes:

> On 2013-01-29 00:08 , Kan-Ru Chen (陳侃如) wrote:
>> Would it be possible to add custom XPCOM components that are implemented
>> in JavaScript to r2d2b2g at build time?
> Yes, we can add custom JS XPCOM components to both the addon (running
> in Firefox) and to B2G Desktop (which runs in a separate process).

Great!

>> For App Days last week I wrote a fake geolocation provider for those
>> developers that want to test geolocation on Simulator. It would be great
>> if we could integrate this to r2d2b2g and control the reported location
>> via the dashboard.
> That's a great enhancement, and I would be happy to integrate it! If
> you show me the code you wrote, I'll take a look at it and help you
> figure out the best way to do so.

The code is here

http://people.mozilla.com/~kchen/FakeGeolocationProvider.js
http://people.mozilla.com/~kchen/FakeGeolocationProvider.manifest

It uses hard coded locations so one thing that is clearly missing is to
send locations and speed from the dashboard.

Kanru
_______________________________________________
dev-webapps mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-webapps

Reply via email to