| 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 #ifndef REMOTING_HOST_WIN_SESSION_INPUT_INJECTOR_H_ | 5 #ifndef REMOTING_HOST_WIN_SESSION_INPUT_INJECTOR_H_ |
| 6 #define REMOTING_HOST_WIN_SESSION_INPUT_INJECTOR_H_ | 6 #define REMOTING_HOST_WIN_SESSION_INPUT_INJECTOR_H_ |
| 7 | 7 |
| 8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
| 9 #include "base/callback_forward.h" | 9 #include "base/callback_forward.h" |
| 10 #include "base/memory/ref_counted.h" | 10 #include "base/memory/ref_counted.h" |
| (...skipping 16 matching lines...) Expand all Loading... |
| 27 SessionInputInjectorWin( | 27 SessionInputInjectorWin( |
| 28 scoped_refptr<base::SingleThreadTaskRunner> input_task_runner, | 28 scoped_refptr<base::SingleThreadTaskRunner> input_task_runner, |
| 29 scoped_ptr<InputInjector> nested_executor, | 29 scoped_ptr<InputInjector> nested_executor, |
| 30 scoped_refptr<base::SingleThreadTaskRunner> inject_sas_task_runner, | 30 scoped_refptr<base::SingleThreadTaskRunner> inject_sas_task_runner, |
| 31 const base::Closure& inject_sas); | 31 const base::Closure& inject_sas); |
| 32 virtual ~SessionInputInjectorWin(); | 32 virtual ~SessionInputInjectorWin(); |
| 33 | 33 |
| 34 // InputInjector implementation. | 34 // InputInjector implementation. |
| 35 virtual void Start( | 35 virtual void Start( |
| 36 scoped_ptr<protocol::ClipboardStub> client_clipboard) override; | 36 scoped_ptr<protocol::ClipboardStub> client_clipboard) override; |
| 37 virtual bool CanInjectTouch() override; |
| 37 | 38 |
| 38 // protocol::ClipboardStub implementation. | 39 // protocol::ClipboardStub implementation. |
| 39 virtual void InjectClipboardEvent( | 40 virtual void InjectClipboardEvent( |
| 40 const protocol::ClipboardEvent& event) override; | 41 const protocol::ClipboardEvent& event) override; |
| 41 | 42 |
| 42 // protocol::InputStub implementation. | 43 // protocol::InputStub implementation. |
| 43 virtual void InjectKeyEvent(const protocol::KeyEvent& event) override; | 44 virtual void InjectKeyEvent(const protocol::KeyEvent& event) override; |
| 44 virtual void InjectTextEvent(const protocol::TextEvent& event) override; | 45 virtual void InjectTextEvent(const protocol::TextEvent& event) override; |
| 45 virtual void InjectMouseEvent(const protocol::MouseEvent& event) override; | 46 virtual void InjectMouseEvent(const protocol::MouseEvent& event) override; |
| 46 virtual void InjectTouchEvent(const protocol::TouchEvent& event) override; | 47 virtual void InjectTouchEvent(const protocol::TouchEvent& event) override; |
| 47 | 48 |
| 48 private: | 49 private: |
| 49 // The actual implementation resides in SessionInputInjectorWin::Core class. | 50 // The actual implementation resides in SessionInputInjectorWin::Core class. |
| 50 class Core; | 51 class Core; |
| 51 scoped_refptr<Core> core_; | 52 scoped_refptr<Core> core_; |
| 52 | 53 |
| 53 DISALLOW_COPY_AND_ASSIGN(SessionInputInjectorWin); | 54 DISALLOW_COPY_AND_ASSIGN(SessionInputInjectorWin); |
| 54 }; | 55 }; |
| 55 | 56 |
| 56 } // namespace remoting | 57 } // namespace remoting |
| 57 | 58 |
| 58 #endif // REMOTING_HOST_WIN_SESSION_INPUT_INJECTOR_H_ | 59 #endif // REMOTING_HOST_WIN_SESSION_INPUT_INJECTOR_H_ |
| OLD | NEW |