If you want a window.navigator.foo property that implements your new MySample interface, you need to add it to Navigator.webidl. Otherwise, if you want to be able to use |new MySample()| from JavaScript and obtain an object that implements your MySample interface, you need to add a [Constructor] annotation to the MySample webidl.

Cheers,
Josh

On 12/17/2013 02:47 AM, Dinesh Babu wrote:
On Tuesday, December 17, 2013 12:45:03 PM UTC+5:30, Josh Matthews wrote:
Hi Dinesh,

What do you expect your changes to do? You have not added any way to

obtain a MySample object (such as a property on window.navigator or a

constructor for MySample), so I'm not sure what sort of tests you're

able to perform.



Cheers,

Josh

hi,
i want to know how to integrate a module in gecko layer of B2G, and I followed

1. created MySample.webidl and place in dom/webidl
2. added entry to moz.build in same dom/webidl directory
3. Added entry in  dom/bindings/Bindings.conf (I attached that file in above 
post for your reference).
4. created MySample.h and MySample.cpp (I attaced both the files in above post 
for your reference) and placed inside dom/sample/ directory which i created.
5. added entry in moz.build in dom/ directory and created moz.build including 
all files in sample directory and placed in dom/sample directory

this is the steps i followed, please help me with where i am wrong and help me 
with adding property in window.navigator

i expect my changes to return the double value when i call hello() function 
from gaia part.


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

Reply via email to