Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(324)

Side by Side Diff: ui/base/touch/touch_device_win.cc

Issue 10915175: CSS Media Query now reports touch-support accurately for Windows (retry) (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Turfing out copyright headers. Created 8 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698