Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 #include "ui/base/touch/touch_device_win.h" | |
| 2 #include "base/win/windows_version.h" | |
| 3 #include <windows.h> | |
| 4 | |
| 5 namespace ui { | |
| 6 namespace base { | |
| 7 | |
| 8 bool IsTouchDevicePresent() { | |
| 9 // Docs: http://msdn.microsoft.com/en-us/library/dd371581(VS.85).aspx | |
| 10 return (::base::win::GetVersion() >= ::base::win::VERSION_WIN7) && | |
| 11 (::GetSystemMetrics(SM_DIGITIZER) > 0); | |
| 12 } | |
| 13 | |
| 14 } // namespace base | |
| 15 } // namespace ui | |
| OLD | NEW |