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

Issue 2426793002: Aura overlay scrollbars adjust color for dark backgrounds (Closed)

Created:
4 years, 2 months ago by chaopeng
Modified:
4 years, 1 month ago
CC:
blink-reviews, blink-reviews-api_chromium.org, blink-reviews-layout_chromium.org, blink-reviews-paint_chromium.org, cc-bugs_chromium.org, chromium-reviews, creis+watch_chromium.org, darin-cc_chromium.org, dglazkov+blink, dshwang, eae+blinkwatch, jam, jchaffraix+rendering, leviw+renderwatch, nasko+codewatch_chromium.org, pdr+renderingwatchlist_chromium.org, szager+layoutwatch_chromium.org, zoltan1
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Aura overlay scrollbars adjust color for dark backgrounds Since we already save the overlay scrollbar color theme in ScrollableArea for Mac, this patch plumbs it through for Aura overlay scrollbars. Also we rename ScrollbarOverlayStyle to ScrollbarOverlayColorTheme to avoid misleading since we already have ScrollbarStyle WebThemeEngine.h. BUG=636662 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_layout_tests_slimming_paint_v2 Committed: https://crrev.com/3386732f6b5e6959698b6697e799a5eb3be6e821 Cr-Commit-Position: refs/heads/master@{#428367}

Patch Set 1 #

Patch Set 2 : update #

Total comments: 3

Patch Set 3 : fix #

Patch Set 4 : rename to ScrollbarOverlayColorTheme #

Total comments: 9

Patch Set 5 : fix #

Total comments: 4

Patch Set 6 : fix #

Total comments: 1

Patch Set 7 : style #

Total comments: 8

Patch Set 8 : remove deadcode(WebThemeEngineImpl::paintStateTransition), remove ScrollbarOverlayColorThemeDefault #

Total comments: 1

Patch Set 9 : add test and remove dead code #

Total comments: 1

Patch Set 10 : remove IntValueBetween #

Total comments: 4

Patch Set 11 : fix for Peter's nit #

Total comments: 1

Patch Set 12 : fix for Peter's nit #

Patch Set 13 : Merge remote-tracking branch 'origin/master' into fix-636662 #

Patch Set 14 : fix test #

Unified diffs Side-by-side diffs Delta from patch set Stats (+208 lines, -186 lines) Patch
M content/child/webthemeengine_impl_default.h View 1 2 3 4 5 6 7 1 chunk +0 lines, -6 lines 0 comments Download
M content/child/webthemeengine_impl_default.cc View 1 2 3 4 5 6 7 5 chunks +22 lines, -11 lines 0 comments Download
M third_party/WebKit/Source/core/frame/FrameView.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutBox.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +16 lines, -14 lines 0 comments Download
M third_party/WebKit/Source/core/paint/PaintLayerScrollableAreaTest.cpp View 1 2 3 4 5 6 7 8 2 chunks +36 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/platform/exported/WebScrollbarImpl.h View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/platform/exported/WebScrollbarImpl.cpp View 1 2 3 4 1 chunk +3 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/platform/exported/WebScrollbarThemeClientImpl.h View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/platform/exported/WebScrollbarThemeClientImpl.cpp View 1 2 3 1 chunk +4 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/platform/scroll/ScrollTypes.h View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +3 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/platform/scroll/ScrollableArea.h View 1 2 3 4 2 chunks +6 lines, -5 lines 0 comments Download
M third_party/WebKit/Source/platform/scroll/ScrollableArea.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 4 chunks +14 lines, -13 lines 0 comments Download
M third_party/WebKit/Source/platform/scroll/ScrollableAreaTest.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +8 lines, -8 lines 0 comments Download
M third_party/WebKit/Source/platform/scroll/Scrollbar.h View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/platform/scroll/Scrollbar.cpp View 1 2 3 4 5 6 7 1 chunk +3 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/platform/scroll/ScrollbarTheme.h View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/platform/scroll/ScrollbarThemeAura.cpp View 1 2 3 4 5 6 2 chunks +4 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/platform/scroll/ScrollbarThemeClient.h View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/platform/scroll/ScrollbarThemeMac.h View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/platform/scroll/ScrollbarThemeMac.mm View 1 2 3 4 5 6 7 3 chunks +6 lines, -9 lines 0 comments Download
M third_party/WebKit/Source/platform/scroll/ScrollbarThemeOverlay.cpp View 1 2 3 4 1 chunk +6 lines, -1 line 0 comments Download
M third_party/WebKit/Source/web/AssertMatchingEnums.cpp View 1 2 3 4 5 6 7 1 chunk +4 lines, -6 lines 0 comments Download
M third_party/WebKit/public/BUILD.gn View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/public/platform/WebScrollbar.h View 1 2 3 4 3 chunks +2 lines, -7 lines 0 comments Download
A third_party/WebKit/public/platform/WebScrollbarOverlayColorTheme.h View 1 2 3 4 5 6 7 1 chunk +15 lines, -0 lines 0 comments Download
M third_party/WebKit/public/platform/WebThemeEngine.h View 1 2 3 4 5 3 chunks +7 lines, -0 lines 0 comments Download
M ui/native_theme/native_theme.h View 1 2 3 4 5 6 7 2 chunks +8 lines, -1 line 0 comments Download
M ui/native_theme/native_theme_aura.h View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -8 lines 0 comments Download
M ui/native_theme/native_theme_aura.cc View 1 2 3 4 5 6 7 8 9 10 11 6 chunks +22 lines, -27 lines 0 comments Download
M ui/native_theme/native_theme_base.h View 1 2 3 4 5 6 7 8 3 chunks +2 lines, -16 lines 0 comments Download
M ui/native_theme/native_theme_base.cc View 1 2 3 4 5 6 7 8 3 chunks +6 lines, -29 lines 0 comments Download

