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

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

Issue 10836349: CSS Media Query now reports touch-support accurately for Windows. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Patched namespace reference. 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
« no previous file with comments | « ui/base/touch/touch_device_win.h ('k') | ui/base/touch/touch_factory.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "ui/base/touch/touch_device_win.h"
6 #include "base/win/windows_version.h"
7 #include <windows.h>
8
9 namespace ui {
10 namespace base {
11
12 bool IsTouchDevicePresent() {
13 // Docs: http://msdn.microsoft.com/en-us/library/dd371581(VS.85).aspx
14 return (::base::win::GetVersion() >= ::base::win::VERSION_WIN7) &&
15 (::GetSystemMetrics(SM_DIGITIZER) > 0);
16 }
17
18 } // namespace base
19 } // namespace ui
OLDNEW
« no previous file with comments | « ui/base/touch/touch_device_win.h ('k') | ui/base/touch/touch_factory.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698