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

Unified Diff: ui/base/touch/touch_device_aurax11.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: 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_aurax11.cc
diff --git a/ui/base/touch/touch_device_aurax11.cc b/ui/base/touch/touch_device_aurax11.cc
index 52ecc75787e04ba02f3b3a9097deb4ec361cf395..0d3ff144db77910c8c71c6049458c3fadffdf6cc 100644
--- a/ui/base/touch/touch_device_aurax11.cc
+++ b/ui/base/touch/touch_device_aurax11.cc
@@ -16,23 +16,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;
sadrul 2014/12/07 17:46:18 Should this look at IsTouchDevicePresent() before
mustaq 2014/12/09 20:46:19 Done adding a check for the presence of a touch-de
}
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;
sadrul 2014/12/07 17:46:18 Shouldn't all these look at IsTouchDevicePresent()
mustaq 2014/12/09 20:46:19 Done. See my comment above.
}
} // namespace ui

Powered by Google App Engine
This is Rietveld 408576698