#ifndef PPAPI_CPP_PRIVATE_FLASH_CLIPBOARD_H_
#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 {
class InstanceHandle;
namespace flash {
class Clipboard {
public:
static bool IsAvailable();
static uint32_t RegisterCustomFormat(const InstanceHandle& instance,
const std::string& format_name);
static bool IsFormatAvailable(const InstanceHandle& instance,
PP_Flash_Clipboard_Type clipboard_type,
uint32_t format);
static bool ReadData(const InstanceHandle& instance,
PP_Flash_Clipboard_Type clipboard_type,
uint32_t clipboard_format,
Var* out);
static bool WriteData(const InstanceHandle& instance,
PP_Flash_Clipboard_Type clipboard_type,
const std::vector<uint32_t>& formats,
const std::vector<Var>& data_items);
static bool GetSequenceNumber(const InstanceHandle& instance,
PP_Flash_Clipboard_Type clipboard_type,
uint64_t* sequence_number);
};
}
}
#endif