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

Unified Diff: remoting/protocol/host_control_dispatcher.cc

Issue 13932020: Set the initial resolution of an RDP session to the client screen resolution if it is available. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix Clang Created 7 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/protocol/host_control_dispatcher.h ('k') | remoting/protocol/host_stub.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/protocol/host_control_dispatcher.cc
diff --git a/remoting/protocol/host_control_dispatcher.cc b/remoting/protocol/host_control_dispatcher.cc
index db041b4c5510e7b0b87c1c7612d72380fa50d4b3..a213ac6eeb3090c2cb5c29982420b425bb41fd6d 100644
--- a/remoting/protocol/host_control_dispatcher.cc
+++ b/remoting/protocol/host_control_dispatcher.cc
@@ -32,6 +32,13 @@ void HostControlDispatcher::OnInitialized() {
writer_.Init(channel(), BufferedSocketWriter::WriteFailedCallback());
}
+void HostControlDispatcher::SetCapabilities(
+ const Capabilities& capabilities) {
+ ControlMessage message;
+ message.mutable_capabilities()->CopyFrom(capabilities);
+ writer_.Write(SerializeAndFrameMessage(message), base::Closure());
+}
+
void HostControlDispatcher::InjectClipboardEvent(const ClipboardEvent& event) {
ControlMessage message;
message.mutable_clipboard_event()->CopyFrom(event);
@@ -60,6 +67,8 @@ void HostControlDispatcher::OnMessageReceived(
host_stub_->ControlVideo(message->video_control());
} else if (message->has_audio_control()) {
host_stub_->ControlAudio(message->audio_control());
+ } else if (message->has_capabilities()) {
+ host_stub_->SetCapabilities(message->capabilities());
} else {
LOG(WARNING) << "Unknown control message received.";
}
« no previous file with comments | « remoting/protocol/host_control_dispatcher.h ('k') | remoting/protocol/host_stub.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698