Slide 1

Slide 1 text

Chrome Apps/Extensions Development Jomar Tigcal November 16, 2013

Slide 2

Slide 2 text

Jomar Tigcal ● GDG Philippines Community Manager ● Mobile Apps Developer ● Android Developer at Stratpoint Technologies, Inc.

Slide 3

Slide 3 text

Chrome and Chromium Open-source browser project Chromium ------> Chrome Chromium OS ------> Chrome OS * Chrome Usage is now at 41.53% (November 2013, StatCounter)

Slide 4

Slide 4 text

Chrome Apps and Extensions Chrome Apps ● Web app that looks like native app ● Written using HTML, JavaScript and CSS Chrome Extensions ● Small programs that modify or enhance Google Chrome's functionality ● Written using HTML, JavaScript and CSS

Slide 5

Slide 5 text

Chrome Extensions

Slide 6

Slide 6 text

Developing Chrome Extensions A compressed file composed of: ●manifest.json (Manifest file) ●optional HTML files ●optional JavaScript files ●optional CSS files ●any other files (logo, images, etc.)

Slide 7

Slide 7 text

manifest.json { "name": "GDG Philippines Chrome Extension", "version": "2.0", "description": "Google Chrome Extension for the GDG Philippines community.", "browser_action": { "default_icon": "images/gdg.png", "default_title": "GDG Philippines Chrome Extension", "popup": "links.html" } }

Slide 8

Slide 8 text

Developing Chrome Extensions Browse to chrome://extensions Check the Developer Mode (if not yet checked) Click Load Unpacked Extension

Slide 9

Slide 9 text

Debugging Chrome Extensions Browse to Ensure Developer Mode in chrome: //extensions is checked Right-click extension icon then select Inspect popup

Slide 10

Slide 10 text

Advanced Chrome Extensions ● chrome.* APIs: http://developer.chrome. com/extensions/api_index.html ● Standard JavaScript APIs ● Javascript libraries ● XMLHttpRequest ● HTML5 ● WebKit APIs ● V8 APIs

Slide 11

Slide 11 text

Chrome Extensions References ● http://developer.chrome. com/extensions/index.html ● http://developer.chrome. com/extensions/samples.html ● https://groups.google.com/a/chromium. org/forum/#!forum/chromium-extensions ● http://stackoverflow.com/tags/google- chrome-extension/info

Slide 12

Slide 12 text

Developing Chrome Apps ● Installable Web Apps ○ Hosted Apps ● Packaged Apps

Slide 13

Slide 13 text

Hosted Apps ● normal websites with metadata ● “installable” from Chrome Web Store

Slide 14

Slide 14 text

Packaged Apps ● Works offline ● Tightly integrated with the Google Chrome browser

Slide 15

Slide 15 text

Chrome Apps References ● http://developer.chrome. com/apps/about_apps.html ● http://developer.chrome.com/apps/samples. html ● https://groups.google.com/a/chromium. org/forum/#!forum/chromium-apps ● http://stackoverflow.com/tags/google- chrome-app/info

Slide 16

Slide 16 text

Publishing Apps and Extensions Chrome Web Store: http://chrome.google.com/webstore Chrome Web Store Developer Dashboard: https://chrome.google. com/webstore/developer/dashboard * $5 one-time fee

Slide 17

Slide 17 text

Chrome Apps Developer Tool ● A new tool for developers building Chrome Apps and extensions ● A Chrome App available in Chrome Web Store ● Cleaner User Interface

Slide 18

Slide 18 text

Chrome Apps Developer Tool ● Inspect views for inspecting app/extension pages using dev tools ● Reload, launch, pack, uninstall an app/extension ● View permissions ● Load an unpacked app/extension ● Search for app/extension

Slide 19

Slide 19 text

Other References ● https://developers.google.com/chrome/ ● https://developers.google.com/live/chrome/ ● https://plus.google. com/+GoogleChromeDevelopers/posts ● https://twitter.com/ChromiumDev ● http://blog.chromium.org/

Slide 20

Slide 20 text

Chrome Dev Summit 2013 http://developer.chrome.com/devsummit November 20-21, 2013 Chrome Dev Summit Live Stream: https://plus.google. com/events/cauvflh1oml09vrahsljr1iv6tk Google+ Community: https://plus.google. com/communities/113388322868091932405

Slide 21

Slide 21 text

Questions? Image Source: http://www.zdnet.com/blog/igeneration/chrome-os-more-questions-than-answers/3388

Slide 22

Slide 22 text

Thank you very much! http://jomar.tigcal.com [email protected] http://google.com/+JomarTigcal @jomartigcal