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

Side by Side Diff: ui/base/touch/touch_device.h

Issue 186943002: Plumbing maxTouchPoints for Android. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 9 months 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef UI_BASE_TOUCH_TOUCH_DEVICE_H_ 5 #ifndef UI_BASE_TOUCH_TOUCH_DEVICE_H_
6 #define UI_BASE_TOUCH_TOUCH_DEVICE_H_ 6 #define UI_BASE_TOUCH_TOUCH_DEVICE_H_
7 7
8 #include "ui/base/ui_base_export.h" 8 #include "ui/base/ui_base_export.h"
9 9
10 namespace ui { 10 namespace ui {
11 11
12 // TODO(sblom): This is non-standard, and should be removed before
13 // RuntimeEnabledFlags::PointerEventsMaxTouchPoints is marked stable.
14 // Tracked by: http://crbug.com/308649
15 const int kMaxTouchPointsUnknown = -1;
16
17 // Returns true if a touch device is available. 12 // Returns true if a touch device is available.
18 UI_BASE_EXPORT bool IsTouchDevicePresent(); 13 UI_BASE_EXPORT bool IsTouchDevicePresent();
19 14
20 // Returns the maximum number of simultaneous touch contacts supported 15 // Returns the maximum number of simultaneous touch contacts supported
21 // by the device. In the case of devices with multiple digitizers (e.g. 16 // 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 17 // multiple touchscreens), the value MUST be the maximum of the set of
23 // maximum supported contacts by each individual digitizer. 18 // maximum supported contacts by each individual digitizer.
24 // For example, suppose a device has 3 touchscreens, which support 2, 5, 19 // For example, suppose a device has 3 touchscreens, which support 2, 5,
25 // and 10 simultaneous touch contacts, respectively. This returns 10. 20 // and 10 simultaneous touch contacts, respectively. This returns 10.
26 // http://www.w3.org/TR/pointerevents/#widl-Navigator-maxTouchPoints 21 // http://www.w3.org/TR/pointerevents/#widl-Navigator-maxTouchPoints
27 UI_BASE_EXPORT int MaxTouchPoints(); 22 UI_BASE_EXPORT int MaxTouchPoints();
28 23
29 } // namespace ui 24 } // namespace ui
30 25
31 #endif // UI_BASE_TOUCH_TOUCH_DEVICE_H_ 26 #endif // UI_BASE_TOUCH_TOUCH_DEVICE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698