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

Unified Diff: remoting/protocol/client_control_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: Fix remoting_simple_host. 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
« no previous file with comments | « remoting/protocol/client_control_dispatcher.h ('k') | remoting/protocol/clipboard_stub.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/protocol/client_control_dispatcher.cc
diff --git a/remoting/protocol/client_control_dispatcher.cc b/remoting/protocol/client_control_dispatcher.cc
index e9b7d09c311f7ce6bd69bcd1cc8f88f92dcbe2d6..d8b5baa4fccf4311a1b406310777ded049f27403 100644
--- a/remoting/protocol/client_control_dispatcher.cc
+++ b/remoting/protocol/client_control_dispatcher.cc
@@ -13,6 +13,7 @@
#include "remoting/proto/internal.pb.h"
#include "remoting/protocol/buffered_socket_writer.h"
#include "remoting/protocol/client_stub.h"
+#include "remoting/protocol/util.h"
namespace remoting {
namespace protocol {
@@ -34,6 +35,13 @@ void ClientControlDispatcher::OnInitialized() {
&ClientControlDispatcher::OnMessageReceived, base::Unretained(this)));
}
+void ClientControlDispatcher::InjectClipboardEvent(
+ const ClipboardEvent& event) {
+ ControlMessage message;
+ message.mutable_clipboard_event()->CopyFrom(event);
+ writer_->Write(SerializeAndFrameMessage(message), base::Closure());
+}
+
void ClientControlDispatcher::OnMessageReceived(
ControlMessage* message, const base::Closure& done_task) {
DCHECK(client_stub_);
« no previous file with comments | « remoting/protocol/client_control_dispatcher.h ('k') | remoting/protocol/clipboard_stub.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698