Messages

Total messages: 68 (29 generated)
bokan
First pass. Title isn't very clear, perhaps "Aura overlay scrollbars adjust color for dark backgrounds" ...
4 years, 2 months ago (2016-10-18 19:55:26 UTC) #4
chaopeng
On 2016/10/18 19:55:26, bokan wrote: > First pass. > > Title isn't very clear, perhaps ...
4 years, 2 months ago (2016-10-20 17:36:45 UTC) #8
bokan
https://codereview.chromium.org/2426793002/diff/60001/content/child/webthemeengine_impl_default.cc File content/child/webthemeengine_impl_default.cc (right): https://codereview.chromium.org/2426793002/diff/60001/content/child/webthemeengine_impl_default.cc#newcode182 content/child/webthemeengine_impl_default.cc:182: native_theme_extra_params->scrollbar_theme = These should be |native_theme_extra_params->scrollbar_thumb.scrollbar_theme|. See my comment ...
4 years, 2 months ago (2016-10-21 16:57:14 UTC) #9
chaopeng
On 2016/10/21 16:57:14, bokan wrote: > https://codereview.chromium.org/2426793002/diff/60001/content/child/webthemeengine_impl_default.cc > File content/child/webthemeengine_impl_default.cc (right): > > https://codereview.chromium.org/2426793002/diff/60001/content/child/webthemeengine_impl_default.cc#newcode182 > ...
4 years, 2 months ago (2016-10-21 19:52:55 UTC) #12
bokan
https://codereview.chromium.org/2426793002/diff/80001/content/child/webthemeengine_impl_default.cc File content/child/webthemeengine_impl_default.cc (right): https://codereview.chromium.org/2426793002/diff/80001/content/child/webthemeengine_impl_default.cc#newcode197 content/child/webthemeengine_impl_default.cc:197: static_cast<ui::NativeTheme::ScrollbarOverlayColorTheme>( use the NativeThemeScrollbarOverlayColorTheme function rather than casting. https://codereview.chromium.org/2426793002/diff/80001/third_party/WebKit/Source/platform/scroll/ScrollbarThemeAura.cpp ...
4 years, 2 months ago (2016-10-21 20:11:39 UTC) #13
chaopeng
On 2016/10/21 20:11:39, bokan wrote: > https://codereview.chromium.org/2426793002/diff/80001/content/child/webthemeengine_impl_default.cc > File content/child/webthemeengine_impl_default.cc (right): > > https://codereview.chromium.org/2426793002/diff/80001/content/child/webthemeengine_impl_default.cc#newcode197 > ...
4 years, 2 months ago (2016-10-21 22:00:49 UTC) #14
bokan
lgtm % nit https://codereview.chromium.org/2426793002/diff/100001/third_party/WebKit/Source/platform/scroll/ScrollbarThemeAura.cpp File third_party/WebKit/Source/platform/scroll/ScrollbarThemeAura.cpp (right): https://codereview.chromium.org/2426793002/diff/100001/third_party/WebKit/Source/platform/scroll/ScrollbarThemeAura.cpp#newcode348 third_party/WebKit/Source/platform/scroll/ScrollbarThemeAura.cpp:348: state, WebRect(rect), 0); Nit: nullptr
4 years, 2 months ago (2016-10-21 22:46:44 UTC) #15
bokan
Also, please update the description to mention the rename. And change: "Since we already save ...
4 years, 2 months ago (2016-10-21 22:48:26 UTC) #16
bokan
+pkasting@ for ui/native_theme +creis@ for content/child +rbyers@ for WebKit/public +jbroman@ for WebKit/platform
4 years, 1 month ago (2016-10-24 13:55:13 UTC) #22
Rick Byers
On 2016/10/24 13:55:13, bokan wrote: > +pkasting@ for ui/native_theme > +creis@ for content/child > +rbyers@ ...
4 years, 1 month ago (2016-10-24 14:23:56 UTC) #23
Charlie Reis
https://codereview.chromium.org/2426793002/diff/120001/content/child/webthemeengine_impl_default.h File content/child/webthemeengine_impl_default.h (right): https://codereview.chromium.org/2426793002/diff/120001/content/child/webthemeengine_impl_default.h#newcode12 content/child/webthemeengine_impl_default.h:12: #include "ui/native_theme/native_theme.h" This declares ScrollbarOverlayColorTheme, but that doesn't appear ...
4 years, 1 month ago (2016-10-24 19:22:19 UTC) #24
chaopeng
https://codereview.chromium.org/2426793002/diff/120001/content/child/webthemeengine_impl_default.h File content/child/webthemeengine_impl_default.h (right): https://codereview.chromium.org/2426793002/diff/120001/content/child/webthemeengine_impl_default.h#newcode25 content/child/webthemeengine_impl_default.h:25: virtual void paintStateTransition( On 2016/10/24 19:22:19, Charlie Reis wrote: ...
4 years, 1 month ago (2016-10-24 19:51:29 UTC) #25
Charlie Reis
[+weiliangc, who added PaintStateTransition] https://codereview.chromium.org/2426793002/diff/120001/content/child/webthemeengine_impl_default.h File content/child/webthemeengine_impl_default.h (right): https://codereview.chromium.org/2426793002/diff/120001/content/child/webthemeengine_impl_default.h#newcode25 content/child/webthemeengine_impl_default.h:25: virtual void paintStateTransition( On 2016/10/24 ...
4 years, 1 month ago (2016-10-24 20:30:29 UTC) #27
Peter Kasting
https://codereview.chromium.org/2426793002/diff/120001/ui/native_theme/native_theme_aura.cc File ui/native_theme/native_theme_aura.cc (right): https://codereview.chromium.org/2426793002/diff/120001/ui/native_theme/native_theme_aura.cc#newcode210 ui/native_theme/native_theme_aura.cc:210: if (theme == ScrollbarOverlayColorThemeLight) { This code has only ...
4 years, 1 month ago (2016-10-24 23:33:42 UTC) #28
jbroman
I'm on vacation and probably won't be able to give this a good review until ...
4 years, 1 month ago (2016-10-25 00:33:49 UTC) #29
chaopeng
vollick@chromium.org: Please review changes in
4 years, 1 month ago (2016-10-25 00:55:28 UTC) #32
Ian Vollick
On 2016/10/25 00:55:28, chaopeng wrote: > mailto:vollick@chromium.org: Please review changes in lgtm
4 years, 1 month ago (2016-10-25 01:37:11 UTC) #33
bokan
https://codereview.chromium.org/2426793002/diff/120001/content/child/webthemeengine_impl_default.h File content/child/webthemeengine_impl_default.h (right): https://codereview.chromium.org/2426793002/diff/120001/content/child/webthemeengine_impl_default.h#newcode25 content/child/webthemeengine_impl_default.h:25: virtual void paintStateTransition( On 2016/10/24 20:30:29, Charlie Reis wrote: ...
4 years, 1 month ago (2016-10-25 18:45:52 UTC) #34
Peter Kasting
https://codereview.chromium.org/2426793002/diff/120001/ui/native_theme/native_theme_aura.cc File ui/native_theme/native_theme_aura.cc (right): https://codereview.chromium.org/2426793002/diff/120001/ui/native_theme/native_theme_aura.cc#newcode210 ui/native_theme/native_theme_aura.cc:210: if (theme == ScrollbarOverlayColorThemeLight) { On 2016/10/25 18:45:52, bokan ...
4 years, 1 month ago (2016-10-25 19:40:48 UTC) #35
bokan
On 2016/10/25 19:40:48, Peter Kasting wrote: > > (ScrollbarThemeMac can use NSScrollerKnobStyleDefault for our > ...
4 years, 1 month ago (2016-10-25 19:49:34 UTC) #36
chaopeng
PTAL
4 years, 1 month ago (2016-10-27 14:13:38 UTC) #37
bokan
https://codereview.chromium.org/2426793002/diff/140001/ui/native_theme/native_theme_aura.h File ui/native_theme/native_theme_aura.h (right): https://codereview.chromium.org/2426793002/diff/140001/ui/native_theme/native_theme_aura.h#newcode51 ui/native_theme/native_theme_aura.h:51: void PaintScrollbarThumbStateTransition( The only actual caller of this method ...
4 years, 1 month ago (2016-10-27 15:14:49 UTC) #38
chaopeng
On 2016/10/27 15:14:49, bokan wrote: > https://codereview.chromium.org/2426793002/diff/140001/ui/native_theme/native_theme_aura.h > File ui/native_theme/native_theme_aura.h (right): > > https://codereview.chromium.org/2426793002/diff/140001/ui/native_theme/native_theme_aura.h#newcode51 > ...
4 years, 1 month ago (2016-10-27 18:26:26 UTC) #39
bokan
https://codereview.chromium.org/2426793002/diff/160001/ui/native_theme/native_theme_aura.cc File ui/native_theme/native_theme_aura.cc (right): https://codereview.chromium.org/2426793002/diff/160001/ui/native_theme/native_theme_aura.cc#newcode197 ui/native_theme/native_theme_aura.cc:197: double progress = 1.0; Remove this and the IntValueBetween ...
4 years, 1 month ago (2016-10-27 18:29:53 UTC) #40
chaopeng
On 2016/10/27 18:29:53, bokan wrote: > https://codereview.chromium.org/2426793002/diff/160001/ui/native_theme/native_theme_aura.cc > File ui/native_theme/native_theme_aura.cc (right): > > https://codereview.chromium.org/2426793002/diff/160001/ui/native_theme/native_theme_aura.cc#newcode197 > ...
4 years, 1 month ago (2016-10-27 18:42:17 UTC) #41
bokan
Thanks, still lgtm. Please wait for creis@'s and pkasting@'s stamps though.
4 years, 1 month ago (2016-10-27 18:44:57 UTC) #42
Charlie Reis
Thanks! content/ LGTM.
4 years, 1 month ago (2016-10-27 20:40:16 UTC) #43
Peter Kasting
ui/native_theme LGTM https://codereview.chromium.org/2426793002/diff/180001/ui/native_theme/native_theme_aura.cc File ui/native_theme/native_theme_aura.cc (right): https://codereview.chromium.org/2426793002/diff/180001/ui/native_theme/native_theme_aura.cc#newcode41 ui/native_theme/native_theme_aura.cc:41: constexpr SkColor kOverlayScrollbarStrokeLightColor = SK_ColorBLACK; Nit: If ...
4 years, 1 month ago (2016-10-27 22:48:50 UTC) #44
chaopeng
On 2016/10/27 22:48:50, Peter Kasting wrote: > ui/native_theme LGTM > > https://codereview.chromium.org/2426793002/diff/180001/ui/native_theme/native_theme_aura.cc > File ui/native_theme/native_theme_aura.cc ...
4 years, 1 month ago (2016-10-28 00:59:23 UTC) #46
Peter Kasting
Still LGTM Note: You do not need to get re-review from someone after their LGTM ...
4 years, 1 month ago (2016-10-28 01:03:07 UTC) #47
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/2426793002/220001
4 years, 1 month ago (2016-10-28 01:10:34 UTC) #50
commit-bot: I haz the power
Try jobs failed on following builders: linux_layout_tests_slimming_paint_v2 on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_layout_tests_slimming_paint_v2/builds/1111)
4 years, 1 month ago (2016-10-28 01:36:47 UTC) #52
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/2426793002/240001
4 years, 1 month ago (2016-10-28 01:57:43 UTC) #55
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_chromeos_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_rel_ng/builds/304640)
4 years, 1 month ago (2016-10-28 02:20:18 UTC) #57
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/2426793002/260001
4 years, 1 month ago (2016-10-28 02:27:58 UTC) #60
commit-bot: I haz the power
Try jobs failed on following builders: android_n5x_swarming_rel on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/android_n5x_swarming_rel/builds/57536)
4 years, 1 month ago (2016-10-28 04:07:55 UTC) #62
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/2426793002/260001
4 years, 1 month ago (2016-10-28 13:59:50 UTC) #64
commit-bot: I haz the power
Committed patchset #14 (id:260001)
4 years, 1 month ago (2016-10-28 14:50:19 UTC) #66
commit-bot: I haz the power
4 years, 1 month ago (2016-10-28 14:52:30 UTC) #68
Message was sent while issue was closed.
Patchset 14 (id:??) landed as
https://crrev.com/3386732f6b5e6959698b6697e799a5eb3be6e821
Cr-Commit-Position: refs/heads/master@{#428367}

Powered by Google App Engine
This is Rietveld 408576698