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

Unified Diff: ppapi/cpp/private/flash_clipboard.h

Issue 11225021: Move flash clipboard to the new proxy and add custom format support (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 8 years, 1 month 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 | « ppapi/c/private/ppb_flash_clipboard.h ('k') | ppapi/cpp/private/flash_clipboard.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/cpp/private/flash_clipboard.h
diff --git a/ppapi/cpp/private/flash_clipboard.h b/ppapi/cpp/private/flash_clipboard.h
index 2894c8f3f074d58dbc45ccf5d0e3d31a898cd701..aab06efb1e91a67f5f81fb392c2d47121ce09510 100644
--- a/ppapi/cpp/private/flash_clipboard.h
+++ b/ppapi/cpp/private/flash_clipboard.h
@@ -22,23 +22,28 @@ class Clipboard {
// Returns true if the required interface is available.
static bool IsAvailable();
+ // Returns a format ID on success or PP_FLASH_CLIPBOARD_FORMAT_INVALID on
+ // failure.
+ static uint32_t RegisterCustomFormat(const InstanceHandle& instance,
+ const std::string& format_name);
+
// Returns true if the given format is available from the given clipboard.
static bool IsFormatAvailable(const InstanceHandle& instance,
PP_Flash_Clipboard_Type clipboard_type,
- PP_Flash_Clipboard_Format format);
+ uint32_t format);
// Returns true on success, in which case |out| will be filled with
// data read from the given clipboard in the given format.
static bool ReadData(const InstanceHandle& instance,
PP_Flash_Clipboard_Type clipboard_type,
- PP_Flash_Clipboard_Format clipboard_format,
+ uint32_t clipboard_format,
Var* out);
// Returns true on success in which case all of |data| will be written to
// the clipboard. Otherwise nothing will be written.
static bool WriteData(const InstanceHandle& instance,
PP_Flash_Clipboard_Type clipboard_type,
- const std::vector<PP_Flash_Clipboard_Format>& formats,
+ const std::vector<uint32_t>& formats,
const std::vector<Var>& data_items);
};
« no previous file with comments | « ppapi/c/private/ppb_flash_clipboard.h ('k') | ppapi/cpp/private/flash_clipboard.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698