[SyncFS] Build indexes from FileTracker entries on disk.
[chromium-blink-merge.git] / ui / base / touch / touch_device.h
blobfd75ebcc9c6714e66ae918ab7a276e299d6b9bb9
1 // Copyright (c) 2012 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 #ifndef UI_BASE_TOUCH_TOUCH_DEVICE_H_
6 #define UI_BASE_TOUCH_TOUCH_DEVICE_H_
8 #include "ui/base/ui_base_export.h"
10 #if defined(OS_ANDROID)
11 #include <jni.h>
12 #endif
15 namespace ui {
17 // Returns true if a touch device is available.
18 UI_BASE_EXPORT bool IsTouchDevicePresent();
20 // Returns the maximum number of simultaneous touch contacts supported
21 // by the device. In the case of devices with multiple digitizers (e.g.
22 // multiple touchscreens), the value MUST be the maximum of the set of
23 // maximum supported contacts by each individual digitizer.
24 // For example, suppose a device has 3 touchscreens, which support 2, 5,
25 // and 10 simultaneous touch contacts, respectively. This returns 10.
26 // http://www.w3.org/TR/pointerevents/#widl-Navigator-maxTouchPoints
27 UI_BASE_EXPORT int MaxTouchPoints();
29 #if defined(OS_ANDROID)
30 bool RegisterTouchDeviceAndroid(JNIEnv* env);
31 #endif
33 } // namespace ui
35 #endif // UI_BASE_TOUCH_TOUCH_DEVICE_H_