diff options
author | girard@chromium.org <girard@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-01-24 21:17:35 +0000 |
---|---|---|
committer | girard@chromium.org <girard@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-01-24 21:17:35 +0000 |
commit | 900efd6f8aa96117ed241fef63587143249f8d85 (patch) | |
tree | b5ccc310e9c477d5a260b9261a40a9266a7eb9f6 /base/win | |
parent | f9335b44c7d59e37a7e43167dff40f458cd43d62 (diff) | |
download | chromium_src-900efd6f8aa96117ed241fef63587143249f8d85.zip chromium_src-900efd6f8aa96117ed241fef63587143249f8d85.tar.gz chromium_src-900efd6f8aa96117ed241fef63587143249f8d85.tar.bz2 |
Refactor to remove duplicated function ui::IsTouchDevicePresent
BUG=148699
Review URL: https://chromiumcodereview.appspot.com/11049026
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@178646 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/win')
-rw-r--r-- | base/win/metro.cc | 6 | ||||
-rw-r--r-- | base/win/metro.h | 3 |
2 files changed, 0 insertions, 9 deletions
diff --git a/base/win/metro.cc b/base/win/metro.cc index 22bc5e8..c9f16a9 100644 --- a/base/win/metro.cc +++ b/base/win/metro.cc @@ -111,12 +111,6 @@ wchar_t* LocalAllocAndCopyString(const string16& src) { return dest; } -bool IsTouchEnabled() { - int value = GetSystemMetrics(SM_DIGITIZER); - return (value & (NID_READY | NID_INTEGRATED_TOUCH)) == - (NID_READY | NID_INTEGRATED_TOUCH); -} - bool IsParentalControlActivityLoggingOn() { // Query this info on Windows Vista and above. if (base::win::GetVersion() < base::win::VERSION_VISTA) diff --git a/base/win/metro.h b/base/win/metro.h index 9354de8..8c7f3f9 100644 --- a/base/win/metro.h +++ b/base/win/metro.h @@ -91,9 +91,6 @@ BASE_EXPORT void SetForceToUseTSF(); // copying the src to it. BASE_EXPORT wchar_t* LocalAllocAndCopyString(const string16& src); -// Returns true if the screen supports touch. -BASE_EXPORT bool IsTouchEnabled(); - // Returns true if Windows Parental control activity logging is enabled. This // feature is available on Windows Vista and beyond. // This function should ideally be called on the UI thread. |