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

Unified Diff: remoting/host/input_injector_mac.cc

Issue 1033913003: Touch Events capability negotiation (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: should fix mac build 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/input_injector_mac.cc
diff --git a/remoting/host/input_injector_mac.cc b/remoting/host/input_injector_mac.cc
index fe6411bc55e9f732b73e4233a8b29c47d25aa294..fc2309709a9f1ea606588ce5a81ba883827df1f8 100644
--- a/remoting/host/input_injector_mac.cc
+++ b/remoting/host/input_injector_mac.cc
@@ -74,6 +74,7 @@ class InputInjectorMac : public InputInjector {
// InputInjector interface.
void Start(scoped_ptr<protocol::ClipboardStub> client_clipboard) override;
+ bool CanInjectTouch() override;
private:
// The actual implementation resides in InputInjectorMac::Core class.
@@ -147,6 +148,10 @@ void InputInjectorMac::Start(
core_->Start(client_clipboard.Pass());
}
+bool InputInjectorMac::CanInjectTouch() {
+ return InputInjector::DefaultCanInjectTouch();
+}
+
InputInjectorMac::Core::Core(
scoped_refptr<base::SingleThreadTaskRunner> task_runner)
: task_runner_(task_runner),
@@ -340,10 +345,16 @@ InputInjectorMac::Core::~Core() {}
} // namespace
+// static
scoped_ptr<InputInjector> InputInjector::Create(
scoped_refptr<base::SingleThreadTaskRunner> main_task_runner,
scoped_refptr<base::SingleThreadTaskRunner> ui_task_runner) {
return make_scoped_ptr(new InputInjectorMac(main_task_runner));
}
+// static
+bool InputInjector::DefaultCanInjectTouch() {
+ return false;
+}
+
} // namespace remoting

Powered by Google App Engine
This is Rietveld 408576698