| Index: remoting/host/basic_desktop_environment.h
|
| diff --git a/remoting/host/basic_desktop_environment.h b/remoting/host/basic_desktop_environment.h
|
| index 6b6b8e25ede0e94a14c63af789926a45a7a8e130..2449327b76aabe4b85db919ab17837e194ad5fb9 100644
|
| --- a/remoting/host/basic_desktop_environment.h
|
| +++ b/remoting/host/basic_desktop_environment.h
|
| @@ -46,7 +46,8 @@ class BasicDesktopEnvironment : public DesktopEnvironment {
|
| BasicDesktopEnvironment(
|
| scoped_refptr<base::SingleThreadTaskRunner> caller_task_runner,
|
| scoped_refptr<base::SingleThreadTaskRunner> input_task_runner,
|
| - scoped_refptr<base::SingleThreadTaskRunner> ui_task_runner);
|
| + scoped_refptr<base::SingleThreadTaskRunner> ui_task_runner,
|
| + bool supports_touch_events);
|
|
|
| scoped_refptr<base::SingleThreadTaskRunner> caller_task_runner() const {
|
| return caller_task_runner_;
|
| @@ -82,6 +83,9 @@ class BasicDesktopEnvironment : public DesktopEnvironment {
|
| // find build errors.
|
| scoped_ptr<webrtc::DesktopCaptureOptions> desktop_capture_options_;
|
|
|
| + // True if the touch events capability should be offered.
|
| + const bool supports_touch_events_;
|
| +
|
| DISALLOW_COPY_AND_ASSIGN(BasicDesktopEnvironment);
|
| };
|
|
|
| @@ -110,6 +114,11 @@ class BasicDesktopEnvironmentFactory : public DesktopEnvironmentFactory {
|
| return ui_task_runner_;
|
| }
|
|
|
| + void set_supports_touch_events(bool enable) {
|
| + supports_touch_events_ = enable;
|
| + }
|
| + bool supports_touch_events() const { return supports_touch_events_; }
|
| +
|
| private:
|
| // Task runner on which methods of DesktopEnvironmentFactory interface should
|
| // be called.
|
| @@ -121,6 +130,10 @@ class BasicDesktopEnvironmentFactory : public DesktopEnvironmentFactory {
|
| // Used to run UI code.
|
| scoped_refptr<base::SingleThreadTaskRunner> ui_task_runner_;
|
|
|
| + // True if the touch events capability should be offered by the
|
| + // DesktopEnvironment instances.
|
| + bool supports_touch_events_;
|
| +
|
| DISALLOW_COPY_AND_ASSIGN(BasicDesktopEnvironmentFactory);
|
| };
|
|
|
|
|