| 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);
|
| };
|
|
|
|
|