Labs/Jetpack/JEP/23

From MozillaWiki
< Labs‎ | Jetpack‎ | JEP
Revision as of 22:06, 21 August 2009 by Aza (talk | contribs) (Created page with '{{draft}} == JEP 10 - Panels == * Champion: Aza Raskin <aza at mozilla dot com> * Status: Implementing * Type: API Track * Created: 21 Aug 2009 * Reference Implementation: None…')
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
Draft-template-image.png THIS PAGE IS A WORKING DRAFT Pencil-emoji U270F-gray.png
The page may be difficult to navigate, and some information on its subject might be incomplete and/or evolving rapidly.
If you have any questions or ideas, please add them as a new topic on the discussion page.

JEP 10 - Panels

  • Champion: Aza Raskin <aza at mozilla dot com>
  • Status: Implementing
  • Type: API Track
  • Created: 21 Aug 2009
  • Reference Implementation: None
  • Relevant Bugs:
  • JEP Index

Introduction and Rationale

This JEP describes the API for creating style-able rich content panels (windows) that float above the browser window.

Many extensions use floating panels as a way to present rich information over chrome/content both for anti-spoofing reasons as well as to not inject information into the DOM.


Proposal

Clipboard access will live at jetpack.panel.

Setting the clipboard

jetpack.clipboard.set( content )
jetpack.clipboard.set( content, flavor )
  • content: The content to put on the clipboard. If no other arguments are supplied, the content is assumed to be of flavor "plain". For now, this can only be text or an image. In the future, it can be anything that is place-able on the system clipboard.
  • flavor: A Jetpack clipboard flavor (see below).

Examples

jetpack.clipboard.set('hello');
jetpack.clipboard.set('<b>Hello</b>', 'html');