OLD | NEW |
| (Empty) |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | |
2 // Use of this source code is governed by a BSD-style license that can be | |
3 // found in the LICENSE file. | |
4 | |
5 #ifndef REMOTING_PROTOCOL_HOST_EVENT_MESSAGE_HANDLER_H_ | |
6 #define REMOTING_PROTOCOL_HOST_EVENT_MESSAGE_HANDLER_H_ | |
7 | |
8 #include "base/basictypes.h" | |
9 #include "remoting/proto/event.pb.h" | |
10 | |
11 class Task; | |
12 | |
13 namespace remoting { | |
14 | |
15 // The interface for handling event messages sent to the host. | |
16 // For all methods of this interface. |task| needs to be called when | |
17 // receiver is done processing the event. | |
18 class HostEventMessageHandler { | |
19 public: | |
20 virtual ~HostEventMessageHandler() {} | |
21 | |
22 virtual void OnKeyEvent(int32 timestamp, | |
23 const KeyEvent& event, Task* task) = 0; | |
24 virtual void OnMouseEvent(int32 timestamp, const MouseEvent& event, | |
25 Task* task) = 0; | |
26 }; | |
27 | |
28 } // namespace remoting | |
29 | |
30 #endif // REMOTING_PROTOCOL_HOST_EVENT_MESSAGE_HANDLER_H_ | |
OLD | NEW |