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

Unified Diff: remoting/protocol/client_event_dispatcher.cc

Issue 9646013: Add the plumbing that will carry a clipboard item from a chromoting client to a host. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 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
Index: remoting/protocol/client_event_dispatcher.cc
diff --git a/remoting/protocol/client_event_dispatcher.cc b/remoting/protocol/client_event_dispatcher.cc
index c0da8373f2cdcf2e8cf08aa8149e35b3edcbd1cf..0647db1b190baa405889ed4004fcc653cae27ab6 100644
--- a/remoting/protocol/client_event_dispatcher.cc
+++ b/remoting/protocol/client_event_dispatcher.cc
@@ -31,6 +31,13 @@ void ClientEventDispatcher::OnInitialized() {
BufferedSocketWriter::WriteFailedCallback());
}
+void ClientEventDispatcher::InjectClipboardEvent(const ClipboardEvent& event) {
+ EventMessage message;
+ message.set_sequence_number(base::Time::Now().ToInternalValue());
+ message.mutable_clipboard_event()->CopyFrom(event);
+ writer_->Write(SerializeAndFrameMessage(message), base::Closure());
+}
+
void ClientEventDispatcher::InjectKeyEvent(const KeyEvent& event) {
EventMessage message;
message.set_sequence_number(base::Time::Now().ToInternalValue());

Powered by Google App Engine
This is Rietveld 408576698