Labs/Jetpack/JEP/10: Difference between revisions
Jump to navigation
Jump to search
Line 23: | Line 23: | ||
'''Setting the clipboard''' | '''Setting the clipboard''' | ||
<pre class="brush:js">jetpack.os.clipboard.set( data, [dataType] )</pre> | <pre class="brush:js;toolbar:false;">jetpack.os.clipboard.set( data, [dataType] )</pre> |
Revision as of 00:28, 27 May 2009
JEP 10 - Clipboard Support
- Author: Aza Raskin <aza at mozilla dot com>
- Champion: Aza Raskin <aza at mozilla dot com>
- Status: Draft
- Type: API Track
- Created: 26 May 2009
Introduction and Rationale
This JEP describes OS clipboard access to the Jetpack API.
A number of Jetpacks have already implemented their own versions of clipboard access. It makes sense to unify the API and allow for a clean way for Jetpacks to get and set the clipboard in a variety of formats.
As part of this proposal is adding a jetpack.os
namespace.
Proposal
Clipboard access will live at jetpack.os.clipboard
. The jetpack.os
will provide access to anything that relates to the OS (file access, OS info, etc.)
Setting the clipboard
jetpack.os.clipboard.set( data, [dataType] )