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

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

Issue 2673963002: Drop hover:on-demand support & let touch-screens report "none" instead. (Closed)
Patch Set: Fixed tests. Created 3 years, 9 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 side-by-side diff with in-line comments
Download patch
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 b8a458e8300467d6cd711fc4745f9cb7cf19f578..e46de92442e5d68ef33c7498ba84d3c59291c3f2 100644
--- a/ui/base/touch/touch_device_android.cc
+++ b/ui/base/touch/touch_device_android.cc
@@ -45,8 +45,6 @@ PointerType GetPrimaryPointerType(int available_pointer_types) {
}
HoverType GetPrimaryHoverType(int available_hover_types) {
- if (available_hover_types & HOVER_TYPE_ON_DEMAND)
- return HOVER_TYPE_ON_DEMAND;
Rick Byers 2017/03/21 20:47:17 There's a subtle change in semantics here. Note t
mustaq 2017/03/22 14:31:29 Yes, I noted this subtle change in #msg25 above bu
if (available_hover_types & HOVER_TYPE_HOVER)
return HOVER_TYPE_HOVER;
DCHECK_EQ(available_hover_types, HOVER_TYPE_NONE);
Rick Byers 2017/03/21 20:47:17 This isn't a new problem, but I believe this DCHEC
mustaq 2017/03/22 14:31:29 Did you mean some Java code other than TouchDevice
Rick Byers 2017/03/23 19:27:32 Ah, sorry - I missed the code that was overwriting

Powered by Google App Engine
This is Rietveld 408576698