[Author: mpcomplete]
More refactoring of NPAPI wrapper classes. At Aaron's suggestion, I moved the Register* calls out of the wrapper classes and into the impl classes. This gets us two cool things:
- We'll only need to register properties/methods in one, platform-neutral place (not one per port).
- The _wrapper files can go away completely. The wrapper classes have been reduced down enough that they can be defined in a simple macro call in each module file.
Potential tricky bits about this CL:
- PluginBase<T> now expects T to be the ImplClass (ie, GearsFactory), rather than the WrapperClass (ie, GearsFactoryWrapper). It doesn't really matter, but it made the macros simpler.
- I put the dynamic dispatch in a separate class rather than in ModuleImplBaseClass, because HtmlEventMonitor uses dynamic dispatch but is not a module.
R=aa
CC=google-gears-eng@googlegroups.com
DELTA=1106 (438 added, 596 deleted, 72 changed)
OCL=
6130547
SCL=
6145539
git-svn-id: https://google-gears.googlecode.com/svn/trunk@625 fe895e04-df30-0410-9975-d76d301b4276