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

Unified Diff: ui/events/event_utils.cc

Issue 103893005: Include external touchscreen vid/pid in UMA hardware profile (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix comment capitalization Created 6 years, 11 months 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/events/event_utils.cc
diff --git a/ui/events/event_utils.cc b/ui/events/event_utils.cc
index a8c95da6f8ffb475c5782c8a32cad8401731b9d2..9cab421394a7031d395d19b8c27425fb31a952d7 100644
--- a/ui/events/event_utils.cc
+++ b/ui/events/event_utils.cc
@@ -30,6 +30,10 @@ base::TimeDelta EventTimeForNow() {
}
bool ShouldDefaultToNaturalScroll() {
+ return InternalDisplaySupportsTouch();
+}
+
+bool InternalDisplaySupportsTouch() {
gfx::Screen* screen = gfx::Screen::GetScreenByType(gfx::SCREEN_TYPE_NATIVE);
if (!screen)
return false;

Powered by Google App Engine
This is Rietveld 408576698