diff options
Diffstat (limited to 'remoting/protocol/input_stub.h')
-rw-r--r-- | remoting/protocol/input_stub.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/remoting/protocol/input_stub.h b/remoting/protocol/input_stub.h index 8c80d16..0bc60c3 100644 --- a/remoting/protocol/input_stub.h +++ b/remoting/protocol/input_stub.h @@ -26,11 +26,17 @@ class InputStub { virtual void InjectKeyEvent(const KeyEvent* event, Task* done) = 0; virtual void InjectMouseEvent(const MouseEvent* event, Task* done) = 0; + // TODO(lambroslambrou): Remove OnAuthenticated() and OnClosed() when stubs + // are refactored not to store authentication state. + // Called when the client has authenticated with the host to enable the // input event channel. // Before this is called, all input event will be ignored. void OnAuthenticated(); + // Called when the client is no longer connected. + void OnClosed(); + // Has the client successfully authenticated with the host? // I.e., should we be processing input events? bool authenticated(); |