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

Unified Diff: remoting/host/ipc_desktop_environment.cc

Issue 1033913003: Touch Events capability negotiation (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Pass supports_touch_events to classes that inherit BasicDesktopEnvironment Created 5 years, 7 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/ipc_desktop_environment.cc
diff --git a/remoting/host/ipc_desktop_environment.cc b/remoting/host/ipc_desktop_environment.cc
index d7b2cb608dbb1d381c35b2d5f93eab31fc5f36c1..37bd89fd2226a5ce4fc1cfb4c1f2a1c216f01f02 100644
--- a/remoting/host/ipc_desktop_environment.cc
+++ b/remoting/host/ipc_desktop_environment.cc
@@ -31,7 +31,8 @@ IpcDesktopEnvironment::IpcDesktopEnvironment(
scoped_refptr<base::SingleThreadTaskRunner> io_task_runner,
base::WeakPtr<ClientSessionControl> client_session_control,
base::WeakPtr<DesktopSessionConnector> desktop_session_connector,
- bool virtual_terminal) {
+ bool virtual_terminal,
+ bool supports_touch_events) {
DCHECK(caller_task_runner->BelongsToCurrentThread());
desktop_session_proxy_ = new DesktopSessionProxy(audio_task_runner,
@@ -40,7 +41,8 @@ IpcDesktopEnvironment::IpcDesktopEnvironment(
capture_task_runner,
client_session_control,
desktop_session_connector,
- virtual_terminal);
+ virtual_terminal,
+ supports_touch_events);
}
IpcDesktopEnvironment::~IpcDesktopEnvironment() {
@@ -94,7 +96,8 @@ IpcDesktopEnvironmentFactory::IpcDesktopEnvironmentFactory(
curtain_enabled_(false),
daemon_channel_(daemon_channel),
next_id_(0),
- connector_factory_(this) {
+ connector_factory_(this),
+ supports_touch_events_(false) {
}
IpcDesktopEnvironmentFactory::~IpcDesktopEnvironmentFactory() {
@@ -111,7 +114,8 @@ scoped_ptr<DesktopEnvironment> IpcDesktopEnvironmentFactory::Create(
io_task_runner_,
client_session_control,
connector_factory_.GetWeakPtr(),
- curtain_enabled_));
+ curtain_enabled_,
+ supports_touch_events_));
}
void IpcDesktopEnvironmentFactory::SetEnableCurtaining(bool enable) {

Powered by Google App Engine
This is Rietveld 408576698