Introduction to WebAPI- FirefoxOS
-
Upload
robat-das-orvi -
Category
Technology
-
view
54 -
download
2
Transcript of Introduction to WebAPI- FirefoxOS
The Boot to Gecko project is based entirely on open standards and the source code is open and accessible to all. Where open standards are missing, we're working with standards bodies and other vendors to create them.
GONK
Lower level operating system, consisting of a Linux kernel and HAL (Hardware Abstraction Layer).
GECKO
The application runtime. The rendering engine inFirefox for HTML5, CSS & JavaScript. Implements
a number of APIs.
The three levels of permission, in brief, are:
Web apps: These only have a basic level of permissions, and don't have access to privileged or internal APIs.
Privileged apps: These have all the permissions of web apps plus more. Hosted apps can't be privileged — they must be packaged apps.
Internal (certified) apps: These have all the permissions of privileged and web apps plus more. Certified/internal apps can only be installed on a device by Mozilla or a device vendor; not 3rd party developers.
BATTERY
//First, get the objectvar battery = navigator.mozBattery;
//Check the current levelvar batteryLevel = battery.level * 100 + "%";
//Listen to eventsbattery.addEventLister("levelchange", setStatus, false); battery.addEventLister("chargingchange", setStatus, false);