| 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..0c36da7175fa6dd73a62e61dabbcc2e701fd283a 100644
|
| --- a/remoting/host/local_input_monitor.h
|
| +++ b/remoting/host/local_input_monitor.h
|
| @@ -5,23 +5,27 @@
|
| #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;
|
| + // Starts local input monitoring. This class is also responsible for
|
| + // of catching the disconnection keyboard shortcut on Mac and Linux
|
| + // (Ctlr-Alt-Esc). The |disconnect_callback| is called when this key
|
| + // combination is pressed.
|
| + //
|
| + // TODO(sergeyu): Refactor shortcut code to a separate class.
|
| + virtual void Start(MouseMoveObserver* mouse_move_observer,
|
| + const base::Closure& disconnect_callback) = 0;
|
| 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();
|
| };
|
|
|
|
|