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

Unified Diff: ui/android/java/src/org/chromium/ui/base/TouchDevice.java

Issue 2673963002: Drop hover:on-demand support & let touch-screens report "none" instead. (Closed)
Patch Set: Fixed a "yikes!" 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
« no previous file with comments | « third_party/WebKit/public/platform/PointerProperties.h ('k') | ui/base/touch/touch_device.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/android/java/src/org/chromium/ui/base/TouchDevice.java
diff --git a/ui/android/java/src/org/chromium/ui/base/TouchDevice.java b/ui/android/java/src/org/chromium/ui/base/TouchDevice.java
index 86d6a1358d82430501aaf8e4fdb57acb1e14dfec..b28503735e3658f422f99c104c5f6d82a507eeef 100644
--- a/ui/android/java/src/org/chromium/ui/base/TouchDevice.java
+++ b/ui/android/java/src/org/chromium/ui/base/TouchDevice.java
@@ -49,10 +49,9 @@ public class TouchDevice {
}
/**
- * @return the pointer-types supported by the device, as the union (bitwise OR) of PointerType
- * bits in result[0]
- * the hover-types supported by the device, as the union (bitwise OR) of HoverType bits
- * in result[1].
+ * @return an array of two ints: result[0] represents the pointer-types and result[1] represents
+ * the hover-types supported by the device, where each int is the union (bitwise OR) of
+ * corresponding type (PointerType/HoverType) bits.
*/
@CalledByNative
private static int[] availablePointerAndHoverTypes(Context context) {
@@ -80,7 +79,7 @@ public class TouchDevice {
result[1] |= HoverType.HOVER;
} else if (hasSource(sources, InputDevice.SOURCE_STYLUS)
|| hasSource(sources, InputDevice.SOURCE_TOUCHSCREEN)) {
- result[1] |= HoverType.ON_DEMAND;
+ result[1] |= HoverType.NONE;
}
// Remaining InputDevice sources: SOURCE_DPAD, SOURCE_GAMEPAD, SOURCE_JOYSTICK,
« no previous file with comments | « third_party/WebKit/public/platform/PointerProperties.h ('k') | ui/base/touch/touch_device.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698