| 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 #include "remoting/host/win/session_input_injector.h" | 5 #include "remoting/host/win/session_input_injector.h" |
| 6 | 6 |
| 7 #include <set> | 7 #include <set> |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/bind.h" | 10 #include "base/bind.h" |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 49 public InputInjector { | 49 public InputInjector { |
| 50 public: | 50 public: |
| 51 Core( | 51 Core( |
| 52 scoped_refptr<base::SingleThreadTaskRunner> input_task_runner, | 52 scoped_refptr<base::SingleThreadTaskRunner> input_task_runner, |
| 53 scoped_ptr<InputInjector> nested_executor, | 53 scoped_ptr<InputInjector> nested_executor, |
| 54 scoped_refptr<base::SingleThreadTaskRunner> inject_sas_task_runner, | 54 scoped_refptr<base::SingleThreadTaskRunner> inject_sas_task_runner, |
| 55 const base::Closure& inject_sas); | 55 const base::Closure& inject_sas); |
| 56 | 56 |
| 57 // InputInjector implementation. | 57 // InputInjector implementation. |
| 58 virtual void Start( | 58 virtual void Start( |
| 59 scoped_ptr<protocol::ClipboardStub> client_clipboard) OVERRIDE; | 59 scoped_ptr<protocol::ClipboardStub> client_clipboard) override; |
| 60 | 60 |
| 61 // protocol::ClipboardStub implementation. | 61 // protocol::ClipboardStub implementation. |
| 62 virtual void InjectClipboardEvent( | 62 virtual void InjectClipboardEvent( |
| 63 const protocol::ClipboardEvent& event) OVERRIDE; | 63 const protocol::ClipboardEvent& event) override; |
| 64 | 64 |
| 65 // protocol::InputStub implementation. | 65 // protocol::InputStub implementation. |
| 66 virtual void InjectKeyEvent(const protocol::KeyEvent& event) OVERRIDE; | 66 virtual void InjectKeyEvent(const protocol::KeyEvent& event) override; |
| 67 virtual void InjectTextEvent(const protocol::TextEvent& event) OVERRIDE; | 67 virtual void InjectTextEvent(const protocol::TextEvent& event) override; |
| 68 virtual void InjectMouseEvent(const protocol::MouseEvent& event) OVERRIDE; | 68 virtual void InjectMouseEvent(const protocol::MouseEvent& event) override; |
| 69 | 69 |
| 70 private: | 70 private: |
| 71 friend class base::RefCountedThreadSafe<Core>; | 71 friend class base::RefCountedThreadSafe<Core>; |
| 72 virtual ~Core(); | 72 virtual ~Core(); |
| 73 | 73 |
| 74 // Switches to the desktop receiving a user input if different from | 74 // Switches to the desktop receiving a user input if different from |
| 75 // the current one. | 75 // the current one. |
| 76 void SwitchToInputDesktop(); | 76 void SwitchToInputDesktop(); |
| 77 | 77 |
| 78 scoped_refptr<base::SingleThreadTaskRunner> input_task_runner_; | 78 scoped_refptr<base::SingleThreadTaskRunner> input_task_runner_; |
| (...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 234 const protocol::TextEvent& event) { | 234 const protocol::TextEvent& event) { |
| 235 core_->InjectTextEvent(event); | 235 core_->InjectTextEvent(event); |
| 236 } | 236 } |
| 237 | 237 |
| 238 void SessionInputInjectorWin::InjectMouseEvent( | 238 void SessionInputInjectorWin::InjectMouseEvent( |
| 239 const protocol::MouseEvent& event) { | 239 const protocol::MouseEvent& event) { |
| 240 core_->InjectMouseEvent(event); | 240 core_->InjectMouseEvent(event); |
| 241 } | 241 } |
| 242 | 242 |
| 243 } // namespace remoting | 243 } // namespace remoting |
| OLD | NEW |