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

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: Rebased, nuked content::{Pointer,Hover}Type 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..85c1aaa1ceee53233f13a2c5473fcd7c7064aff9 100644
--- a/ui/base/touch/touch_device.h
+++ b/ui/base/touch/touch_device.h
@@ -26,6 +26,30 @@ 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
+// enum must match content::PointerType enums.
+// GENERATED_JAVA_ENUM_PACKAGE: org.chromium.ui.base
+// GENERATED_JAVA_PREFIX_TO_STRIP: PointerType
+enum PointerType {
+ PointerTypeNone = 1 << 0,
+ PointerTypeFirst = PointerTypeNone,
jdduke (slow) 2014/11/11 15:59:30 I think these comments are slightly out-of-date, a
mustaq 2014/11/11 17:23:52 - Updated the comments. - Removed the CPP-Java-enu
+ PointerTypeCoarse = 1 << 1,
+ PointerTypeFine = 1 << 2,
+ PointerTypeLast = PointerTypeFine
+};
+
+// Bit field values indicating what kind of pointer types are available. These
+// enums must match content::HoverType enums.
+// GENERATED_JAVA_ENUM_PACKAGE: org.chromium.ui.base
+// GENERATED_JAVA_PREFIX_TO_STRIP: HoverType
+enum HoverType {
+ HoverTypeNone = 1 << 0,
+ HoverTypeFirst = HoverTypeNone,
+ HoverTypeOnDemand = 1 << 1,
+ HoverTypeHover = 1 << 2,
+ HoverTypeLast = HoverTypeHover
+};
+
#if defined(OS_ANDROID)
bool RegisterTouchDeviceAndroid(JNIEnv* env);
#endif
« content/public/common/web_preferences.cc ('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