diff options
author | jamiewalch@google.com <jamiewalch@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-06-13 22:42:38 +0000 |
---|---|---|
committer | jamiewalch@google.com <jamiewalch@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-06-13 22:42:38 +0000 |
commit | c78669c954f21f73734a1a484943d19525a58a5b (patch) | |
tree | 5a1ddd659dd13d1296692694d78e8b03fd9939ab /remoting/host/chromoting_host.h | |
parent | 244d7c5866e4c7406251a499272abd76204fa005 (diff) | |
download | chromium_src-c78669c954f21f73734a1a484943d19525a58a5b.zip chromium_src-c78669c954f21f73734a1a484943d19525a58a5b.tar.gz chromium_src-c78669c954f21f73734a1a484943d19525a58a5b.tar.bz2 |
Block remote mouse inputs for a short time when local input is received.
BUG=
TEST=
Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=88878
Review URL: http://codereview.chromium.org/7134048
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@88915 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'remoting/host/chromoting_host.h')
-rw-r--r-- | remoting/host/chromoting_host.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/remoting/host/chromoting_host.h b/remoting/host/chromoting_host.h index a890398..c05b06d 100644 --- a/remoting/host/chromoting_host.h +++ b/remoting/host/chromoting_host.h @@ -128,6 +128,10 @@ class ChromotingHost : public base::RefCountedThreadSafe<ChromotingHost>, is_me2mom_ = is_me2mom; } + // Notify all active client sessions that local input has been detected, and + // that remote input should be ignored for a short time. + void LocalMouseMoved(const gfx::Point& new_pos); + private: friend class base::RefCountedThreadSafe<ChromotingHost>; friend class ChromotingHostTest; @@ -164,6 +168,8 @@ class ChromotingHost : public base::RefCountedThreadSafe<ChromotingHost>, void EnableCurtainMode(bool enable); + void MonitorLocalInputs(bool enable); + void ProcessPreAuthentication( const scoped_refptr<protocol::ConnectionToClient>& connection); @@ -211,8 +217,8 @@ class ChromotingHost : public base::RefCountedThreadSafe<ChromotingHost>, // Configuration of the protocol. scoped_ptr<protocol::CandidateSessionConfig> protocol_config_; - // Whether or not the host is currently curtained. bool is_curtained_; + bool is_monitoring_local_inputs_; // Whether or not the host is running in "Me2Mom" mode, in which connections // are pre-authenticated, and hence the local login challenge can be bypassed. |