实例介绍
NPAPI插件开发的sdk,主要包括开发插件所需的必要文件和头文件,以及几个简单的例子
【实例截图】
【核心代码】
4744302542943175820.zip
└── plugin
├── base
│ ├── public
│ │ ├── Makefile.in
│ │ ├── npapi.h
│ │ ├── npfunctions.h
│ │ ├── npruntime.h
│ │ ├── nptypes.h
│ │ ├── nsIHTTPHeaderListener.idl
│ │ ├── nsIPluginDocument.idl
│ │ ├── nsIPluginHost.idl
│ │ ├── nsIPlugin.idl
│ │ ├── nsIPluginInputStream.idl
│ │ ├── nsIPluginInstance.idl
│ │ ├── nsIPluginInstanceOwner.idl
│ │ ├── nsIPluginStreamInfo.idl
│ │ ├── nsIPluginStreamListener.idl
│ │ ├── nsIPluginTag.idl
│ │ ├── nsIPluginTagInfo.idl
│ │ ├── nsPluginError.h
│ │ ├── nsPluginLogging.h
│ │ ├── nsPluginNativeWindow.h
│ │ ├── nspluginroot.idl
│ │ └── nsPluginsCID.h
│ └── src
│ ├── Makefile.in
│ ├── nsJSNPRuntime.cpp
│ ├── nsJSNPRuntime.h
│ ├── nsNPAPIPlugin.cpp
│ ├── nsNPAPIPlugin.h
│ ├── nsNPAPIPluginInstance.cpp
│ ├── nsNPAPIPluginInstance.h
│ ├── nsNPAPIPluginStreamListener.cpp
│ ├── nsNPAPIPluginStreamListener.h
│ ├── nsPluginDirServiceProvider.cpp
│ ├── nsPluginDirServiceProvider.h
│ ├── nsPluginHost.cpp
│ ├── nsPluginHost.h
│ ├── nsPluginManifestLineReader.h
│ ├── nsPluginModule.cpp
│ ├── nsPluginNativeWindow.cpp
│ ├── nsPluginNativeWindowGtk2.cpp
│ ├── nsPluginNativeWindowOS2.cpp
│ ├── nsPluginNativeWindowQt.cpp
│ ├── nsPluginNativeWindowWin.cpp
│ ├── nsPluginSafety.h
│ ├── nsPluginsDirBeOS.cpp
│ ├── nsPluginsDirDarwin.cpp
│ ├── nsPluginsDir.h
│ ├── nsPluginsDirOS2.cpp
│ ├── nsPluginsDirUnix.cpp
│ ├── nsPluginsDirUtils.h
│ ├── nsPluginsDirWin.cpp
│ ├── nsPluginStreamListenerPeer.cpp
│ ├── nsPluginStreamListenerPeer.h
│ ├── nsPluginTags.cpp
│ ├── nsPluginTags.h
│ ├── PluginPRLibrary.cpp
│ └── PluginPRLibrary.h
├── Makefile.in
├── sdk
│ ├── Makefile.in
│ ├── readme.txt
│ └── samples
│ ├── basic
│ │ ├── mac
│ │ │ ├── BasicPlugin.c
│ │ │ ├── BasicPlugin.h
│ │ │ ├── BasicPlugin_Prefix.pch
│ │ │ ├── BasicPlugin.xcodeproj
│ │ │ │ └── project.pbxproj
│ │ │ ├── COPYING
│ │ │ ├── English.lproj
│ │ │ │ └── InfoPlist.strings
│ │ │ └── Info.plist
│ │ ├── readme.txt
│ │ ├── test.html
│ │ ├── unix
│ │ │ ├── BasicPlugin.c
│ │ │ ├── BasicPlugin.h
│ │ │ ├── COPYING
│ │ │ └── Makefile
│ │ └── windows
│ │ ├── basic.def
│ │ ├── basic.rc
│ │ ├── Makefile.in
│ │ ├── npbasic.dsp
│ │ ├── npbasic.dsw
│ │ ├── plugin.cpp
│ │ ├── plugin.h
│ │ └── resource.h
│ ├── common
│ │ ├── Makefile.in
│ │ ├── np_entry.cpp
│ │ ├── npn_gate.cpp
│ │ └── npp_gate.cpp
│ ├── include
│ │ ├── npplat.h
│ │ └── pluginbase.h
│ ├── Makefile.in
│ ├── npruntime
│ │ ├── Makefile.in
│ │ ├── np_entry.cpp
│ │ ├── npn_gate.cpp
│ │ ├── npp_gate.cpp
│ │ ├── nprt.def
│ │ ├── nprt.rc
│ │ ├── plugin.cpp
│ │ ├── plugin.h
│ │ ├── readme.txt
│ │ ├── resource.h
│ │ └── test.html
│ ├── npthread
│ │ ├── readme.txt
│ │ └── windows
│ │ ├── action.cpp
│ │ ├── action.h
│ │ ├── dbg.cpp
│ │ ├── dbg.h
│ │ ├── np_entry.cpp
│ │ ├── npn_gate.cpp
│ │ ├── npp_gate.cpp
│ │ ├── npthread.def
│ │ ├── npthread.dsp
│ │ ├── npthread.dsw
│ │ ├── npthread.rc
│ │ ├── plugin.cpp
│ │ ├── plugin.h
│ │ ├── plugload.cpp
│ │ ├── plugload.h
│ │ ├── resource.h
│ │ ├── thread.cpp
│ │ └── thread.h
│ ├── unixprinting
│ │ ├── Makefile.in
│ │ ├── npshell.c
│ │ ├── npunix.c
│ │ ├── printplugin.c
│ │ ├── printplugin.h
│ │ ├── readme.txt
│ │ ├── unixprintplugin_test1.html
│ │ └── unixprintplugin_test2.html
│ └── winless
│ ├── readme.txt
│ ├── test.html
│ └── windows
│ ├── Makefile.in
│ ├── npwinless.def
│ ├── npwinless.dsp
│ ├── npwinless.dsw
│ ├── npwinless.rc
│ ├── plugin.cpp
│ ├── plugin.h
│ └── resource.h
└── test
├── crashtests
│ ├── 110650-1.html
│ ├── 41276-1.html
│ ├── 48856-1.html
│ ├── 539897-1.html
│ ├── 540114-1.html
│ ├── 570884.html
│ ├── 598862.html
│ ├── 626602-1.html
│ └── crashtests.list
├── Makefile.in
├── mochitest
│ ├── 307-xo-redirect.sjs
│ ├── cocoa_focus.html
│ ├── cocoa_window_focus.html
│ ├── crashing_subpage.html
│ ├── large-pic.jpg
│ ├── loremipsum_file.txt
│ ├── loremipsum_nocache.txt
│ ├── loremipsum_nocache.txt^headers^
│ ├── loremipsum.txt
│ ├── loremipsum.xtest
│ ├── loremipsum.xtest^headers^
│ ├── Makefile.in
│ ├── neverending.sjs
│ ├── pluginstream.js
│ ├── plugin_visibility_loader.html
│ ├── plugin_window.html
│ ├── post.sjs
│ ├── test_bug479979.xul
│ ├── test_bug532208.html
│ ├── test_bug539565-1.html
│ ├── test_bug539565-2.html
│ ├── test_clear_site_data.html
│ ├── test_cocoa_focus.html
│ ├── test_cocoa_window_focus.html
│ ├── test_convertpoint.xul
│ ├── test_cookies.html
│ ├── test_copyText.html
│ ├── test_crashing2.html
│ ├── test_crashing.html
│ ├── test_crash_nested_loop.html
│ ├── test_crash_notify_no_report.xul
│ ├── test_crash_notify.xul
│ ├── test_crash_submit.xul
│ ├── test_enumerate.html
│ ├── test_fullpage.html
│ ├── test_GCrace.html
│ ├── test_getauthenticationinfo.html
│ ├── test_hanging.html
│ ├── test_instantiation.html
│ ├── test_multipleinstanceobjects.html
│ ├── test_newstreamondestroy.html
│ ├── test_npn_asynccall.html
│ ├── test_npn_timers.html
│ ├── test_npobject_getters.html
│ ├── test_npruntime_construct.html
│ ├── test_npruntime_identifiers.html
│ ├── test_npruntime_npnevaluate.html
│ ├── test_npruntime_npninvokedefault.html
│ ├── test_npruntime_npninvoke.html
│ ├── test_npruntime_npnsetexception.html
│ ├── test_npruntime.xul
│ ├── test_painting.html
│ ├── test_plugin_scroll_painting.html
│ ├── test_pluginstream_asfile.html
│ ├── test_pluginstream_asfileonly.html
│ ├── test_pluginstream_err.html
│ ├── test_pluginstream_geturl.html
│ ├── test_pluginstream_geturlnotify.html
│ ├── test_pluginstream_newstream.html
│ ├── test_pluginstream_post.html
│ ├── test_pluginstream_poststream.html
│ ├── test_pluginstream_seek_close.html
│ ├── test_pluginstream_seek.html
│ ├── test_pluginstream_src.html
│ ├── test_positioning.html
│ ├── test_privatemode.xul
│ ├── test_propertyAndMethod.html
│ ├── test_redirect_handling.html
│ ├── test_streamatclose.html
│ ├── test_streamNotify.html
│ ├── test_twostreams.html
│ ├── test_visibility.html
│ ├── test_windowed_invalidate.html
│ ├── test_wmode.xul
│ ├── test_xulbrowser_plugin_visibility.xul
│ ├── utils.js
│ └── xulbrowser_plugin_visibility.xul
├── reftest
│ ├── border-padding-1.html
│ ├── border-padding-1-ref.html
│ ├── border-padding-2.html
│ ├── border-padding-2-ref.html
│ ├── border-padding-3.html
│ ├── border-padding-3-ref.html
│ ├── div-alpha-opacity.html
│ ├── div-alpha-zindex.html
│ ├── div-sanity.html
│ ├── plugin-alpha-opacity.html
│ ├── plugin-alpha-zindex.html
│ ├── plugin-background-10-step.html
│ ├── plugin-background-1-step.html
│ ├── plugin-background-2-step.html
│ ├── plugin-background-5-step.html
│ ├── plugin-background.css
│ ├── plugin-background.html
│ ├── plugin-background.js
│ ├── plugin-background-ref.html
│ ├── plugin-busy-alpha-zindex.html
│ ├── plugin-canvas-alpha-zindex.html
│ ├── pluginproblemui-direction-1.html
│ ├── pluginproblemui-direction-1-ref.html
│ ├── pluginproblemui-direction-2.html
│ ├── pluginproblemui-direction-2-ref.html
│ ├── plugin-sanity.html
│ ├── plugin-transform-alpha-zindex.html
│ ├── reftest.list
│ ├── windowless-clipping-1.html
│ └── windowless-clipping-1-ref.html
├── testplugin
│ ├── Info.plist
│ ├── Makefile.in
│ ├── nptest.cpp
│ ├── nptest.def
│ ├── nptest_droid.cpp
│ ├── nptest_gtk2.cpp
│ ├── nptest.h
│ ├── nptest_macosx.mm
│ ├── nptest_os2.cpp
│ ├── nptest_platform.h
│ ├── nptest_qt.cpp
│ ├── nptest.rc
│ ├── nptest_utils.cpp
│ ├── nptest_utils.h
│ ├── nptest_windows.cpp
│ └── README
└── unit
├── head_plugins.js
├── test_bug455213.js
└── test_bug471245.js
26 directories, 270 files
标签:
小贴士
感谢您为本站写下的评论,您的评论对其它用户来说具有重要的参考价值,所以请认真填写。
- 类似“顶”、“沙发”之类没有营养的文字,对勤劳贡献的楼主来说是令人沮丧的反馈信息。
- 相信您也不想看到一排文字/表情墙,所以请不要反馈意义不大的重复字符,也请尽量不要纯表情的回复。
- 提问之前请再仔细看一遍楼主的说明,或许是您遗漏了。
- 请勿到处挖坑绊人、招贴广告。既占空间让人厌烦,又没人会搭理,于人于己都无利。
关于好例子网
本站旨在为广大IT学习爱好者提供一个非营利性互相学习交流分享平台。本站所有资源都可以被免费获取学习研究。本站资源来自网友分享,对搜索内容的合法性不具有预见性、识别性、控制性,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,平台无法对用户传输的作品、信息、内容的权属或合法性、安全性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论平台是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二与二十三条之规定,若资源存在侵权或相关问题请联系本站客服人员,点此联系我们。关于更多版权及免责申明参见 版权及免责申明
网友评论
我要评论