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 c16ae36f2708c31abb75fccfc2de214b280e3234..e95e19c0c198762b29ad8d948c541e26bebd9963 100644 |
--- a/ppapi/c/private/ppb_flash_clipboard.h |
+++ b/ppapi/c/private/ppb_flash_clipboard.h |
@@ -5,10 +5,11 @@ |
#ifndef PPAPI_C_PRIVATE_PPB_FLASH_CLIPBOARD_H_ |
#define PPAPI_C_PRIVATE_PPB_FLASH_CLIPBOARD_H_ |
+#include "ppapi/c/pp_bool.h" |
#include "ppapi/c/pp_instance.h" |
#include "ppapi/c/pp_var.h" |
-#define PPB_FLASH_CLIPBOARD_INTERFACE "PPB_Flash_Clipboard;2" |
+#define PPB_FLASH_CLIPBOARD_INTERFACE "PPB_Flash_Clipboard;3" |
typedef enum { |
PP_FLASH_CLIPBOARD_TYPE_STANDARD = 0, |
@@ -16,7 +17,18 @@ typedef enum { |
PP_FLASH_CLIPBOARD_TYPE_DRAG = 2 |
} PP_Flash_Clipboard_Type; |
+typedef enum { |
+ PP_FLASH_CLIPBOARD_FORMAT_INVALID = 0, |
+ PP_FLASH_CLIPBOARD_FORMAT_PLAINTEXT = 1, |
+ PP_FLASH_CLIPBOARD_FORMAT_HTML = 2 |
+} PP_Flash_Clipboard_Format; |
+ |
struct PPB_Flash_Clipboard { |
+ // Returns true if the given format is available from the given clipboard. |
+ PP_Bool (*IsFormatAvailable)(PP_Instance instance_id, |
+ PP_Flash_Clipboard_Type clipboard_type, |
+ PP_Flash_Clipboard_Format format); |
+ |
// Reads plain text data from the clipboard. |
struct PP_Var (*ReadPlainText)(PP_Instance instance_id, |
PP_Flash_Clipboard_Type clipboard_type); |
@@ -27,7 +39,7 @@ struct PPB_Flash_Clipboard { |
PP_Flash_Clipboard_Type clipboard_type, |
struct PP_Var text); |
- // TODO(vtl): More formats, a |IsFormatAvailable()|, .... |
+ // TODO(vtl): More formats (e.g., HTML).... |
}; |
#endif // PPAPI_C_PRIVATE_PPB_FLASH_CLIPBOARD_H_ |