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

Unified Diff: ui/base/touch/touch_device_win.cc

Issue 806693008: Media queries: excluded non-pointing devices from pointer/hover (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: FIXME to TODO Created 6 years 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ui/base/touch/touch_device_ozone.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 91d2bf99f8932bc03cd63d1e40be8e9d7eb02371..04434fc16a9b369b0b69c0f268c967fa5fb4b911 100644
--- a/ui/base/touch/touch_device_win.cc
+++ b/ui/base/touch/touch_device_win.cc
@@ -30,7 +30,6 @@ int GetAvailablePointerTypes() {
GetSystemMetrics(SM_CMOUSEBUTTONS) > 0)
available_pointer_types |= POINTER_TYPE_FINE;
- // When no types are found, assume there's a POINTER_TYPE_NONE
if (available_pointer_types == 0)
available_pointer_types = POINTER_TYPE_NONE;
@@ -43,7 +42,7 @@ PointerType GetPrimaryPointerType() {
return POINTER_TYPE_FINE;
if (available_pointer_types & POINTER_TYPE_COARSE)
return POINTER_TYPE_COARSE;
- DCHECK(available_pointer_types & POINTER_TYPE_NONE);
+ DCHECK_EQ(available_pointer_types, POINTER_TYPE_NONE);
return POINTER_TYPE_NONE;
}
@@ -54,7 +53,6 @@ int GetAvailableHoverTypes() {
if (GetSystemMetrics(SM_MOUSEPRESENT) != 0)
available_hover_types |= HOVER_TYPE_HOVER;
- // When no types are found, assume there's a HOVER_TYPE_NONE
if (available_hover_types == 0)
available_hover_types = HOVER_TYPE_NONE;
@@ -67,7 +65,7 @@ HoverType GetPrimaryHoverType() {
return HOVER_TYPE_HOVER;
if (available_hover_types & HOVER_TYPE_ON_DEMAND)
return HOVER_TYPE_ON_DEMAND;
- DCHECK(available_hover_types & HOVER_TYPE_NONE);
+ DCHECK_EQ(available_hover_types, HOVER_TYPE_NONE);
return HOVER_TYPE_NONE;
}
« no previous file with comments | « ui/base/touch/touch_device_ozone.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698