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"
9 bool IsTouchDevicePresent() {
13 // Looks like the best we can do here is detect 1, 2+, or 5+ by
15 // FEATURE_TOUCHSCREEN (1),
16 // FEATURE_TOUCHSCREEN_MULTITOUCH (2),
17 // FEATURE_TOUCHSCREEN_MULTITOUCH_DISTINCT (2+), or
18 // FEATURE_TOUCHSCREEN_MULTITOUCH_JAZZHANDS (5+)
20 // Probably start from the biggest and detect down the list until we
21 // find one that's supported and return its value.
22 int MaxTouchPoints() {
23 return kMaxTouchPointsUnknown;