Index: ui/base/touch/touch_device.h |
diff --git a/ui/base/touch/touch_device.h b/ui/base/touch/touch_device.h |
index fd75ebcc9c6714e66ae918ab7a276e299d6b9bb9..85c1aaa1ceee53233f13a2c5473fcd7c7064aff9 100644 |
--- a/ui/base/touch/touch_device.h |
+++ b/ui/base/touch/touch_device.h |
@@ -26,6 +26,30 @@ UI_BASE_EXPORT bool IsTouchDevicePresent(); |
// http://www.w3.org/TR/pointerevents/#widl-Navigator-maxTouchPoints |
UI_BASE_EXPORT int MaxTouchPoints(); |
+// Bit field values indicating what kind of pointer types are available. These |
+// enum must match content::PointerType enums. |
+// GENERATED_JAVA_ENUM_PACKAGE: org.chromium.ui.base |
+// GENERATED_JAVA_PREFIX_TO_STRIP: PointerType |
+enum PointerType { |
+ PointerTypeNone = 1 << 0, |
+ PointerTypeFirst = PointerTypeNone, |
jdduke (slow)
2014/11/11 15:59:30
I think these comments are slightly out-of-date, a
mustaq
2014/11/11 17:23:52
- Updated the comments.
- Removed the CPP-Java-enu
|
+ PointerTypeCoarse = 1 << 1, |
+ PointerTypeFine = 1 << 2, |
+ PointerTypeLast = PointerTypeFine |
+}; |
+ |
+// Bit field values indicating what kind of pointer types are available. These |
+// enums must match content::HoverType enums. |
+// GENERATED_JAVA_ENUM_PACKAGE: org.chromium.ui.base |
+// GENERATED_JAVA_PREFIX_TO_STRIP: HoverType |
+enum HoverType { |
+ HoverTypeNone = 1 << 0, |
+ HoverTypeFirst = HoverTypeNone, |
+ HoverTypeOnDemand = 1 << 1, |
+ HoverTypeHover = 1 << 2, |
+ HoverTypeLast = HoverTypeHover |
+}; |
+ |
#if defined(OS_ANDROID) |
bool RegisterTouchDeviceAndroid(JNIEnv* env); |
#endif |