summaryrefslogtreecommitdiffstats
path: root/remoting/host/client_session.h
diff options
context:
space:
mode:
authorlambroslambrou@chromium.org <lambroslambrou@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-09-15 05:08:25 +0000
committerlambroslambrou@chromium.org <lambroslambrou@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-09-15 05:08:25 +0000
commit995c2c6d7b6b3cfc8ac9b96c7a57a6a25cdfffb3 (patch)
tree6aa27c06402c17a81e35ccadf152dd07892f4aae /remoting/host/client_session.h
parent8ff142435007572b72828c59ffb269c20a1abab9 (diff)
downloadchromium_src-995c2c6d7b6b3cfc8ac9b96c7a57a6a25cdfffb3.zip
chromium_src-995c2c6d7b6b3cfc8ac9b96c7a57a6a25cdfffb3.tar.gz
chromium_src-995c2c6d7b6b3cfc8ac9b96c7a57a6a25cdfffb3.tar.bz2
Clamp injected mouse events to within the screen area.
This is the quick'n'dirty version. Refactoring stuff out of ClientSession will come in later CLs. BUG=91613 TEST=Manual Review URL: http://codereview.chromium.org/7886021 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@101244 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'remoting/host/client_session.h')
-rw-r--r--remoting/host/client_session.h12
1 files changed, 10 insertions, 2 deletions
diff --git a/remoting/host/client_session.h b/remoting/host/client_session.h
index 9ff7b93..31329d5 100644
--- a/remoting/host/client_session.h
+++ b/remoting/host/client_session.h
@@ -16,6 +16,7 @@
namespace remoting {
+class Capturer;
class UserAuthenticator;
// A ClientSession keeps a reference to a connection to a client, and maintains
@@ -40,11 +41,12 @@ class ClientSession : public protocol::HostStub,
};
// Takes ownership of |user_authenticator|. Does not take ownership of
- // |event_handler| or |input_stub|.
+ // |event_handler|, |input_stub| or |capturer|.
ClientSession(EventHandler* event_handler,
UserAuthenticator* user_authenticator,
scoped_refptr<protocol::ConnectionToClient> connection,
- protocol::InputStub* input_stub);
+ protocol::InputStub* input_stub,
+ Capturer* capturer);
// protocol::HostStub interface.
virtual void BeginSessionRequest(
@@ -109,6 +111,12 @@ class ClientSession : public protocol::HostStub,
// The input stub to which this object delegates.
protocol::InputStub* input_stub_;
+ // Capturer, used to determine current screen size for ensuring injected
+ // mouse events fall within the screen area.
+ // TODO(lambroslambrou): Move floor-control logic, and clamping to screen
+ // area, out of this class (crbug.com/96508).
+ Capturer* capturer_;
+
// Whether this client is authenticated.
bool authenticated_;