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..f6a7168d41c09279afb1a1e8f4f96d263ccd917f 100644 |
--- a/remoting/host/basic_desktop_environment.h |
+++ b/remoting/host/basic_desktop_environment.h |
@@ -64,6 +64,12 @@ class BasicDesktopEnvironment : public DesktopEnvironment { |
return desktop_capture_options_.get(); |
} |
+ // Enables or disables raw touch events capability. |
+ void set_supports_raw_touch_events(bool enable) { |
+ supports_raw_touch_events_ = enable; |
+ } |
+ bool supports_raw_touch_events() const { return supports_raw_touch_events_; } |
+ |
private: |
// Task runner on which methods of DesktopEnvironment interface should be |
// called. |
@@ -82,6 +88,8 @@ class BasicDesktopEnvironment : public DesktopEnvironment { |
// find build errors. |
scoped_ptr<webrtc::DesktopCaptureOptions> desktop_capture_options_; |
+ bool supports_raw_touch_events_; |
+ |
DISALLOW_COPY_AND_ASSIGN(BasicDesktopEnvironment); |
}; |
@@ -110,6 +118,14 @@ class BasicDesktopEnvironmentFactory : public DesktopEnvironmentFactory { |
return ui_task_runner_; |
} |
+ // Enables or disables raw touch events capability. |
+ void set_supports_raw_touch_events(bool enable) { |
+ supports_raw_touch_events_ = enable; |
+ } |
+ |
+ protected: |
Wez
2015/04/23 22:10:25
No need for another protected: here; the block abo
Rintaro Kuroiwa
2015/04/24 01:55:02
Oops. Removed.
|
+ bool supports_raw_touch_events() const { return supports_raw_touch_events_; } |
+ |
private: |
// Task runner on which methods of DesktopEnvironmentFactory interface should |
// be called. |
@@ -121,6 +137,8 @@ class BasicDesktopEnvironmentFactory : public DesktopEnvironmentFactory { |
// Used to run UI code. |
scoped_refptr<base::SingleThreadTaskRunner> ui_task_runner_; |
+ bool supports_raw_touch_events_; |
+ |
DISALLOW_COPY_AND_ASSIGN(BasicDesktopEnvironmentFactory); |
}; |