Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(141)

Unified Diff: remoting/host/client_session.h

Issue 9465035: Move ClientSession's input logic into separate components. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | remoting/host/client_session.cc » ('j') | remoting/host/client_session.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/host/client_session.h
diff --git a/remoting/host/client_session.h b/remoting/host/client_session.h
index 44607c47b1bed2f308a89d77d844ae0804f13862..12c74b3c4d5d6531181f1410b371448b6e9250e6 100644
--- a/remoting/host/client_session.h
+++ b/remoting/host/client_session.h
@@ -13,6 +13,7 @@
#include "remoting/protocol/connection_to_client.h"
#include "remoting/protocol/host_stub.h"
#include "remoting/protocol/input_stub.h"
+#include "remoting/protocol/key_event_tracker.h"
#include "third_party/skia/include/core/SkPoint.h"
namespace remoting {
@@ -130,8 +131,8 @@ class ClientSession : public protocol::HostStub,
std::string client_jid_;
- // The input stub to which this object delegates.
- protocol::InputStub* input_stub_;
+ // Key event tracker to allow us to release all pressed keys on disconnect.
+ protocol::KeyEventTracker key_tracker_;
// Capturer, used to determine current screen size for ensuring injected
// mouse events fall within the screen area.
@@ -160,10 +161,6 @@ class ClientSession : public protocol::HostStub,
base::Time latest_local_input_time_;
- // Set of keys that are currently pressed down by the user. This is used so
- // we can release them if the user disconnects.
- std::set<int> pressed_keys_;
-
DISALLOW_COPY_AND_ASSIGN(ClientSession);
};
« no previous file with comments | « no previous file | remoting/host/client_session.cc » ('j') | remoting/host/client_session.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698