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

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

Issue 685153003: Pointer/hover media query support: platform-independent changes (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed enum naming style Created 6 years, 1 month 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_device.h
diff --git a/ui/base/touch/touch_device.h b/ui/base/touch/touch_device.h
index fd75ebcc9c6714e66ae918ab7a276e299d6b9bb9..971cfea82aa407f5a8af615bf9e9e3812f97ac8b 100644
--- a/ui/base/touch/touch_device.h
+++ b/ui/base/touch/touch_device.h
@@ -26,6 +26,28 @@ UI_BASE_EXPORT bool IsTouchDevicePresent();
// http://www.w3.org/TR/pointerevents/#widl-Navigator-maxTouchPoints
UI_BASE_EXPORT int MaxTouchPoints();
+// Bit field values indicating what kind of pointer types are available. These
+// enums must match blink::WebSettings::PointerType enums, which is compile-time
+// asserted in content/public/common/web_preferences.cc .
+enum PointerType {
+ POINTER_TYPE_NONE = 1 << 0,
+ POINTER_TYPE_FIRST = POINTER_TYPE_NONE,
+ POINTER_TYPE_COARSE = 1 << 1,
+ POINTER_TYPE_FINE = 1 << 2,
+ POINTER_TYPE_LAST = POINTER_TYPE_FINE
+};
+
+// Bit field values indicating what kind of hover types are available. These
+// enums must match blink::WebSettings::HoverType enums, which is compile-time
+// asserted in content/public/common/web_preferences.cc .
+enum HoverType {
+ HOVER_TYPE_NONE = 1 << 0,
+ HOVER_TYPE_FIRST = HOVER_TYPE_NONE,
+ HOVER_TYPE_ON_DEMAND = 1 << 1,
+ HOVER_TYPE_HOVER = 1 << 2,
+ HOVER_TYPE_LAST = HOVER_TYPE_HOVER
+};
sadrul 2014/11/11 18:40:50 I was going to suggest using the WebSettings::Poin
+
#if defined(OS_ANDROID)
bool RegisterTouchDeviceAndroid(JNIEnv* env);
#endif
« content/public/common/common_param_traits_macros.h ('K') | « content/renderer/render_view_impl.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698