Gaia

From MozillaWiki
Jump to navigation Jump to search

Hacking Gaia

see Gaia/Hacking

Coding Style

  • make sure HTML files are declared <!DOCTYPE html> (i.e., HTML5). IE9+ will load them in compatibility mode otherwise.
  • add a "use strict"; statement (exactly that!) to the top of your JS files
  • 2 spaces for indentation - do not use tab.
  • Line break are free (I promise) don't hesitate to use them to separate logical block inside your functions.
  • Files are named like_this.js.
  • Use single quote instead of double quotes.
  • Additional rules:

Bad:

if (expression) doSomething();

Correct:

if (expression)
  doSomething();

Before submitting a patch

On each javascript files you are adding or you have modified, run:

gjslint --nojsdoc my_file.js

http://code.google.com/closure/utilities/docs/linter_howto.html

Apps

  • Home screen (webGL cjones/ HTML vingtetun)
    • Keyboard/IME (vingtetun/timdream)
      • Chinese ZhuYing IME (timdream)
  • Lock screen (gal)
  • Dialer (vingtetun)
  • SMS application (vingtetun)
  • Browser (benfrancis)
  • Gallery (benfrancis)
    • Downloads sample photos from the app's web server and saves them as files in IndexedDB to be loaded locally
    • Can select a photo which zooms in using CSS transitions
    • Next:
  • Camera (benfrancis)
    • Currently just a file picker <input type="file" accept="image/*"> which should allow the user to capture a photo from the camera's device. Waiting on back end for gonk (bug 708484)
    • In future would like to use getUserMedia() from WebRTC to provide a more acceptable user experience (http://dev.w3.org/2011/webrtc/editor/getusermedia.html)
    • Next:
      • Figure out how to store photos captured with the camera app in the gallery app (Web Intents? Media storage API?)
  • Music (benfrancis)
    • Currently just lists ogg files stored in IndexedDB and allows playback using an HTML5 <audio> tag
    • Next:
      • Store files as binary blobs in IndexedDB like in the gallery app
      • Discuss MP3 support
      • Figure out where to store music files on the device going forward (Media Storage API?)
      • Work on improving the UI
  • App Manager (justindarc)
  • Settings (justindarc)
  • UI/widget library (justindarc)
  • Apps store (justindarc)
  • eBook reader