Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(228)

Unified Diff: ppapi/api/private/ppb_flash_clipboard.idl

Issue 9212066: Modified the flash cipboard interface to add html clipboard support. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | ppapi/c/private/ppb_flash_clipboard.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/api/private/ppb_flash_clipboard.idl
diff --git a/ppapi/api/private/ppb_flash_clipboard.idl b/ppapi/api/private/ppb_flash_clipboard.idl
index 890a7d481c818042997c409db96bb9db684c43ca..4e38570e760809eada3a50395143c390831c537d 100644
--- a/ppapi/api/private/ppb_flash_clipboard.idl
+++ b/ppapi/api/private/ppb_flash_clipboard.idl
@@ -70,12 +70,46 @@ interface PPB_Flash_Clipboard {
[in] PP_Flash_Clipboard_Type clipboard_type);
/**
- * Writes plain text data to the clipboard. If <code>text</code> is too large,
- * it will return <code>PP_ERROR_NOSPACE</code> and not write to the
- * clipboard.
+ * Writes plain text data to the clipboard buffer. If <code>text</code> is too
+ * large, it will return <code>PP_ERROR_NOSPACE</code> and not write to the
+ * clipboard buffer.
*/
int32_t WritePlainText(
viettrungluu 2012/01/25 00:01:55 Since "write" no longer parallels "read" directly
raymes1 2012/01/25 01:33:12 Done.
[in] PP_Instance instance_id,
[in] PP_Flash_Clipboard_Type clipboard_type,
[in] PP_Var text);
+
+ /**
+ * Reads HTML data from the clipboard.
+ */
+ PP_Var ReadHTML(
+ [in] PP_Instance instance_id,
+ [in] PP_Flash_Clipboard_Type clipboard_type);
+
+ /**
+ * Writes HTML data to the clipboard buffer. If <code>html</code> is too
+ * large, it will return <code>PP_ERROR_NOSPACE</code> and not write to the
+ * clipboard buffer.
+ */
+ int32_t WriteHTML(
+ [in] PP_Instance instance_id,
+ [in] PP_Flash_Clipboard_Type clipboard_type,
+ [in] PP_Var html);
+
+ /**
+ * Clear the contents of the clipboard buffer.
+ */
+ void Clear(
viettrungluu 2012/01/25 00:01:55 Is this instantaneous? Or does it also require com
raymes1 2012/01/25 01:33:12 This requires a commit. I updated the docs to make
+ [in] PP_Instance instance_id,
+ [in] PP_Flash_Clipboard_Type clipboard_type);
+
+ /**
+ * Commit the contents of the clipboard buffer to the clipboard. Any existing
+ * contents on the clipboard are cleared before the contents of the clipboard
+ * buffer are written.
+ */
+ void Commit(
+ [in] PP_Instance instance_id,
+ [in] PP_Flash_Clipboard_Type clipboard_type);
+
};
« no previous file with comments | « no previous file | ppapi/c/private/ppb_flash_clipboard.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698