Chromium Code Reviews| Index: remoting/host/local_input_monitor.h |
| diff --git a/remoting/host/local_input_monitor.h b/remoting/host/local_input_monitor.h |
| index 39de156507afcf5c1486e603e7d6affe87039d38..6fea83b7b9933f856217f93f8f4d57dfc5173df0 100644 |
| --- a/remoting/host/local_input_monitor.h |
| +++ b/remoting/host/local_input_monitor.h |
| @@ -5,23 +5,21 @@ |
| #ifndef REMOTING_LOCAL_INPUT_MONITOR_H_ |
| #define REMOTING_LOCAL_INPUT_MONITOR_H_ |
| +#include "base/callback_forward.h" |
| #include "base/memory/scoped_ptr.h" |
| namespace remoting { |
| -class ChromotingHost; |
| +class MouseMoveObserver; |
| class LocalInputMonitor { |
| public: |
| virtual ~LocalInputMonitor() {} |
| - virtual void Start(ChromotingHost* host) = 0; |
| + virtual void Start(MouseMoveObserver* mouse_move_observer, |
|
Wez
2012/05/25 23:32:18
MouseMoveObserver only has a single method, so why
Sergey Ulanov
2012/05/26 01:06:15
You can't store callbacks in stl containers and th
Wez
2012/05/29 16:57:33
An alternative would be to allow LocalInputMonitor
|
| + const base::Closure& disconnect_callback) = 0; |
|
Wez
2012/05/25 23:32:18
This looks a little odd; can you add a comment to
Sergey Ulanov
2012/05/26 01:06:15
Done.
|
| virtual void Stop() = 0; |
| - // TODO(sergeyu): This is a short-term hack to disable disconnection |
| - // shortcut on Mac. |
| - virtual void DisableShortcutOnMac() {}; |
| - |
| static scoped_ptr<LocalInputMonitor> Create(); |
| }; |