Skip to content

Instantly share code, notes, and snippets.

@yurydelendik
Last active August 29, 2015 14:16
Show Gist options
  • Save yurydelendik/cabbdd66dcf1b10c12a3 to your computer and use it in GitHub Desktop.
Save yurydelendik/cabbdd66dcf1b10c12a3 to your computer and use it in GitHub Desktop.
Shumway Extension Sandboxes
+----------------------------------------------------------------------------------------------+
| <iframe src=chrome://shumway/content/viewer.wrapper.html> |
| |
| +-------------------------------------------------------------+ |
| | <iframe src=resource://shumway/web/viewer.html> | |
| | | |
| | | |
| | +----------+ | |
| | | <canvas> | | |
+--------------+ | | +----------+ | |
| page.html | | | +------------+ | |
| | | +----+ | +---------+ | mouse / | | |
| +--+ | | | | | <video> | | keyboard | | |
| |EI<----+----+ | +-v---------+ +--+ +---------+ +------------+ | |
| +--+ | | |+-|SCA (gfx) <------->SC| | |
| | | | || +----------^+ +--+ | |
| | | | || | | | ^ | |
| | | | || | | | |
| | | | || | | | | | |
| | | | || ++ | | |
| | | | || | | +---------v-+---------------------------------------------+ | |
| | | | || | | | <iframe src=resource://shumway/web/viewer.player.html | | |
| | | | ++---+ | | | sanbox=allows-script> | | |
| | | | || | | | | | | |
+--------------+ | | || +-v-----------+ | +--+ | | |
| | |+-|SCA (player) <-----+->SC| | | |
| | || +-------------+ | +--+ | | |
EI - external | | || | | | | |
interface | | || | | | | |
SC - ShumwayCom | +-v---v----------------+ | | | | |
SCA - ShumwayCom | |ShumwayChromeActions | | | | | |
adapter | +----------------------+ | | +-------------+ | | |
MSE - Media Source | |getBoolPref | | | | Web Audio | | | |
Extensions | |getPluginParams | | | +---------+ +-------------+ | | |
| |loadFile | | | | MSE | | | |
| |setClipboard | | | +---------+ | | |
| |setFullscreen | | | | | |
| |externalCom | | | +-----------+ | | |
| |. . . | | | | <audio> | | | |
| | | | | +-----------+ | | |
| | | | | | | |
| +----------------------+ | +---------------------------------------------------------+ | |
| +-------------------------------------------------------------+ |
+----------------------------------------------------------------------------------------------+
+--------------------------+ +------------------------------------------------------------------+
| <iframe | | |
|src=chrome://shumway/conte| | |
| nt/viewer.wrapper.html> | | +---------------------------------------------------+ |
| | | | <iframe src=resource://shumway/web/viewer.html | |
| | | | mozbrowser> | |
| | | | | |
| | | | | |
| | | | | |
+--------------+ | | | | +----------------------------------------------+ | |
| page.html | | | | | | <iframe | | |
| | | | | | |src=resource://shumway/web/viewer.player.html | | |
| +--+ | | | | | sanbox=allows-script> | | |
| |EI<----+-------+ | | | | | | |
| +--+ | | | | | | | | |
| | | | | | | | | | |
| | | +----v-----------------+| | | | | | |
| | | |ShumwayChromeActions || | | | +--+ | | |
| | | +----------------------+| | | | |SC| | | |
| | | |getBoolPref || | | +---------------------------------------+^-+---+ | |
| | | |getPluginParams || | | +--+ | | |
| | | |loadFile || | | |SC| | | |
| | | |setClipboard || | +----------------------+-^+-----------------+-------+ |
| | | |setFullscreen || | | | |
+--------------+ | |externalCom || | | | |
| |. . . || | | | |
| | || | | | |
| | || | +-----------+ | | |
| +------^---------------+| | +----->|SCA (gfx) <------+ | |
| | | | | | +----------^+ | |
| | | +-------+-+-----+ | | | |
| | +--------> messages |<----+ | | |
| | +-------+-+-----+ | +-------------+ | |
| | | | +---->|SCA (player) <------------------------+ |
| | | | +---------^---+ |
| | +--------+ | | | |
| +-------->|EIA CPOW|--+-+---------------------------+ |
| +--------+ | | |
+--------------------------+ +------------------------------------------------------------------+
Display the source blob
Display the rendered blob
Raw
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment