I'm writing an extension for Google Chrome that converts a page to a PDF file. The extension, written in Javascript, extracts the DOM of the current page, and passes it to an NPAPI DLL, where the conversion happens. I want to show a progress dialog to the user that comes up as soon as the conversion begins, and goes away, or shows a status complete dialog, when the conversion has ended and the PDF file is opened for viewing. I'm a newbie at using Javascript. What should I do to achieve the aforementioned task?
The basic idea would be to:
addEventListener
for that)NPN_PluginThreadAsyncCall
helps with that)