From c78669c954f21f73734a1a484943d19525a58a5b Mon Sep 17 00:00:00 2001 From: "jamiewalch@google.com" Date: Mon, 13 Jun 2011 22:42:38 +0000 Subject: 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 --- remoting/host/chromoting_host.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'remoting/host/chromoting_host.h') 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, 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; friend class ChromotingHostTest; @@ -164,6 +168,8 @@ class ChromotingHost : public base::RefCountedThreadSafe, void EnableCurtainMode(bool enable); + void MonitorLocalInputs(bool enable); + void ProcessPreAuthentication( const scoped_refptr& connection); @@ -211,8 +217,8 @@ class ChromotingHost : public base::RefCountedThreadSafe, // Configuration of the protocol. scoped_ptr 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. -- cgit v1.1