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

Unified Diff: remoting/host/ipc_desktop_environment.h

Issue 1033913003: Touch Events capability negotiation (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: change setter to public and add license header Created 5 years, 6 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/input_injector_x11.cc ('k') | remoting/host/ipc_desktop_environment.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/host/ipc_desktop_environment.h
diff --git a/remoting/host/ipc_desktop_environment.h b/remoting/host/ipc_desktop_environment.h
index b1dd8611b5f19a3c8e76b1c938d1582c8329d344..fd8a6667844ba5b9e4a528f8b14cb09915722857 100644
--- a/remoting/host/ipc_desktop_environment.h
+++ b/remoting/host/ipc_desktop_environment.h
@@ -45,7 +45,8 @@ class IpcDesktopEnvironment : public DesktopEnvironment {
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);
~IpcDesktopEnvironment() override;
// DesktopEnvironment implementation.
@@ -100,6 +101,11 @@ class IpcDesktopEnvironmentFactory
IPC::PlatformFileForTransit desktop_pipe) override;
void OnTerminalDisconnected(int terminal_id) override;
+ // Enables or disables touch events capability.
+ void set_supports_touch_events(bool enable) {
+ supports_touch_events_ = enable;
+ }
+
private:
// Used to run the audio capturer.
scoped_refptr<base::SingleThreadTaskRunner> audio_task_runner_;
@@ -132,6 +138,10 @@ class IpcDesktopEnvironmentFactory
// Factory for weak pointers to DesktopSessionConnector interface.
base::WeakPtrFactory<DesktopSessionConnector> connector_factory_;
+ // If true then the newly Create()ed desktop environments support touch
+ // events.
+ bool supports_touch_events_;
+
DISALLOW_COPY_AND_ASSIGN(IpcDesktopEnvironmentFactory);
};
« no previous file with comments | « remoting/host/input_injector_x11.cc ('k') | remoting/host/ipc_desktop_environment.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698