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

Unified Diff: ppapi/c/private/ppb_flash_clipboard.h

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
Index: ppapi/c/private/ppb_flash_clipboard.h
diff --git a/ppapi/c/private/ppb_flash_clipboard.h b/ppapi/c/private/ppb_flash_clipboard.h
index 7b84a2729a570e84427f098036a0d1eab92c5fbe..53d2fb47ced9d8a69c4ab037b2ed97be0320712d 100644
--- a/ppapi/c/private/ppb_flash_clipboard.h
+++ b/ppapi/c/private/ppb_flash_clipboard.h
@@ -3,7 +3,7 @@
* found in the LICENSE file.
*/
-/* From private/ppb_flash_clipboard.idl modified Wed Dec 14 18:08:00 2011. */
+/* From private/ppb_flash_clipboard.idl modified Tue Jan 24 13:30:10 2012. */
#ifndef PPAPI_C_PRIVATE_PPB_FLASH_CLIPBOARD_H_
#define PPAPI_C_PRIVATE_PPB_FLASH_CLIPBOARD_H_
@@ -86,13 +86,38 @@ struct PPB_Flash_Clipboard_3_0 {
struct PP_Var (*ReadPlainText)(PP_Instance instance_id,
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)(PP_Instance instance_id,
PP_Flash_Clipboard_Type clipboard_type,
struct PP_Var text);
+ /**
+ * Reads HTML data from the clipboard.
+ */
+ struct PP_Var (*ReadHTML)(PP_Instance instance_id,
+ 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)(PP_Instance instance_id,
+ PP_Flash_Clipboard_Type clipboard_type,
+ struct PP_Var html);
+ /**
+ * Clear the contents of the clipboard buffer.
+ */
+ void (*Clear)(PP_Instance instance_id,
+ 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)(PP_Instance instance_id,
+ PP_Flash_Clipboard_Type clipboard_type);
};
typedef struct PPB_Flash_Clipboard_3_0 PPB_Flash_Clipboard;
« ppapi/api/private/ppb_flash_clipboard.idl ('K') | « ppapi/api/private/ppb_flash_clipboard.idl ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698