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

Unified Diff: remoting/protocol/host_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/host_event_dispatcher.cc
diff --git a/remoting/protocol/host_event_dispatcher.cc b/remoting/protocol/host_event_dispatcher.cc
index 22cee04c9e434b75dee384652e80d6c609944d4a..b35145f8fd8c22202036efad5fef39dc70933480 100644
--- a/remoting/protocol/host_event_dispatcher.cc
+++ b/remoting/protocol/host_event_dispatcher.cc
@@ -9,6 +9,7 @@
#include "remoting/base/constants.h"
#include "remoting/proto/event.pb.h"
#include "remoting/proto/internal.pb.h"
+#include "remoting/protocol/clipboard_stub.h"
#include "remoting/protocol/input_stub.h"
namespace remoting {
@@ -16,6 +17,7 @@ namespace protocol {
HostEventDispatcher::HostEventDispatcher()
: ChannelDispatcherBase(kEventChannelName),
+ clipboard_stub_(NULL),
input_stub_(NULL) {
}
@@ -29,6 +31,7 @@ void HostEventDispatcher::OnInitialized() {
void HostEventDispatcher::OnMessageReceived(
EventMessage* message, const base::Closure& done_task) {
+ DCHECK(clipboard_stub_);
DCHECK(input_stub_);
base::ScopedClosureRunner done_runner(done_task);
@@ -44,6 +47,8 @@ void HostEventDispatcher::OnMessageReceived(
}
} else if (message->has_mouse_event()) {
input_stub_->InjectMouseEvent(message->mouse_event());
+ } else if (message->has_clipboard_event()) {
+ clipboard_stub_->InjectClipboardEvent(message->clipboard_event());
} else {
LOG(WARNING) << "Unknown event message received.";
}

Powered by Google App Engine
This is Rietveld 408576698