| Index: ppapi/cpp/private/flash_clipboard.h
|
| diff --git a/ppapi/cpp/private/flash_clipboard.h b/ppapi/cpp/private/flash_clipboard.h
|
| index db13ce67c8d1952e883d35330eed45576bfc9d9e..65446e3641e5f007f7adf18b2eb5fb50e13623dc 100644
|
| --- a/ppapi/cpp/private/flash_clipboard.h
|
| +++ b/ppapi/cpp/private/flash_clipboard.h
|
| @@ -6,8 +6,10 @@
|
| #define PPAPI_CPP_PRIVATE_FLASH_CLIPBOARD_H_
|
|
|
| #include <string>
|
| +#include <vector>
|
|
|
| #include "ppapi/c/private/ppb_flash_clipboard.h"
|
| +#include "ppapi/cpp/var.h"
|
|
|
| namespace pp {
|
|
|
| @@ -25,16 +27,19 @@ class Clipboard {
|
| PP_Flash_Clipboard_Type clipboard_type,
|
| PP_Flash_Clipboard_Format format);
|
|
|
| - // Returns true on success, in which case |text_out| will be filled with plain
|
| - // text read from the given clipboard.
|
| - static bool ReadPlainText(Instance* instance,
|
| - PP_Flash_Clipboard_Type clipboard_type,
|
| - std::string* text_out);
|
| -
|
| - // Returns true on success (it may fail if |text| is too big).
|
| - static bool WritePlainText(Instance* instance,
|
| - PP_Flash_Clipboard_Type clipboard_type,
|
| - const std::string& text);
|
| + // 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(Instance* instance,
|
| + PP_Flash_Clipboard_Type clipboard_type,
|
| + PP_Flash_Clipboard_Format 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(Instance* instance,
|
| + PP_Flash_Clipboard_Type clipboard_type,
|
| + const std::vector<PP_Flash_Clipboard_Format>& formats,
|
| + const std::vector<Var>& data_items);
|
| };
|
|
|
| } // namespace flash
|
|
|