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

Side by Side 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, 2 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 unified diff | Download patch
OLDNEW
(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 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698