Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #include "remoting/host/multi_touch_capability.h" | |
| 6 | |
| 7 #include "base/logging.h" | |
| 8 | |
| 9 #if defined(OS_WIN) | |
| 10 #include "remoting/host/touch_injector_win.h" | |
| 11 #endif // defined(OS_WIN) | |
| 12 | |
| 13 namespace remoting { | |
| 14 | |
| 15 bool MultiTouchCapable() { | |
| 16 #if defined(OS_WIN) | |
| 17 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>::
| |
| 18 #else // !defined(OS_WIN) | |
| 19 return false; | |
| 20 #endif // defined(OS_WIN) | |
| 21 } | |
| 22 | |
| 23 } // namespace remoting | |
| OLD | NEW |