Chromium Code Reviews| 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 |