| Index: remoting/host/ipc_desktop_environment.h
|
| diff --git a/remoting/host/ipc_desktop_environment.h b/remoting/host/ipc_desktop_environment.h
|
| index 7f3186fb2a853cdb6b3142cf436cc5038981ed80..72f0c10a58cb9cfeffddd4244179952f733f6209 100644
|
| --- a/remoting/host/ipc_desktop_environment.h
|
| +++ b/remoting/host/ipc_desktop_environment.h
|
| @@ -44,7 +44,8 @@
|
| 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.
|
| @@ -98,6 +99,11 @@
|
| 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_;
|
| @@ -124,6 +130,10 @@
|
| // allocated every second.
|
| int next_id_ = 0;
|
|
|
| + // Defines whether desktop environments created by this factory will support
|
| + // touch events by default.
|
| + bool supports_touch_events_ = false;
|
| +
|
| // Factory for weak pointers to DesktopSessionConnector interface.
|
| base::WeakPtrFactory<DesktopSessionConnector> connector_factory_;
|
|
|
|
|