| 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_IPC_INPUT_INJECTOR_H_ | 5 #ifndef REMOTING_HOST_IPC_INPUT_INJECTOR_H_ |
| 6 #define REMOTING_HOST_IPC_INPUT_INJECTOR_H_ | 6 #define REMOTING_HOST_IPC_INPUT_INJECTOR_H_ |
| 7 | 7 |
| 8 #include "base/macros.h" | 8 #include "base/macros.h" |
| 9 #include "base/memory/ref_counted.h" | 9 #include "base/memory/ref_counted.h" |
| 10 #include "remoting/host/input_injector.h" | 10 #include "remoting/host/input_injector.h" |
| (...skipping 14 matching lines...) Expand all Loading... |
| 25 // ClipboardStub interface. | 25 // ClipboardStub interface. |
| 26 void InjectClipboardEvent(const protocol::ClipboardEvent& event) override; | 26 void InjectClipboardEvent(const protocol::ClipboardEvent& event) override; |
| 27 | 27 |
| 28 // InputStub interface. | 28 // InputStub interface. |
| 29 void InjectKeyEvent(const protocol::KeyEvent& event) override; | 29 void InjectKeyEvent(const protocol::KeyEvent& event) override; |
| 30 void InjectTextEvent(const protocol::TextEvent& event) override; | 30 void InjectTextEvent(const protocol::TextEvent& event) override; |
| 31 void InjectMouseEvent(const protocol::MouseEvent& event) override; | 31 void InjectMouseEvent(const protocol::MouseEvent& event) override; |
| 32 void InjectTouchEvent(const protocol::TouchEvent& event) override; | 32 void InjectTouchEvent(const protocol::TouchEvent& event) override; |
| 33 | 33 |
| 34 // InputInjector interface. | 34 // InputInjector interface. |
| 35 void Start(scoped_ptr<protocol::ClipboardStub> client_clipboard) override; | 35 void Start( |
| 36 std::unique_ptr<protocol::ClipboardStub> client_clipboard) override; |
| 36 | 37 |
| 37 private: | 38 private: |
| 38 // Wraps the IPC channel to the desktop process. | 39 // Wraps the IPC channel to the desktop process. |
| 39 scoped_refptr<DesktopSessionProxy> desktop_session_proxy_; | 40 scoped_refptr<DesktopSessionProxy> desktop_session_proxy_; |
| 40 | 41 |
| 41 DISALLOW_COPY_AND_ASSIGN(IpcInputInjector); | 42 DISALLOW_COPY_AND_ASSIGN(IpcInputInjector); |
| 42 }; | 43 }; |
| 43 | 44 |
| 44 } // namespace remoting | 45 } // namespace remoting |
| 45 | 46 |
| 46 #endif // REMOTING_HOST_IPC_INPUT_INJECTOR_H_ | 47 #endif // REMOTING_HOST_IPC_INPUT_INJECTOR_H_ |
| OLD | NEW |