| 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..482e61ea82aef8942749e39ff6ff68c2efdacf57
|
| --- /dev/null
|
| +++ b/ui/base/touch/touch_device_win.cc
|
| @@ -0,0 +1,19 @@
|
| +// Copyright (c) 2012 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 "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
|
|
|