
13 www.epadlink.com
Integration Guide (ePad-vision SDK for Chrome & Firefox)
8.0 – Firefox Integration
JS-Ctypes native library (FireFoxExtension.dll or libFireFoxExtension.so) is the critical core component
of the ePad-vision SDK and Firefox allows access to the native library in web pages via extensions.
Integration into a web page requires a background extension that acts as a bridge between the web
page and the native messaging host application.
Normally the native library can be packaged and installed along with the extension.
8.1– Creating an Extension
A Firefox Extension is normally implemented as a JavaScript file and coupled with a few other
supporting files qualifies to be an extension for Firefox
8.1.1 – Major components of Extension.
chrome.manifest – Registers the extension with engine.
install.rdf – Information about the extension
content/FireFoxJSON.js – core JavaScript file
Refer to SDK’s Sample/FirefoxExtension folder for further info on structure and contents of the
extension.
Here is a typical directory structure of the extension:
chrome.manifest
\locale\en-us\translations.dtd
\content\FireFoxJSON.js
\content\FireFoxJSON.xul
\default\preferences\prefs.js
Install.rdf :
Comentarios a estos manuales