From 288ee5efa63154e35909674e9bc8abdeca6466c7 Mon Sep 17 00:00:00 2001 From: Bill Erickson Date: Mon, 23 Jan 2017 13:30:42 -0500 Subject: [PATCH] eg 2017 hatch review doc Signed-off-by: Bill Erickson --- hatch-review.adoc | 60 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 60 insertions(+) create mode 100644 hatch-review.adoc diff --git a/hatch-review.adoc b/hatch-review.adoc new file mode 100644 index 000000000..dbd6ed17d --- /dev/null +++ b/hatch-review.adoc @@ -0,0 +1,60 @@ += Happy Hatch's Hoppalong Hootenanny +:author: Bill Erickson, Software Development Engineer, King County Library System +:email: berickxx@gmail.com +:date: Evergreen Conference, April 7, 2017 +:duration: 50 +:data-uri: +:backend: slidy +:max-width: 45em + +== Topics + + +== Native Messaging API + +https://developer.chrome.com/extensions/nativeMessaging + +The Hatch extension +Application passes JavaScript objects to the Hatch extension +Browser passes JSON messages + +TODO: screen shot of hatch Icon and permission request dialog. + +Note perm request only happens. + + +== Native Messaging API + +TODO: Make this an image + +Application JavaScript + <=> Content Script JavaScript + <=> Extension JavaScript + <=> STDIO [JSON] + <=> Hatch Java + <=> Printer / FileSystem + + +== Native Messaging API + +Sample print message JSON. + +[source,js] +--------------------------------------------------------------------------- +{ + "action":"print", + "content":"Hello, World!", + "contentType":"text/html", + "showDialog":true, + "msgid":10, + "from":"page", + "clientid":5319, + "origin":"https://eg-dev-local" +} +--------------------------------------------------------------------------- + +== Hatch Files + +1. Settings locations / properties +2. hatch.log + -- 2.11.0