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

Unified Diff: remoting/host/client_session.cc

Issue 10223019: Add ClientDimensions message to control channel. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 8 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
Index: remoting/host/client_session.cc
diff --git a/remoting/host/client_session.cc b/remoting/host/client_session.cc
index 6115ea9ffd37f6f0693331d603db8b072f97be5c..154ff9a67739e2f380913e9dfaaf9a6a2e0694be 100644
--- a/remoting/host/client_session.cc
+++ b/remoting/host/client_session.cc
@@ -12,9 +12,6 @@
namespace remoting {
-using protocol::KeyEvent;
-using protocol::MouseEvent;
-
ClientSession::ClientSession(
EventHandler* event_handler,
scoped_ptr<protocol::ConnectionToClient> connection,
@@ -54,15 +51,15 @@ void ClientSession::InjectClipboardEvent(
host_event_stub_->InjectClipboardEvent(event);
}
-void ClientSession::InjectKeyEvent(const KeyEvent& event) {
+void ClientSession::InjectKeyEvent(const protocol::KeyEvent& event) {
DCHECK(CalledOnValidThread());
auth_input_filter_.InjectKeyEvent(event);
}
-void ClientSession::InjectMouseEvent(const MouseEvent& event) {
+void ClientSession::InjectMouseEvent(const protocol::MouseEvent& event) {
DCHECK(CalledOnValidThread());
- MouseEvent event_to_inject = event;
+ protocol::MouseEvent event_to_inject = event;
if (event.has_x() && event.has_y()) {
// In case the client sends events with off-screen coordinates, modify
// the event to lie within the current screen area. This is better than
@@ -78,6 +75,11 @@ void ClientSession::InjectMouseEvent(const MouseEvent& event) {
auth_input_filter_.InjectMouseEvent(event_to_inject);
}
+void ClientSession::SetClientDimensions(
+ const protocol::ClientDimensions& dimensions) {
+ // TODO(wez): Use the dimensions, e.g. to resize the host desktop to match.
+}
+
void ClientSession::OnConnectionAuthenticated(
protocol::ConnectionToClient* connection) {
DCHECK(CalledOnValidThread());

Powered by Google App Engine
This is Rietveld 408576698