This page describes how to create Custom (C++) Events that can Pass Data. Meaning that you can add extra parameters and query them. One example is lets say you want ff to perform an action whenever something happens, but depending of severity of that event you will react with a different severity. Ok, so that's a great example but work with me.
This is no easy task. In order to do this you must be able to do all of the following
- Download Mozilla Source Code
- Build Mozilla
- Creating Custom Firefox Extensions with the Mozilla Build System, this is the foundation for everything we'll do. I'll go over some (very little) of it so do this first then come back and do this tutorial.
What's In A Name
Despite whatever you may have heard in your english class there's a lot in a name. As of Bon Echo Alpha 2, if your do not start with "nsDOM" and their interfaces do not start with "nsIDOM" then you can forget about passing data. You will still be able to throw events but that is it.