[email protected] | a4605c5 | 2012-03-03 01:12:10 | [diff] [blame] | 1 | // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
[email protected] | 409ac61 | 2011-11-18 04:05:57 | [diff] [blame] | 2 | // Use of this source code is governed by a BSD-style license that can be |
3 | // found in the LICENSE file. | ||||
4 | |||||
[email protected] | a4605c5 | 2012-03-03 01:12:10 | [diff] [blame] | 5 | #ifndef REMOTING_PROTOCOL_CLIENT_EVENT_DISPATCHER_H_ |
6 | #define REMOTING_PROTOCOL_CLIENT_EVENT_DISPATCHER_H_ | ||||
[email protected] | 409ac61 | 2011-11-18 04:05:57 | [diff] [blame] | 7 | |
[email protected] | 409ac61 | 2011-11-18 04:05:57 | [diff] [blame] | 8 | #include "base/memory/ref_counted.h" |
[email protected] | 2e8b52c | 2011-11-22 00:07:13 | [diff] [blame] | 9 | #include "remoting/protocol/channel_dispatcher_base.h" |
[email protected] | 409ac61 | 2011-11-18 04:05:57 | [diff] [blame] | 10 | #include "remoting/protocol/input_stub.h" |
11 | |||||
[email protected] | 409ac61 | 2011-11-18 04:05:57 | [diff] [blame] | 12 | namespace remoting { |
13 | namespace protocol { | ||||
14 | |||||
[email protected] | 409ac61 | 2011-11-18 04:05:57 | [diff] [blame] | 15 | // ClientEventDispatcher manages the event channel on the client |
16 | // side. It implements InputStub for outgoing input messages. | ||||
[email protected] | 2e8b52c | 2011-11-22 00:07:13 | [diff] [blame] | 17 | class ClientEventDispatcher : public ChannelDispatcherBase, public InputStub { |
[email protected] | 409ac61 | 2011-11-18 04:05:57 | [diff] [blame] | 18 | public: |
19 | ClientEventDispatcher(); | ||||
dcheng | 562aba5 | 2014-10-21 12:30:14 | [diff] [blame] | 20 | ~ClientEventDispatcher() override; |
[email protected] | 409ac61 | 2011-11-18 04:05:57 | [diff] [blame] | 21 | |
[email protected] | 409ac61 | 2011-11-18 04:05:57 | [diff] [blame] | 22 | // InputStub implementation. |
dcheng | 562aba5 | 2014-10-21 12:30:14 | [diff] [blame] | 23 | void InjectKeyEvent(const KeyEvent& event) override; |
24 | void InjectTextEvent(const TextEvent& event) override; | ||||
25 | void InjectMouseEvent(const MouseEvent& event) override; | ||||
rkuroiwa | 0e68803f | 2015-02-26 19:41:42 | [diff] [blame^] | 26 | void InjectTouchEvent(const TouchEvent& event) override; |
[email protected] | 409ac61 | 2011-11-18 04:05:57 | [diff] [blame] | 27 | |
[email protected] | 409ac61 | 2011-11-18 04:05:57 | [diff] [blame] | 28 | private: |
[email protected] | 409ac61 | 2011-11-18 04:05:57 | [diff] [blame] | 29 | DISALLOW_COPY_AND_ASSIGN(ClientEventDispatcher); |
30 | }; | ||||
31 | |||||
32 | } // namespace protocol | ||||
33 | } // namespace remoting | ||||
34 | |||||
[email protected] | a4605c5 | 2012-03-03 01:12:10 | [diff] [blame] | 35 | #endif // REMOTING_PROTOCOL_CLIENT_EVENT_DISPATCHER_H_ |