Chrome zhaoxianliebaidu com Chrome 1 2Chrome 1Browser Action
浏览器扩展开发下(Chrome) 赵先烈 zhaoxianlie@baidu. com
Chrome扩展 1. 2、Chrome扩展的用户界面 1)、Browser. Action 2)、Page. Action 3)、Extensions Page 4)、Options Page 5)、Override Page
Chrome扩展
Chrome扩展 4)、一个普通的NPAPI目录结构 左图所示为一个完整的NPAPI插件的C++ 项目结构。 Header中,npapi. h、npfunctions. h、 npruntime. h、nptypes. h为NPAPI标配文件, plugin. h、Plugin. Template. h为NPAPI接口的定义 文件。 Source中,np_entry. cc、npp_entry. cc 为NPAPI标配文件,plugin. cc、 Plugin. Template. cc是NPAPI接口实现的文件, Plugin. Template. cc同时还是NPAPI的dll入口。
Chrome扩展 1. 8、扩展实例剖析-Icafe. Helper 1)、下载并安装Icafe. Helper http: //fe. baidu. com/space/doc/tech/article/browserextension/chrome/0 -icafehelper. text 2)、扩展中的重要配置 仅对icafe页面注入相关js,而且all_frames必须设为true,设 置操作tab和context. Menu的权限
Chrome扩展 1. 9、学习资源 官方基础教程: http: //code. google. com/chrome/extensions/index. html 看别人的代码: http: //code. google. com/p/chrome-screen-capture/
附:关于Chrome浏览器 地址栏功能: about: version - 显示当前版本 也可以是chrome-resource: //about/ about: plugins - 显示已安装插件, Google Chrome支持Active X! about: histograms - 显示历史记录 about: dns - 显示DNS状态 about: cache, 重定向到 view-cache: 显示缓存页面 about: stats - 显示状态 about: memory - 可以查看内存和进程占用。也可以Shift+ESC,点击Statistics for nerds about: gpu – Graphics card information, used to assist in GPU acceleration debugging. about: conflicts – Modules loaded into the main process and modules registered to load at a later point. about: credits – Credits, licenses, and links for all software used to make Chrome. about: net-internals – Network diagnostics. about: sync – Synchronization engine diagnostics. about: histograms – Detailed technical metrics. about: terms – Terms of service. 维基百科Chrome介绍: http: //zh. wikipedia. org/wiki/Chrome
- Slides: 26