| 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);
|
| }
|
|
|