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

Unified Diff: ui/base/touch/touch_device_android.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.cc ('k') | ui/base/touch/touch_device_aurax11.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/base/touch/touch_device_android.cc
diff --git a/ui/base/touch/touch_device_android.cc b/ui/base/touch/touch_device_android.cc
index fc5d3ac54e638c2a695f5c7c1bb844503a8f1005..5754c65c005901c2fdefa4c47c61b7d3d5c9c2f7 100644
--- a/ui/base/touch/touch_device_android.cc
+++ b/ui/base/touch/touch_device_android.cc
@@ -34,7 +34,7 @@ PointerType GetPrimaryPointerType() {
return POINTER_TYPE_COARSE;
if (available_pointer_types & POINTER_TYPE_FINE)
return POINTER_TYPE_FINE;
- DCHECK(available_pointer_types & POINTER_TYPE_NONE);
+ DCHECK_EQ(available_pointer_types, POINTER_TYPE_NONE);
return POINTER_TYPE_NONE;
}
@@ -52,7 +52,7 @@ HoverType GetPrimaryHoverType() {
return HOVER_TYPE_ON_DEMAND;
if (available_hover_types & HOVER_TYPE_HOVER)
return HOVER_TYPE_HOVER;
- 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.cc ('k') | ui/base/touch/touch_device_aurax11.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698