文件名称:Firefox插件开发Demo
文件大小:19KB
文件格式:RAR
更新时间:2013-06-17 07:39:50
Firefox插件
Firefox插件Demo #include "npapi.h" #include "npruntime.h" typedef int int16; class CPlugin { private: NPP m_pNPInstance; #ifdef XP_WIN HWND m_hWnd; #endif NPWindow * m_Window; NPStream * m_pNPStream; NPBool m_bInitialized; NPObject *m_pScriptableObject; public: char m_String[128]; public: CPlugin(NPP pNPInstance); ~CPlugin(); NPBool init(NPWindow* pNPWindow); void shut(); NPBool isInitialized(); int16 handleEvent(void* event); void showVersion(); void clear(); void getVersion(char* *aVersion); NPObject *GetScriptableObject(); }; #endif // __PLUGIN_H__
【文件预览】:
test.html
nprt.rc
resource.h
npp_gate.cpp
np_entry.cpp
plugin.cpp
npn_gate.cpp
Makefile.in
nprt.def
SDK_IDE.txt
plugin.h
nprt.dsp
nprt.dsw