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

Unified Diff: ui/base/touch/touch_device.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.h ('k') | ui/base/touch/touch_device_android.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/base/touch/touch_device.cc
diff --git a/ui/base/touch/touch_device.cc b/ui/base/touch/touch_device.cc
index f232563208f570900d1c4e620db24d9d6dc981f0..8aa63404d8736eba1d6f25611ca07f228afa9db8 100644
--- a/ui/base/touch/touch_device.cc
+++ b/ui/base/touch/touch_device.cc
@@ -17,22 +17,22 @@ int MaxTouchPoints() {
}
int GetAvailablePointerTypes() {
- // Assume a non-touch-device with a keyboard and a mouse
- return POINTER_TYPE_FINE | POINTER_TYPE_NONE;
+ // Assume a non-touch-device with a mouse
+ return POINTER_TYPE_FINE;
}
PointerType GetPrimaryPointerType() {
- // Assume a non-touch-device with a keyboard and a mouse
+ // Assume a non-touch-device with a mouse
return POINTER_TYPE_FINE;
}
int GetAvailableHoverTypes() {
- // Assume a non-touch-device with a keyboard and a mouse
- return HOVER_TYPE_HOVER | HOVER_TYPE_NONE;
+ // Assume a non-touch-device with a mouse
+ return HOVER_TYPE_HOVER;
}
HoverType GetPrimaryHoverType() {
- // Assume a non-touch-device with a keyboard and a mouse
+ // Assume a non-touch-device with a mouse
return HOVER_TYPE_HOVER;
}
« no previous file with comments | « ui/base/touch/touch_device.h ('k') | ui/base/touch/touch_device_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698