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

Issue 877863002: Hide pinch viewport scrollbars when near minimum scale. (Closed)

Created:
5 years, 11 months ago by bokan
Modified:
5 years, 10 months ago
CC:
cc-bugs_chromium.org, chromium-reviews, darin-cc_chromium.org, jam, mkwst+moarreviews-renderer_chromium.org, mlamouri+watch-content_chromium.org, piman+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Hide pinch viewport scrollbars when near minimum scale. This patch prevents the overlay scrollbars from showing up when we're near the minimum scale. The threshold can be set per-platform; by default it's 0 so the scrollbars will be visible regardless of the scale. On Windows/Linux/CrOS we'd like to prevent the scrollbars from overlaying over the window scrollbars so we set a small non-0 threshold. BUG=446411 Committed: https://crrev.com/c784a6f02ed8f2cffe131c2c067c4805cd752610 Cr-Commit-Position: refs/heads/master@{#313431}

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : Use SetHideLayerAndSubtree #

Total comments: 6

Patch Set 4 : Threshold multiplicative, prevent commit clobber of hide layer #

Total comments: 2

Patch Set 5 : Forgot about test #

Unified diffs Side-by-side diffs Delta from patch set Stats (+106 lines, -9 lines) Patch
M cc/layers/layer_impl.cc View 1 1 chunk +2 lines, -9 lines 0 comments Download
M cc/layers/scrollbar_layer_impl_base.cc View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M cc/trees/layer_tree_impl.h View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M cc/trees/layer_tree_impl.cc View 1 2 3 2 chunks +25 lines, -0 lines 0 comments Download
M cc/trees/layer_tree_impl_unittest.cc View 1 2 3 4 3 chunks +69 lines, -0 lines 0 comments Download
M cc/trees/layer_tree_settings.h View 1 chunk +1 line, -0 lines 0 comments Download
M cc/trees/layer_tree_settings.cc View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M content/renderer/gpu/render_widget_compositor.cc View 1 2 3 1 chunk +5 lines, -0 lines 0 comments Download

Messages

Total messages: 19 (3 generated)
bokan
Alexandre, ptal. Thanks.
5 years, 11 months ago (2015-01-26 20:01:17 UTC) #2
aelias_OOO_until_Jul13
This logic doesn't seem to fit that well in the animation controller, as it's orthogonal ...
5 years, 11 months ago (2015-01-26 20:13:10 UTC) #3
bokan
On 2015/01/26 20:13:10, aelias wrote: > This logic doesn't seem to fit that well in ...
5 years, 11 months ago (2015-01-26 20:36:39 UTC) #4
bokan
Got the same effect using SetHideLayerAndSubtree, ptal.
5 years, 11 months ago (2015-01-27 19:10:06 UTC) #5
aelias_OOO_until_Jul13
lgtm modulo comments below https://codereview.chromium.org/877863002/diff/40001/cc/trees/layer_tree_impl.cc File cc/trees/layer_tree_impl.cc (right): https://codereview.chromium.org/877863002/diff/40001/cc/trees/layer_tree_impl.cc#newcode417 cc/trees/layer_tree_impl.cc:417: min_page_scale_factor() + settings().scrollbar_show_scale_threshold; I generally ...
5 years, 11 months ago (2015-01-27 19:35:05 UTC) #6
aelias_OOO_until_Jul13
Sorry, I just remembered an additional issue. ScrollbarLayerImplBase::PushPropertiesTo currently has a hack to preserve impl-side ...
5 years, 11 months ago (2015-01-27 19:52:29 UTC) #7
bokan
On 2015/01/27 19:52:29, aelias wrote: > Sorry, I just remembered an additional issue. > ScrollbarLayerImplBase::PushPropertiesTo ...
5 years, 11 months ago (2015-01-27 20:41:55 UTC) #8
bokan
https://codereview.chromium.org/877863002/diff/40001/cc/trees/layer_tree_impl.cc File cc/trees/layer_tree_impl.cc (right): https://codereview.chromium.org/877863002/diff/40001/cc/trees/layer_tree_impl.cc#newcode417 cc/trees/layer_tree_impl.cc:417: min_page_scale_factor() + settings().scrollbar_show_scale_threshold; On 2015/01/27 19:35:05, aelias wrote: > ...
5 years, 11 months ago (2015-01-27 20:42:02 UTC) #9
aelias_OOO_until_Jul13
https://codereview.chromium.org/877863002/diff/60001/cc/trees/layer_tree_impl_unittest.cc File cc/trees/layer_tree_impl_unittest.cc (right): https://codereview.chromium.org/877863002/diff/60001/cc/trees/layer_tree_impl_unittest.cc#newcode27 cc/trees/layer_tree_impl_unittest.cc:27: settings.scrollbar_show_scale_threshold = 0.1f; Look like this also should be ...
5 years, 11 months ago (2015-01-27 20:44:06 UTC) #10
bokan
https://codereview.chromium.org/877863002/diff/60001/cc/trees/layer_tree_impl_unittest.cc File cc/trees/layer_tree_impl_unittest.cc (right): https://codereview.chromium.org/877863002/diff/60001/cc/trees/layer_tree_impl_unittest.cc#newcode27 cc/trees/layer_tree_impl_unittest.cc:27: settings.scrollbar_show_scale_threshold = 0.1f; On 2015/01/27 20:44:06, aelias wrote: > ...
5 years, 11 months ago (2015-01-27 20:48:32 UTC) #11
aelias_OOO_until_Jul13
lgtm
5 years, 11 months ago (2015-01-27 20:51:40 UTC) #12
bokan
+jbauman@ for RenderWidgetCompositor
5 years, 11 months ago (2015-01-27 20:52:30 UTC) #14
jbauman
lgtm
5 years, 10 months ago (2015-01-28 00:26:03 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/877863002/80001
5 years, 10 months ago (2015-01-28 00:29:58 UTC) #17
commit-bot: I haz the power
Committed patchset #5 (id:80001)
5 years, 10 months ago (2015-01-28 04:12:19 UTC) #18
commit-bot: I haz the power
5 years, 10 months ago (2015-01-28 04:14:23 UTC) #19
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/c784a6f02ed8f2cffe131c2c067c4805cd752610
Cr-Commit-Position: refs/heads/master@{#313431}

Powered by Google App Engine
This is Rietveld 408576698