OLD | NEW |
(Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef REMOTING_HOST_SESSION_EVENT_EXECUTOR_WIN_H_ |
| 6 #define REMOTING_HOST_SESSION_EVENT_EXECUTOR_WIN_H_ |
| 7 |
| 8 #include "base/basictypes.h" |
| 9 #include "base/memory/scoped_ptr.h" |
| 10 #include "ipc/ipc_channel.h" |
| 11 |
| 12 #include "remoting/host/event_executor.h" |
| 13 #include "remoting/protocol/input_stub.h" |
| 14 |
| 15 class MessageLoop; |
| 16 |
| 17 namespace base { |
| 18 class MessageLoopProxy; |
| 19 } // namespace base |
| 20 |
| 21 namespace IPC { |
| 22 class ChannelProxy; |
| 23 } // namespace IPC |
| 24 |
| 25 namespace remoting { |
| 26 |
| 27 class SessionEventExecutorWin : public protocol::InputStub, |
| 28 public IPC::Channel::Listener { |
| 29 public: |
| 30 SessionEventExecutorWin(MessageLoop* message_loop, |
| 31 base::MessageLoopProxy* io_message_loop, |
| 32 scoped_ptr<protocol::InputStub> nested_executor); |
| 33 ~SessionEventExecutorWin(); |
| 34 |
| 35 // protocol::InputStub implementation. |
| 36 virtual void InjectKeyEvent(const protocol::KeyEvent& event) OVERRIDE; |
| 37 virtual void InjectMouseEvent(const protocol::MouseEvent& event) OVERRIDE; |
| 38 |
| 39 // IPC::Channel::Listener implementation. |
| 40 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; |
| 41 |
| 42 private: |
| 43 // Pointer to the next event executor. |
| 44 scoped_ptr<protocol::InputStub> nested_executor_; |
| 45 |
| 46 MessageLoop* message_loop_; |
| 47 |
| 48 // The Chromoting IPC channel connecting the host with the service. |
| 49 scoped_ptr<IPC::ChannelProxy> chromoting_channel_; |
| 50 |
| 51 bool scroll_pressed_; |
| 52 |
| 53 DISALLOW_COPY_AND_ASSIGN(SessionEventExecutorWin); |
| 54 }; |
| 55 |
| 56 } // namespace remoting |
| 57 |
| 58 #endif // REMOTING_HOST_SESSION_EVENT_EXECUTOR_WIN_H_ |
OLD | NEW |