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

Issue 617543002: Disable overscroll on Windows machines w/o touchscreen (Closed)

Created:
6 years, 2 months ago by mfomitchev
Modified:
6 years, 2 months ago
Reviewers:
sadrul, sky
CC:
chromium-reviews, darin-cc_chromium.org, nasko+codewatch_chromium.org, jam, creis+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Disable overscroll on Windows machines w/o touchscreen. Currently GestureNav/horizontal overscroll is enabled on all Aura builds. However to engage GestureNav you either need a touch screen or a 2-finger gesture support for the touchpad. This means we are paying the cost of screenshotting for every navigation on some machines where you won't ever be able to experience GestureNav. BUG=398516 Committed: https://crrev.com/f09a66bb347776e5e2b5181e5f8550b7d31c0fe6 Cr-Commit-Position: refs/heads/master@{#297771}

Patch Set 1 #

Total comments: 2

Patch Set 2 : Disable overscroll on Windows. #

Patch Set 3 : Removing unwanted changes. #

Total comments: 4

Patch Set 4 : Addressing feedback. #

Total comments: 2

Patch Set 5 : Moving some code to BrowserUtil. #

Patch Set 6 : Removed unwanted changes. #

Total comments: 1

Patch Set 7 : Nix browser_util, simplified ifdef's #

Unified diffs Side-by-side diffs Delta from patch set Stats (+17 lines, -4 lines) Patch
M chrome/browser/ui/browser.cc View 1 2 3 4 5 6 3 chunks +17 lines, -4 lines 0 comments Download

Messages

