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

Unified Diff: remoting/host/basic_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/client/plugin/chromoting_instance.cc ('k') | remoting/host/basic_desktop_environment.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..a7c56139e0b6b6ac576a4fa89af899e263c16c3c 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);
};
@@ -97,6 +101,10 @@ class BasicDesktopEnvironmentFactory : public DesktopEnvironmentFactory {
// DesktopEnvironmentFactory implementation.
bool SupportsAudioCapture() const override;
+ void set_supports_touch_events(bool enable) {
+ supports_touch_events_ = enable;
+ }
+
protected:
scoped_refptr<base::SingleThreadTaskRunner> caller_task_runner() const {
return caller_task_runner_;
@@ -110,6 +118,8 @@ class BasicDesktopEnvironmentFactory : public DesktopEnvironmentFactory {
return ui_task_runner_;
}
+ bool supports_touch_events() const { return supports_touch_events_; }
+
private:
// Task runner on which methods of DesktopEnvironmentFactory interface should
// be called.
@@ -121,6 +131,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);
};
« no previous file with comments | « remoting/client/plugin/chromoting_instance.cc ('k') | remoting/host/basic_desktop_environment.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698