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

Unified Diff: chrome/browser/ui/browser_util_win.cc

Issue 617543002: Disable overscroll on Windows machines w/o touchscreen (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Removed unwanted changes. Created 6 years, 3 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: chrome/browser/ui/browser_util_win.cc
diff --git a/chrome/browser/ui/browser_util_win.cc b/chrome/browser/ui/browser_util_win.cc
new file mode 100644
index 0000000000000000000000000000000000000000..a90d120fbd81c5fabb5ffd176a71289bf32a4027
--- /dev/null
+++ b/chrome/browser/ui/browser_util_win.cc
@@ -0,0 +1,16 @@
+// Copyright 2014 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "chrome/browser/ui/browser_util.h"
+
+#include "ui/base/touch/touch_device.h"
+
+bool BrowserUtil::CanOverscrollContent() const {
+ // Don't enable overscroll on Windows machines unless they have a touch
+ // screen as these machines typically don't have a touchpad capable of
+ // horizontal scrolling. We are purposefully biased towards "no" here,
+ // so that we don't waste resources capturing screenshots for horizontal
+ // overscroll navigation unnecessarily.
+ return ui::IsTouchDevicePresent();
+}

Powered by Google App Engine
This is Rietveld 408576698