OLD | NEW |
(Empty) | |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #include "chrome/browser/ui/browser_util.h" |
| 6 |
| 7 #include "ui/base/touch/touch_device.h" |
| 8 |
| 9 bool BrowserUtil::CanOverscrollContent() const { |
| 10 // Don't enable overscroll on Windows machines unless they have a touch |
| 11 // screen as these machines typically don't have a touchpad capable of |
| 12 // horizontal scrolling. We are purposefully biased towards "no" here, |
| 13 // so that we don't waste resources capturing screenshots for horizontal |
| 14 // overscroll navigation unnecessarily. |
| 15 return ui::IsTouchDevicePresent(); |
| 16 } |
OLD | NEW |