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

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

Issue 26764002: Chromium side of maxTouchPoints implementation. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: add TODO to kMaxTouchPointsUnknown. Created 7 years, 2 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
« no previous file with comments | « content/renderer/web_preferences.cc ('k') | ui/base/touch/touch_device.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_export.h" 8 #include "ui/base/ui_export.h"
9 9
10 // TODO(sblom): This is non-standard, and should be removed before
11 // RuntimeEnabledFlags::PointerEventsMaxTouchPoints is marked stable.
12 // Tracked by: http://crbug.com/308649
13 const int kMaxTouchPointsUnknown = -1;
sadrul 2013/10/21 02:27:22 This should be inside the ui namespace.
14
10 namespace ui { 15 namespace ui {
11 16
12 // Returns true if a touch device is available. 17 // Returns true if a touch device is available.
13 UI_EXPORT bool IsTouchDevicePresent(); 18 UI_EXPORT bool IsTouchDevicePresent();
14 19
20 UI_EXPORT int MaxTouchPoints();
sadrul 2013/10/21 02:27:22 Add a doc comment. There can be multiple touch de
21
15 } // namespace ui 22 } // namespace ui
16 23
17 #endif // UI_BASE_TOUCH_TOUCH_DEVICE_H_ 24 #endif // UI_BASE_TOUCH_TOUCH_DEVICE_H_
OLDNEW
« no previous file with comments | « content/renderer/web_preferences.cc ('k') | ui/base/touch/touch_device.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698