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 |
index 0a0025143abf132f06468aeda2d104c849b1e4cf..f1f4f6ea78067e4319ea997ff7d22912ffdb8830 100644 |
--- a/ui/base/touch/touch_device_win.cc |
+++ b/ui/base/touch/touch_device_win.cc |
@@ -9,9 +9,9 @@ |
namespace ui { |
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); |
+ int value = GetSystemMetrics(SM_DIGITIZER); |
+ return (value & (NID_READY | NID_INTEGRATED_TOUCH)) == |
+ (NID_READY | NID_INTEGRATED_TOUCH); |
} |
} // namespace ui |