Home | History | Annotate | Download | only in host
      1 // Copyright 2013 The Chromium Authors. All rights reserved.
      2 // Use of this source code is governed by a BSD-style license that can be
      3 // found in the LICENSE file.
      4 
      5 #ifndef REMOTING_HOST_CLIENT_SESSION_CONTROL_H_
      6 #define REMOTING_HOST_CLIENT_SESSION_CONTROL_H_
      7 
      8 #include "base/basictypes.h"
      9 #include "third_party/skia/include/core/SkPoint.h"
     10 
     11 namespace remoting {
     12 
     13 // Allows the desktop environment to disconnect the client session and
     14 // to control the remote input handling (i.e. disable, enable, and pause
     15 // temporarily if the local mouse movements are detected).
     16 class ClientSessionControl {
     17  public:
     18   virtual ~ClientSessionControl() {}
     19 
     20   // Returns the authenticated JID of the client session.
     21   virtual const std::string& client_jid() const = 0;
     22 
     23   // Disconnects the client session, tears down transport resources and stops
     24   // scheduler components.
     25   virtual void DisconnectSession() = 0;
     26 
     27   // Called when local mouse movement is detected.
     28   virtual void OnLocalMouseMoved(const SkIPoint& position) = 0;
     29 
     30   // Disables or enables the remote input in the client session.
     31   virtual void SetDisableInputs(bool disable_inputs) = 0;
     32 };
     33 
     34 }  // namespace remoting
     35 
     36 #endif  // REMOTING_HOST_CLIENT_SESSION_CONTROL_H_
     37