Total messages: 26 (3 generated)
mfomitchev
Sadrul, WDYT about this approach? From what I understand, it is possible to enable horizontal ...
6 years, 2 months ago (2014-09-29 20:33:07 UTC) #2
mfomitchev
*by "horizontal overscroll" I meant "horizontal scroll"
6 years, 2 months ago (2014-09-29 20:33:50 UTC) #3
sadrul
https://codereview.chromium.org/617543002/diff/1/content/browser/frame_host/navigator_impl.cc File content/browser/frame_host/navigator_impl.cc (right): https://codereview.chromium.org/617543002/diff/1/content/browser/frame_host/navigator_impl.cc#newcode462 content/browser/frame_host/navigator_impl.cc:462: if (controller_->ShouldTakeScreenshotOnNavigation()) { Can we change the Browser::CanOverscrollContent() override ...
6 years, 2 months ago (2014-09-29 20:39:24 UTC) #4
mfomitchev
https://codereview.chromium.org/617543002/diff/1/content/browser/frame_host/navigator_impl.cc File content/browser/frame_host/navigator_impl.cc (right): https://codereview.chromium.org/617543002/diff/1/content/browser/frame_host/navigator_impl.cc#newcode462 content/browser/frame_host/navigator_impl.cc:462: if (controller_->ShouldTakeScreenshotOnNavigation()) { On 2014/09/29 20:39:24, sadrul wrote: > ...
6 years, 2 months ago (2014-09-29 20:41:39 UTC) #5
sadrul
On 2014/09/29 20:41:39, mfomitchev wrote: > https://codereview.chromium.org/617543002/diff/1/content/browser/frame_host/navigator_impl.cc > File content/browser/frame_host/navigator_impl.cc (right): > > https://codereview.chromium.org/617543002/diff/1/content/browser/frame_host/navigator_impl.cc#newcode462 > ...
6 years, 2 months ago (2014-09-29 20:45:36 UTC) #6
mfomitchev
On 2014/09/29 20:45:36, sadrul wrote: > On 2014/09/29 20:41:39, mfomitchev wrote: > > > https://codereview.chromium.org/617543002/diff/1/content/browser/frame_host/navigator_impl.cc ...
6 years, 2 months ago (2014-09-29 20:58:25 UTC) #7
mfomitchev
Ok, setting --overscroll-history-navigation to 2 is probably not a good idea since it would affect ...
6 years, 2 months ago (2014-09-30 15:57:35 UTC) #8
sadrul
https://codereview.chromium.org/617543002/diff/40001/chrome/browser/ui/browser.cc File chrome/browser/ui/browser.cc (right): https://codereview.chromium.org/617543002/diff/40001/chrome/browser/ui/browser.cc#newcode194 chrome/browser/ui/browser.cc:194: #include "ui/base/touch/touch_device.h" Add this include below for OS_WIN in ...
6 years, 2 months ago (2014-09-30 16:32:15 UTC) #9
mfomitchev
https://codereview.chromium.org/617543002/diff/40001/chrome/browser/ui/browser.cc File chrome/browser/ui/browser.cc (right): https://codereview.chromium.org/617543002/diff/40001/chrome/browser/ui/browser.cc#newcode194 chrome/browser/ui/browser.cc:194: #include "ui/base/touch/touch_device.h" On 2014/09/30 16:32:15, sadrul wrote: > Add ...
6 years, 2 months ago (2014-09-30 18:30:33 UTC) #10
sadrul
LGTM
6 years, 2 months ago (2014-09-30 20:59:38 UTC) #11
mfomitchev
+sky@chromium.org for owner review
6 years, 2 months ago (2014-09-30 21:00:25 UTC) #13
sky
https://codereview.chromium.org/617543002/diff/60001/chrome/browser/ui/browser.cc File chrome/browser/ui/browser.cc (right): https://codereview.chromium.org/617543002/diff/60001/chrome/browser/ui/browser.cc#newcode1131 chrome/browser/ui/browser.cc:1131: #if defined(USE_AURA) Oy, this is hard to read with ...
6 years, 2 months ago (2014-09-30 21:46:05 UTC) #14
mfomitchev
https://codereview.chromium.org/617543002/diff/60001/chrome/browser/ui/browser.cc File chrome/browser/ui/browser.cc (right): https://codereview.chromium.org/617543002/diff/60001/chrome/browser/ui/browser.cc#newcode1131 chrome/browser/ui/browser.cc:1131: #if defined(USE_AURA) On 2014/09/30 21:46:05, sky wrote: > Oy, ...
6 years, 2 months ago (2014-09-30 22:32:30 UTC) #15
sky
On 2014/09/30 22:32:30, mfomitchev wrote: > https://codereview.chromium.org/617543002/diff/60001/chrome/browser/ui/browser.cc > File chrome/browser/ui/browser.cc (right): > > https://codereview.chromium.org/617543002/diff/60001/chrome/browser/ui/browser.cc#newcode1131 > ...
6 years, 2 months ago (2014-09-30 23:54:22 UTC) #16
mfomitchev
Yikes, browser.h is already almost 1000 lines. I'd rather not make it even bigger... also ...
6 years, 2 months ago (2014-10-01 15:18:07 UTC) #17
sky
I'm fine with browser_util. On Wed, Oct 1, 2014 at 8:18 AM, <mfomitchev@chromium.org> wrote: > ...
6 years, 2 months ago (2014-10-01 15:45:43 UTC) #18
mfomitchev
On 2014/10/01 15:45:43, sky wrote: > I'm fine with browser_util. > > On Wed, Oct ...
6 years, 2 months ago (2014-10-01 18:24:09 UTC) #19
sky
https://codereview.chromium.org/617543002/diff/90001/chrome/browser/ui/browser_util.h File chrome/browser/ui/browser_util.h (right): https://codereview.chromium.org/617543002/diff/90001/chrome/browser/ui/browser_util.h#newcode12 chrome/browser/ui/browser_util.h:12: class BrowserUtil { Sorry. I had thought there was ...
6 years, 2 months ago (2014-10-01 20:05:04 UTC) #20
mfomitchev
Ok, how about this - simplified ifdefs?
6 years, 2 months ago (2014-10-01 20:10:57 UTC) #21
sky
BINGO. LGTM
6 years, 2 months ago (2014-10-01 23:26:08 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/617543002/110001
6 years, 2 months ago (2014-10-02 00:35:41 UTC) #24
commit-bot: I haz the power
Committed patchset #7 (id:110001) as 338ed842b7659699d7bac28c6ea167c0ba2884d9
6 years, 2 months ago (2014-10-02 02:21:01 UTC) #25
commit-bot: I haz the power
6 years, 2 months ago (2014-10-02 02:22:07 UTC) #26
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/f09a66bb347776e5e2b5181e5f8550b7d31c0fe6
Cr-Commit-Position: refs/heads/master@{#297771}

Powered by Google App Engine
This is Rietveld 408576698