#include "remoting/host/clipboard.h"
#include <memory>
#include "base/functional/bind.h"
#include "base/logging.h"
#include "base/memory/raw_ptr.h"
#include "remoting/host/linux/x_server_clipboard.h"
#include "remoting/proto/event.pb.h"
#include "remoting/protocol/clipboard_stub.h"
#include "ui/gfx/x/connection.h"
#include "ui/gfx/x/xproto_types.h"
namespace remoting {
class ClipboardX11 : public Clipboard, public x11::EventObserver { … };
ClipboardX11::ClipboardX11() = default;
ClipboardX11::~ClipboardX11() { … }
void ClipboardX11::Init() { … }
void ClipboardX11::Start(
std::unique_ptr<protocol::ClipboardStub> client_clipboard) { … }
void ClipboardX11::InjectClipboardEvent(const protocol::ClipboardEvent& event) { … }
void ClipboardX11::OnClipboardChanged(const std::string& mime_type,
const std::string& data) { … }
void ClipboardX11::OnEvent(const x11::Event& event) { … }
std::unique_ptr<Clipboard> Clipboard::Create() { … }
}