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

Issue 2175163005: Add flag to hide scrollbars completely. (Closed)

Created:
4 years, 5 months ago by Eric Seckler
Modified:
4 years, 4 months ago
CC:
asvitkine+watch_chromium.org, chromium-reviews, creis+watch_chromium.org, darin-cc_chromium.org, jam, mlamouri+watch-content_chromium.org, nasko+codewatch_chromium.org, piman+watch_chromium.org, weiliangc
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add flag to hide (native composited) scrollbars completely. For headless chrome, we're interested in controlling the visibility of scrollbars in screenshots. As a first step, we would like to hide scrollbars completely. This patch adds a --enable-hidden-scrollbar flag, which utilizes non-animated overlay scrollbars. When enabled, the scrollbars never appear and are effectively hidden completely. This affects only native composited scrollbars (a future patch will add support for hiding native non-composited scrollbars in Blink). BUG=617618 CQ_INCLUDE_TRYBOTS=master.tryserver.blink:linux_precise_blink_rel Committed: https://crrev.com/025a020bd57294d44f907daef1badc5683e9220b Cr-Commit-Position: refs/heads/master@{#410018}

Patch Set 1 #

Patch Set 2 : remove new flag from about_flags. #

Patch Set 3 : add tests for scrollbar behavior without animator. #

Total comments: 14

Patch Set 4 : sync address reviewer comments. #

Total comments: 2

Patch Set 5 : fix ShouldHideScrollbars(). #

Unified diffs Side-by-side diffs Delta from patch set Stats (+147 lines, -72 lines) Patch
M cc/trees/layer_tree_host_impl_unittest.cc View 1 2 3 9 chunks +125 lines, -69 lines 0 comments Download
M content/browser/renderer_host/render_process_host_impl.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 2 chunks +6 lines, -3 lines 0 comments Download
M ui/native_theme/native_theme_switches.h View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M ui/native_theme/native_theme_switches.cc View 1 2 3 4 3 chunks +13 lines, -0 lines 0 comments Download

Messages

Total messages: 37 (19 generated)
Eric Seckler
Hey Sami, I was playing around with hiding scrollbars for screenshots - this seemed like ...
4 years, 5 months ago (2016-07-25 11:04:06 UTC) #3
Sami
This looks great. I think we can avoid adding this to about:flags since I doubt ...
4 years, 4 months ago (2016-07-26 13:23:05 UTC) #5
Eric Seckler
+weiliangc overall +sky for ui/ +jochen for content/ Thanks!
4 years, 4 months ago (2016-08-01 11:31:21 UTC) #10
jochen (gone - plz use gerrit)
can you add a test please?
4 years, 4 months ago (2016-08-01 12:17:07 UTC) #11
Eric Seckler
On 2016/08/01 12:17:07, jochen wrote: > can you add a test please? I added NO_ANIMATOR ...
4 years, 4 months ago (2016-08-01 18:17:56 UTC) #13
jochen (gone - plz use gerrit)
content/ lgtm
4 years, 4 months ago (2016-08-02 15:27:24 UTC) #18
weiliangc
Don't think I'm the best person to review this. +skobes for overall review.
4 years, 4 months ago (2016-08-02 17:38:43 UTC) #20
skobes
https://codereview.chromium.org/2175163005/diff/60001/content/renderer/gpu/render_widget_compositor.cc File content/renderer/gpu/render_widget_compositor.cc (right): https://codereview.chromium.org/2175163005/diff/60001/content/renderer/gpu/render_widget_compositor.cc#newcode414 content/renderer/gpu/render_widget_compositor.cc:414: // Android WebView uses system scrollbars, so make ours ...
4 years, 4 months ago (2016-08-02 17:55:56 UTC) #21
sky
https://codereview.chromium.org/2175163005/diff/60001/ui/native_theme/native_theme_switches.h File ui/native_theme/native_theme_switches.h (right): https://codereview.chromium.org/2175163005/diff/60001/ui/native_theme/native_theme_switches.h#newcode23 ui/native_theme/native_theme_switches.h:23: NATIVE_THEME_EXPORT bool IsHiddenScrollbarEnabled(); AFAICT ui/native_theme doesn't handle this switch ...
4 years, 4 months ago (2016-08-02 20:30:24 UTC) #22
Eric Seckler
Thanks for the comments! PTAL. https://codereview.chromium.org/2175163005/diff/60001/content/renderer/gpu/render_widget_compositor.cc File content/renderer/gpu/render_widget_compositor.cc (right): https://codereview.chromium.org/2175163005/diff/60001/content/renderer/gpu/render_widget_compositor.cc#newcode414 content/renderer/gpu/render_widget_compositor.cc:414: // Android WebView uses ...
4 years, 4 months ago (2016-08-03 17:34:54 UTC) #23
skobes
lgtm if sky is satsfied
4 years, 4 months ago (2016-08-03 19:13:08 UTC) #24
sky
https://codereview.chromium.org/2175163005/diff/60001/ui/native_theme/native_theme_switches.h File ui/native_theme/native_theme_switches.h (right): https://codereview.chromium.org/2175163005/diff/60001/ui/native_theme/native_theme_switches.h#newcode23 ui/native_theme/native_theme_switches.h:23: NATIVE_THEME_EXPORT bool IsHiddenScrollbarEnabled(); On 2016/08/03 17:34:54, Eric Seckler wrote: ...
4 years, 4 months ago (2016-08-03 23:44:04 UTC) #25
Eric Seckler
+ajuma for the test in cc/ Thanks! :) https://codereview.chromium.org/2175163005/diff/60001/ui/native_theme/native_theme_switches.h File ui/native_theme/native_theme_switches.h (right): https://codereview.chromium.org/2175163005/diff/60001/ui/native_theme/native_theme_switches.h#newcode23 ui/native_theme/native_theme_switches.h:23: NATIVE_THEME_EXPORT ...
4 years, 4 months ago (2016-08-04 08:07:26 UTC) #28
sky
Ok, LGTM
4 years, 4 months ago (2016-08-04 16:36:19 UTC) #29
ajuma
On 2016/08/04 08:07:26, Eric Seckler wrote: > +ajuma for the test in cc/ test in ...
4 years, 4 months ago (2016-08-04 16:47:38 UTC) #30
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2175163005/100001
4 years, 4 months ago (2016-08-05 08:08:29 UTC) #33
commit-bot: I haz the power
Committed patchset #5 (id:100001)
4 years, 4 months ago (2016-08-05 09:16:29 UTC) #35
commit-bot: I haz the power
4 years, 4 months ago (2016-08-05 09:18:42 UTC) #37
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/025a020bd57294d44f907daef1badc5683e9220b
Cr-Commit-Position: refs/heads/master@{#410018}

Powered by Google App Engine
This is Rietveld 408576698