| Index: ui/base/touch/touch_device_win.cc
|
| diff --git a/ui/base/touch/touch_device_win.cc b/ui/base/touch/touch_device_win.cc
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..cfcd4b7681f5651a0e28d5fa27cde701833e294d
|
| --- /dev/null
|
| +++ b/ui/base/touch/touch_device_win.cc
|
| @@ -0,0 +1,15 @@
|
| +#include "ui/base/touch/touch_device_win.h"
|
| +#include "base/win/windows_version.h"
|
| +#include <windows.h>
|
| +
|
| +namespace ui {
|
| +namespace base {
|
| +
|
| +bool IsTouchDevicePresent() {
|
| + // Docs: http://msdn.microsoft.com/en-us/library/dd371581(VS.85).aspx
|
| + return (::base::win::GetVersion() >= ::base::win::VERSION_WIN7) &&
|
| + (::GetSystemMetrics(SM_DIGITIZER) > 0);
|
| +}
|
| +
|
| +} // namespace base
|
| +} // namespace ui
|
|
|