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

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: Add missing HostMockStub method. 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
« no previous file with comments | « remoting/host/client_session.h ('k') | remoting/proto/control.proto » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/host/client_session.cc
diff --git a/remoting/host/client_session.cc b/remoting/host/client_session.cc
index 6115ea9ffd37f6f0693331d603db8b072f97be5c..d45cda4cd683dfb2335221a9165e40c5b4ae945f 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::NotifyClientDimensions(
+ 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());
« no previous file with comments | « remoting/host/client_session.h ('k') | remoting/proto/control.proto » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698