[SyncFS] Build indexes from FileTracker entries on disk.
[chromium-blink-merge.git] / ui / base / touch / touch_device_android.cc
blob604306c8bb38ff71a6072db2e6514cfa36fef31e
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #include "ui/base/touch/touch_device.h"
7 #include "jni/TouchDevice_jni.h"
9 namespace ui {
11 bool IsTouchDevicePresent() {
12 return true;
15 int MaxTouchPoints() {
16 JNIEnv* env = base::android::AttachCurrentThread();
17 jobject context = base::android::GetApplicationContext();
18 jint max_touch_points = Java_TouchDevice_maxTouchPoints(env, context);
19 return static_cast<int>(max_touch_points);
22 bool RegisterTouchDeviceAndroid(JNIEnv* env) {
23 return RegisterNativesImpl(env);
26 } // namespace ui