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

Unified Diff: remoting/host/multi_touch_capability.cc

Issue 1033913003: Touch Events capability negotiation (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 9 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/multi_touch_capability.cc
diff --git a/remoting/host/multi_touch_capability.cc b/remoting/host/multi_touch_capability.cc
new file mode 100644
index 0000000000000000000000000000000000000000..389a02a400408013d49f0a2f210d0c52ecd55d2f
--- /dev/null
+++ b/remoting/host/multi_touch_capability.cc
@@ -0,0 +1,23 @@
+// Copyright 2015 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "remoting/host/multi_touch_capability.h"
+
+#include "base/logging.h"
+
+#if defined(OS_WIN)
+#include "remoting/host/touch_injector_win.h"
+#endif // defined(OS_WIN)
+
+namespace remoting {
+
+bool MultiTouchCapable() {
+#if defined(OS_WIN)
+ return TouchInjectorWinDelegate::Create().get() != nullptr;
Wez 2015/03/30 17:10:07 nit: You can test a scoped_ptr<> directly as a boo
Rintaro Kuroiwa 2015/04/08 03:27:43 Done. Also moved this to InputInjector<platform>::
+#else // !defined(OS_WIN)
+ return false;
+#endif // defined(OS_WIN)
+}
+
+} // namespace remoting

Powered by Google App Engine
This is Rietveld 408576698