Programming Chrome Apps - Marc Rochkind.pdf

(10089 KB) Pobierz
Chrome
Apps
DEVELOP CROSS-PLATFORM
APPS FOR CHROME
Programming
Marc Rochkind
Programming Chrome Apps
Put your web app design skills to work by learning how to create powerful
and portable Chrome Apps. With this practical book, you’ll learn how to build
Google’s unique apps to behave just like native apps so they can interact
with hardware devices, access external files, and send notifications.
Author Marc Rochkind takes you through a hands-on, objective tour of
Chrome Apps, which run on any platform that supports the Chrome
browser—including OS X, Windows, Linux, as well as Android and iOS.
If you know how to work with HTML, CSS, JavaScript, and the DOM, you’re
ready to get started.
■
■
Programming Chrome
“
Apps is a great guide to
the exciting new world
of software engineering
made possible by
Chrome Apps and the
Chrome platform.
Chief Strategy and Innovation Officer,
MentorMate, Inc.
—Stephen Fluin
”
Learn how to build, run, and debug Chrome Apps step by step
Use Chrome Apps to access Local Files, Sync Files, and External
Files
Take advantage of key-value-pair APIs, including Sync Storage
and IndexedDB
Use WebSockets, Google Cloud Messaging, and other
networking methods
Display graphics and images with Canvas, SVG, and the
mediaGalleries API
Use alarms, context menus, location, the camera, Bluetooth,
USB, and other APIs
Publish apps to the Chrome Web Store with the Chrome Dev
Editor
■
■
■
■
■
Marc Rochkind,
a consultant and developer of apps for iOS, OS X, and Windows,
worked for Bell Labs on Unix, including the Source Code Control System. He
is the author of
Expert PHP and MySQL: Application Design and Development
(Apress) and
Advanced UNIX Programming
(Addison-Wesley).
WEB DEVELOPMENT
Twitter: @oreillymedia
facebook.com/oreilly
CAN $41.99
US $39.99
ISBN: 978-1-491-90428-2
Programming Chrome Apps
Marc Rochkind
Programming Chrome Apps
by Marc Rochkind
Copyright © 2015 Marc Rochkind. All rights reserved.
Printed in the United States of America.
Published by O’Reilly Media, Inc., 1005 Gravenstein Highway North, Sebastopol, CA 95472.
O’Reilly books may be purchased for educational, business, or sales promotional use. Online editions are
also available for most titles (http://safaribooksonline.com). For more information, contact our corporate/
institutional sales department: 800-998-9938 or
corporate@oreilly.com.
Editors:
Brian MacDonald and Rachel Roumeliotis
Production Editor:
Matthew Hacker
Copyeditor:
Bob Russell, Octal Publishing, Inc.
Proofreader:
Eileen Cohen
January 2015:
First Edition
Indexer:
WordCo Indexing Services, Inc.
Cover Designer:
Ellie Volckhausen
Interior Designer:
David Futato
Illustrator:
Rebecca Demarest
Revision History for the First Edition:
2014-12-12:
First release
See
http://oreilly.com/catalog/errata.csp?isbn=9781491904282
for release details.
The O’Reilly logo is a registered trademark of O’Reilly Media, Inc.
Programming Chrome Apps,
the cover
image of a crested screamer, and related trade dress are trademarks of O’Reilly Media, Inc.
Many of the designations used by manufacturers and sellers to distinguish their products are claimed as
trademarks. Where those designations appear in this book, and O’Reilly Media, Inc. was aware of a trademark
claim, the designations have been printed in caps or initial caps.
While the publisher and the author have used good faith efforts to ensure that the information and instruc‐
tions contained in this work are accurate, the publisher and the author disclaim all responsibility for errors
or omissions, including without limitation responsibility for damages resulting from the use of or reliance
on this work. Use of the information and instructions contained in this work is at your own risk. If any code
samples or other technology this work contains or describes is subject to open source licenses or the intel‐
lectual property rights of others, it is your responsibility to ensure that your use thereof complies with such
licenses and/or rights.
ISBN: 978-1-491-90428-2
[LSI]
To Valerie, Gillian, and Claire
Zgłoś jeśli naruszono regulamin