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

Issue 2734483002: Reland Change minimum length of Aura overlay scrollbars. (Closed)

Created:
3 years, 9 months ago by bokan
Modified:
3 years, 8 months ago
Reviewers:
pdr., nasko, Evan Stade
CC:
chromium-reviews, blink-reviews, kinuko+watch
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Reland Change minimum length of Aura overlay scrollbars. It turns out Aura (and Android) overlay scrollbars weren't using the minimum defined in NativeThemeAura. Instead, the minimum was set from ScrollbarTheme::minimumThumbLength which just returns the thumb thickness. After adding an override for ScrollbarThemeOverlay which correctly uses the value form NativeThemeAura, the only consumers of ScrollbarTheme::minimumThumbLength are the mock classes so I moved the base implementation into the Mock class and made the base pure virtual. BUG=678595 Review-Url: https://codereview.chromium.org/2734483002 Cr-Original-Commit-Position: refs/heads/master@{#460199} Committed: https://chromium.googlesource.com/chromium/src/+/151a2db45f5fdbca8973988dd51d2bf6c86fbc8c Review-Url: https://codereview.chromium.org/2734483002 Cr-Commit-Position: refs/heads/master@{#460367} Committed: https://chromium.googlesource.com/chromium/src/+/bca2d029eea47a55324d505a88329cd4112de03d

Patch Set 1 #

Patch Set 2 : Rebase #

Patch Set 3 : Fix #

Patch Set 4 : Change length #

Total comments: 4

Patch Set 5 : Added test #

Patch Set 6 : Fix Nit #

Patch Set 7 : Rebase #

Patch Set 8 : Fix test disable on Mac and implement getSize on Android #

Total comments: 3

Patch Set 9 : #if-out whole test body on Mac #

Patch Set 10 : Fix breakage on Android #

