[Greasemonkey] where are gmIBrowserWindow ... found/defined?

Mook mook.moz+sites.org.mozdev.lists.greasemonkey at gmail.com
Tue Sep 12 18:21:38 EDT 2006


On 9/9/06, Rod McGuire <mcguire at telerama.com> wrote:
>
> greasemonkey-service is registered/defined in :
>
> http://www.mozdev.org/source/browse/greasemonkey/src/components/greasemonkey.js
>
> where is the source for gmIBrowserWindow, gmIGreasemonkeyService, and
> gmIMenuCommand, and where are they registered?
>

They are in the .xpt files in the same directory, generated via xpidl
from http://www.mozdev.org/source/browse/greasemonkey/src/idl/ (at
least, I assume so, since that's how the other interfaces work)

The xpt (xptypelib) files get parsed by some deep part of Gecko and
turned into registration entries in xpti.dat in your profile directory
and are used as needed by XPConnect to translate between
C++/JS/Python/Java.  The xpt files themselves are cross-platform.

... Err, at least I think that's right.
-- 
Mook
mook dot moz plus stuff at gmail


More information about the Greasemonkey mailing list