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

Unified Diff: ui/base/touch/touch_device_ozone.cc

Issue 781753005: Pointer/hover media query support: platform-dependent changes #2 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Completed aurax11 Created 6 years 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_ozone.cc
diff --git a/ui/base/touch/touch_device_ozone.cc b/ui/base/touch/touch_device_ozone.cc
index bc81a754eb4b00adaf5d8f70cee2d635c473d23c..f2f31587e22bcb37a1b12dc3872fa9788baedb30 100644
--- a/ui/base/touch/touch_device_ozone.cc
+++ b/ui/base/touch/touch_device_ozone.cc
@@ -17,23 +17,23 @@ int MaxTouchPoints() {
}
int GetAvailablePointerTypes() {
- // TODO(mustaq): Replace the stub below
- return POINTER_TYPE_NONE;
+ // Assume a touch-device with a keyboard
+ return POINTER_TYPE_COARSE | POINTER_TYPE_NONE;
}
PointerType GetPrimaryPointerType() {
- // TODO(mustaq): Replace the stub below
- return POINTER_TYPE_NONE;
+ // Assume a touch-device with a keyboard
+ return POINTER_TYPE_COARSE;
}
int GetAvailableHoverTypes() {
- // TODO(mustaq): Replace the stub below
- return HOVER_TYPE_NONE;
+ // Assume a touch-device with a keyboard
+ return HOVER_TYPE_ON_DEMAND | HOVER_TYPE_NONE;
}
HoverType GetPrimaryHoverType() {
- // TODO(mustaq): Replace the stub below
- return HOVER_TYPE_NONE;
+ // Assume a touch-device with a keyboard
+ return HOVER_TYPE_ON_DEMAND;
}
} // namespace ui

Powered by Google App Engine
This is Rietveld 408576698