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

Unified Diff: ui/base/touch/touch_device.h

Issue 696713002: Pointer/hover media query support: platform-dependent changes (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased, cleaned up TouchDevice.java Created 6 years, 1 month 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.h
diff --git a/ui/base/touch/touch_device.h b/ui/base/touch/touch_device.h
index fd75ebcc9c6714e66ae918ab7a276e299d6b9bb9..0045dbb3de1a16d7e78951331425bcf6b254bff7 100644
--- a/ui/base/touch/touch_device.h
+++ b/ui/base/touch/touch_device.h
@@ -26,6 +26,29 @@ 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,
mkosiba (inactive) 2014/11/10 22:00:13 nit: Though the Google C++ Style Guide now says to
mustaq 2014/11/26 16:28:45 Done.
+ PointerTypeCoarse = 2,
+ PointerTypeFine = 4
+};
+
+// Bit field values indicating what kind of pointer types are available. These
+// enums must match content::HoverType enums.
+enum HoverType {
+ HoverTypeNone = 1,
+ HoverTypeOnDemand = 2,
+ HoverTypeHover = 4
+};
+
+UI_BASE_EXPORT int AvailablePointerTypes();
+UI_BASE_EXPORT PointerType PrimaryPointerType();
+UI_BASE_EXPORT int AvailableHoverTypes();
+UI_BASE_EXPORT HoverType PrimaryHoverType();
+
#if defined(OS_ANDROID)
bool RegisterTouchDeviceAndroid(JNIEnv* env);
#endif

Powered by Google App Engine
This is Rietveld 408576698