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

Unified Diff: remoting/host/desktop_session_proxy.cc

Issue 12678008: Reworked the plumbing required to pass the client resolution to the desktop resizer. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 9 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/desktop_session_proxy.cc
diff --git a/remoting/host/desktop_session_proxy.cc b/remoting/host/desktop_session_proxy.cc
index 1e3ec991ff60467c34b8d25534b730007bb9c7c2..4649c94c0900a251160850e9d4efedeb7ad8b039 100644
--- a/remoting/host/desktop_session_proxy.cc
+++ b/remoting/host/desktop_session_proxy.cc
@@ -19,6 +19,7 @@
#include "remoting/host/ipc_event_executor.h"
#include "remoting/host/ipc_session_controller.h"
#include "remoting/host/ipc_video_frame_capturer.h"
+#include "remoting/host/screen_resolution.h"
#include "remoting/host/session_controller.h"
#include "remoting/proto/audio.pb.h"
#include "remoting/proto/control.pb.h"
@@ -279,6 +280,19 @@ void DesktopSessionProxy::StartEventExecutor(
client_clipboard_ = client_clipboard.Pass();
}
+void DesktopSessionProxy::SetScreenResolution(
Jamie 2013/03/15 18:33:24 For a CL that's primarily a global rename, I was s
alexeypa (please no reviews) 2013/03/15 20:30:41 This leaked from the follow up CL. I moved this co
+ const ScreenResolution& resolution) {
+ DCHECK(caller_task_runner_->BelongsToCurrentThread());
+
+ // Pass the client's resolution to the daemon.
+ if (desktop_session_connector_)
+ desktop_session_connector_->SetScreenResolution(this, resolution);
+
+ // Pass the client's resolution to the DesktopSessionAgent instance.
+ SendToDesktop(
+ new ChromotingNetworkDesktopMsg_SetScreenResolution(resolution));
+}
+
void DesktopSessionProxy::ConnectToDesktopSession(
base::WeakPtr<DesktopSessionConnector> desktop_session_connector,
bool virtual_terminal) {
@@ -288,7 +302,7 @@ void DesktopSessionProxy::ConnectToDesktopSession(
desktop_session_connector_ = desktop_session_connector;
desktop_session_connector_->ConnectTerminal(
- this, DesktopSessionParams(), virtual_terminal);
+ this, ScreenResolution(), virtual_terminal);
}
DesktopSessionProxy::~DesktopSessionProxy() {

Powered by Google App Engine
This is Rietveld 408576698