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

Unified Diff: ui/base/touch/touch_enabled.h

Issue 1412623006: Developer Feature: Add Debug Accelerators to Toggle Touchscreen/Touchpad On or Off (CrOS) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix actions.xml. Created 5 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 side-by-side diff with in-line comments
Download patch
Index: ui/base/touch/touch_enabled.h
diff --git a/ui/base/touch/touch_enabled.h b/ui/base/touch/touch_enabled.h
index 88837d7856cbc2158853bb56f10041e71b7af36b..364bce7646e464bee9128f45164e206e08e04a68 100644
--- a/ui/base/touch/touch_enabled.h
+++ b/ui/base/touch/touch_enabled.h
@@ -9,8 +9,13 @@
namespace ui {
-// Returns true if the touch-enabled flag is enabled, or if it is set to auto
-// and a touch device is present.
+#if defined(OS_CHROMEOS)
+// Sets the status of touch events to |enabled|.
+UI_BASE_EXPORT void SetTouchEventsEnabled(bool enabled);
+#endif // defined(OS_CHROMEOS)
+
+// Returns true if the touch events are enabled. On non-ChromeOS platforms, this
+// depends on the state of the |kTouchEvents| flags.
UI_BASE_EXPORT bool AreTouchEventsEnabled();
} // namespace ui

Powered by Google App Engine
This is Rietveld 408576698