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

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

Issue 694533010: [NOT FOR REVIEW] Working cpp enum example (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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
« no previous file with comments | « ui/base/BUILD.gn ('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.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,
+ 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
« no previous file with comments | « ui/base/BUILD.gn ('k') | ui/base/touch/touch_device_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698