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

Unified Diff: remoting/host/client_session.h

Issue 7604007: Make floor-control more robust. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Remove logs, fix comments. Created 9 years, 4 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') | no next file with comments »
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 dded94a00b944c1c657f409be9a384d2989a486f..b8339fbadd3ccc373e80c8b3bc2492aeeda948ca 100644
--- a/remoting/host/client_session.h
+++ b/remoting/host/client_session.h
@@ -113,7 +113,12 @@ class ClientSession : public protocol::HostStub,
// State to control remote input blocking while the local pointer is in use.
uint32 remote_mouse_button_state_;
- std::list<gfx::Point> recent_remote_mouse_positions_;
+
+ // Queue of recently-injected mouse positions. This is used to detect whether
+ // mouse events from the local input monitor are echoes of injected positions,
+ // or genuine mouse movements of a local input device.
+ std::list<gfx::Point> injected_mouse_positions_;
+
base::Time latest_local_input_time_;
std::set<int> pressed_keys_;
« no previous file with comments | « no previous file | remoting/host/client_session.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698