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

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

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/touch/touch_device.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 604306c8bb38ff71a6072db2e6514cfa36fef31e..de05a4b9f9f042acb9e5cc5dbd7735b3253667d1 100644
--- a/ui/base/touch/touch_device_android.cc
+++ b/ui/base/touch/touch_device_android.cc
@@ -19,6 +19,26 @@ int MaxTouchPoints() {
return static_cast<int>(max_touch_points);
}
+int AvailablePointerTypes() {
+ JNIEnv* env = base::android::AttachCurrentThread();
+ jobject context = base::android::GetApplicationContext();
+ jint available_pointer_types =
+ Java_TouchDevice_availablePointerTypes(env, context);
+ return static_cast<int>(available_pointer_types);
+}
+
+PointerType PrimaryPointerType() {
+ return PointerTypeCoarse;
+}
+
+int AvailableHoverTypes() {
+ return 0;
+}
+
+HoverType PrimaryHoverType() {
+ return HoverTypeNone;
+}
+
bool RegisterTouchDeviceAndroid(JNIEnv* env) {
return RegisterNativesImpl(env);
}
« no previous file with comments | « ui/base/touch/touch_device.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698