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

Unified Diff: ui/base/touch/touch_device.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
« no previous file with comments | « no previous file | ui/base/touch/touch_device_aurax11.cc » ('j') | ui/base/touch/touch_device_aurax11.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/base/touch/touch_device.cc
diff --git a/ui/base/touch/touch_device.cc b/ui/base/touch/touch_device.cc
index 7c8a62c76a5b106abe2ffd71b675e9be9d8a401d..f232563208f570900d1c4e620db24d9d6dc981f0 100644
--- a/ui/base/touch/touch_device.cc
+++ b/ui/base/touch/touch_device.cc
@@ -17,23 +17,23 @@ int MaxTouchPoints() {
}
int GetAvailablePointerTypes() {
- // TODO(mustaq): Replace the stub below
- return POINTER_TYPE_NONE;
+ // Assume a non-touch-device with a keyboard and a mouse
+ return POINTER_TYPE_FINE | POINTER_TYPE_NONE;
}
PointerType GetPrimaryPointerType() {
- // TODO(mustaq): Replace the stub below
- return POINTER_TYPE_NONE;
+ // Assume a non-touch-device with a keyboard and a mouse
+ return POINTER_TYPE_FINE;
}
int GetAvailableHoverTypes() {
- // TODO(mustaq): Replace the stub below
- return HOVER_TYPE_NONE;
+ // Assume a non-touch-device with a keyboard and a mouse
+ return HOVER_TYPE_HOVER | HOVER_TYPE_NONE;
}
HoverType GetPrimaryHoverType() {
- // TODO(mustaq): Replace the stub below
- return HOVER_TYPE_NONE;
+ // Assume a non-touch-device with a keyboard and a mouse
+ return HOVER_TYPE_HOVER;
}
} // namespace ui
« no previous file with comments | « no previous file | ui/base/touch/touch_device_aurax11.cc » ('j') | ui/base/touch/touch_device_aurax11.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698