Index: ui/base/touch/touch_enabled.h |
diff --git a/ui/base/touch/touch_enabled.h b/ui/base/touch/touch_enabled.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..3030a3885ae9164c3abebcf8927039c0fda01088 |
--- /dev/null |
+++ b/ui/base/touch/touch_enabled.h |
@@ -0,0 +1,18 @@ |
+// Copyright (c) 2012 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+#ifndef UI_BASE_TOUCH_TOUCH_ENABLED_H_ |
+#define UI_BASE_TOUCH_TOUCH_ENABLED_H_ |
+ |
+#include "ui/base/ui_export.h" |
+ |
+namespace ui { |
+ |
+// Returns true if the touch-enabled flag is enabled, or if it is set to auto |
+// and a touch device is present. |
+UI_EXPORT bool IsTouchEnabled(); |
flackr
2013/07/26 16:01:01
nit: This isn't quite accurate. This reflects whet
girard
2013/07/29 15:01:11
Done.
|
+ |
+} // namespace ui |
+ |
+#endif // UI_BASE_TOUCH_TOUCH_ENABLED_H_ |