| 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.";
|
| }
|
|
|