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

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: changes from review Created 5 years, 8 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
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);
};

Powered by Google App Engine
This is Rietveld 408576698