OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "remoting/protocol/host_event_dispatcher.h" | 5 #include "remoting/protocol/host_event_dispatcher.h" |
6 | 6 |
7 #include "net/socket/stream_socket.h" | 7 #include "net/socket/stream_socket.h" |
| 8 #include "remoting/base/compound_buffer.h" |
8 #include "remoting/base/constants.h" | 9 #include "remoting/base/constants.h" |
9 #include "remoting/proto/event.pb.h" | 10 #include "remoting/proto/event.pb.h" |
10 #include "remoting/proto/internal.pb.h" | 11 #include "remoting/proto/internal.pb.h" |
11 #include "remoting/protocol/input_stub.h" | 12 #include "remoting/protocol/input_stub.h" |
12 #include "remoting/protocol/message_serialization.h" | 13 #include "remoting/protocol/message_serialization.h" |
13 | 14 |
14 namespace remoting { | 15 namespace remoting { |
15 namespace protocol { | 16 namespace protocol { |
16 | 17 |
17 HostEventDispatcher::HostEventDispatcher() | 18 HostEventDispatcher::HostEventDispatcher() |
(...skipping 28 matching lines...) Expand all Loading... |
46 input_stub_->InjectMouseEvent(message->mouse_event()); | 47 input_stub_->InjectMouseEvent(message->mouse_event()); |
47 } else if (message->has_touch_event()) { | 48 } else if (message->has_touch_event()) { |
48 input_stub_->InjectTouchEvent(message->touch_event()); | 49 input_stub_->InjectTouchEvent(message->touch_event()); |
49 } else { | 50 } else { |
50 LOG(WARNING) << "Unknown event message received."; | 51 LOG(WARNING) << "Unknown event message received."; |
51 } | 52 } |
52 } | 53 } |
53 | 54 |
54 } // namespace protocol | 55 } // namespace protocol |
55 } // namespace remoting | 56 } // namespace remoting |
OLD | NEW |