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

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

Issue 6724010: Pepper/Flapper: Add IsFormatAvailable() to PPB_Flash_Clipboard. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 9 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/proxy/ppapi_messages.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_
« no previous file with comments | « no previous file | ppapi/proxy/ppapi_messages.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698