Unified diffs Side-by-side diffs Delta from patch set Stats (+137 lines, -18 lines) Patch
M content/child/webthemeengine_impl_android.cc View 1 2 3 4 5 6 7 2 chunks +20 lines, -6 lines 0 comments Download
M third_party/WebKit/Source/platform/scroll/ScrollbarTheme.h View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/platform/scroll/ScrollbarTheme.cpp View 1 chunk +0 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/platform/scroll/ScrollbarThemeAura.cpp View 1 2 3 4 5 1 chunk +8 lines, -6 lines 0 comments Download
M third_party/WebKit/Source/platform/scroll/ScrollbarThemeMock.h View 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/platform/scroll/ScrollbarThemeMock.cpp View 1 chunk +5 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/platform/scroll/ScrollbarThemeOverlay.h View 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/platform/scroll/ScrollbarThemeOverlay.cpp View 1 2 3 4 5 1 chunk +15 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/platform/scroll/ScrollbarThemeOverlayMock.h View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/web/tests/FrameTestHelpers.h View 1 2 3 4 5 6 7 8 9 1 chunk +8 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/web/tests/ScrollbarsTest.cpp View 1 2 3 4 5 6 7 8 2 chunks +73 lines, -0 lines 0 comments Download
M ui/native_theme/native_theme_aura.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 46 (31 generated)
bokan
Hey Evan, There's no good way to test this from Blink as we basically want ...
3 years, 9 months ago (2017-03-23 16:47:56 UTC) #10
Evan Stade
On 2017/03/23 16:47:56, bokan wrote: > Hey Evan, > > There's no good way to ...
3 years, 9 months ago (2017-03-23 23:16:24 UTC) #11
bokan
I guess my question was more along the lines of the same one I just ...
3 years, 9 months ago (2017-03-24 20:30:27 UTC) #14
bokan
FYI: I had to add some implementation in Android's native_theme since Android uses ScrollbarThemeOverlay to ...
3 years, 9 months ago (2017-03-27 18:52:17 UTC) #23
Evan Stade
test and patch lgtm https://codereview.chromium.org/2734483002/diff/140001/third_party/WebKit/Source/web/tests/ScrollbarsTest.cpp File third_party/WebKit/Source/web/tests/ScrollbarsTest.cpp (right): https://codereview.chromium.org/2734483002/diff/140001/third_party/WebKit/Source/web/tests/ScrollbarsTest.cpp#newcode94 third_party/WebKit/Source/web/tests/ScrollbarsTest.cpp:94: TEST_P(ScrollbarAppearanceTest, DISABLED_ThemeEngineDefinesMinimumThumbLength) { nit: use ...
3 years, 9 months ago (2017-03-28 00:11:36 UTC) #24
bokan
+pdr@ for Source/platform +nasko@ for content/child https://codereview.chromium.org/2734483002/diff/140001/third_party/WebKit/Source/web/tests/ScrollbarsTest.cpp File third_party/WebKit/Source/web/tests/ScrollbarsTest.cpp (right): https://codereview.chromium.org/2734483002/diff/140001/third_party/WebKit/Source/web/tests/ScrollbarsTest.cpp#newcode94 third_party/WebKit/Source/web/tests/ScrollbarsTest.cpp:94: TEST_P(ScrollbarAppearanceTest, DISABLED_ThemeEngineDefinesMinimumThumbLength) { ...
3 years, 8 months ago (2017-03-28 13:58:37 UTC) #27
Evan Stade
https://codereview.chromium.org/2734483002/diff/140001/third_party/WebKit/Source/web/tests/ScrollbarsTest.cpp File third_party/WebKit/Source/web/tests/ScrollbarsTest.cpp (right): https://codereview.chromium.org/2734483002/diff/140001/third_party/WebKit/Source/web/tests/ScrollbarsTest.cpp#newcode94 third_party/WebKit/Source/web/tests/ScrollbarsTest.cpp:94: TEST_P(ScrollbarAppearanceTest, DISABLED_ThemeEngineDefinesMinimumThumbLength) { On 2017/03/28 13:58:37, bokan wrote: > ...
3 years, 8 months ago (2017-03-28 15:33:30 UTC) #28
bokan
On 2017/03/28 15:33:30, Evan Stade wrote: > https://codereview.chromium.org/2734483002/diff/140001/third_party/WebKit/Source/web/tests/ScrollbarsTest.cpp > File third_party/WebKit/Source/web/tests/ScrollbarsTest.cpp (right): > > https://codereview.chromium.org/2734483002/diff/140001/third_party/WebKit/Source/web/tests/ScrollbarsTest.cpp#newcode94 ...
3 years, 8 months ago (2017-03-28 15:48:12 UTC) #29
pdr.
LGTM
3 years, 8 months ago (2017-03-28 17:45:45 UTC) #30
nasko
content/ rubberstamp LGTM based on other reviewers.
3 years, 8 months ago (2017-03-28 17:51:02 UTC) #31
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/2734483002/160001
3 years, 8 months ago (2017-03-28 18:06:23 UTC) #34
commit-bot: I haz the power
Committed patchset #9 (id:160001) as https://chromium.googlesource.com/chromium/src/+/151a2db45f5fdbca8973988dd51d2bf6c86fbc8c
3 years, 8 months ago (2017-03-28 20:15:57 UTC) #37
bokan
A revert of this CL (patchset #9 id:160001) has been created in https://codereview.chromium.org/2780923003/ by bokan@chromium.org. ...
3 years, 8 months ago (2017-03-28 22:23:14 UTC) #38
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/2734483002/180001
3 years, 8 months ago (2017-03-29 11:52:34 UTC) #43
commit-bot: I haz the power
3 years, 8 months ago (2017-03-29 13:24:52 UTC) #46
Message was sent while issue was closed.
Committed patchset #10 (id:180001) as
https://chromium.googlesource.com/chromium/src/+/bca2d029eea47a55324d505a8832...

Powered by Google App Engine
This is Rietveld 408576698