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(); |
+} |