From: Bill Erickson Date: Mon, 23 Jan 2017 18:30:42 +0000 (-0500) Subject: eg 2017 hatch review doc X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=288ee5efa63154e35909674e9bc8abdeca6466c7;p=working%2Frandom.git eg 2017 hatch review doc Signed-off-by: Bill Erickson --- 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 +