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

Issue 2496643002: Implement Sebastien's overlay scrollbars for native UI (Views). (Closed)

Created:
4 years, 1 month ago by Evan Stade
Modified:
4 years, 1 month ago
Reviewers:
tdanderson, varkha, sadrul
CC:
chromium-reviews, tfarina, tapted
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Implement Sebastien's overlay scrollbars for native UI (Views). These are only used in two cros-specific surfaces (the system menu and message center). high level overview: 1. thumb is a rectangle with a stroke a) when hovered, the thumb grows a little wider and darker. 2. thumb is hidden by default. a) Any time something happens that changes the size of the thumb, it appears (no animation). This includes scrolling or the contents changing size. b) The scrollbar also appears on mouse hover. c) Scrollbar fades out after a second when neither of the above are true (edge case: unless it's being dragged). BUG=652520, 307091 Committed: https://crrev.com/862c7245d9b3f295df0db82f6e17c730d3f54825 Cr-Commit-Position: refs/heads/master@{#432358}

Patch Set 1 #

Total comments: 1

Patch Set 2 : self review #

Total comments: 6

Patch Set 3 : clarify comment #

Total comments: 3

Patch Set 4 : animate layers #

Patch Set 5 : horizon #

Total comments: 5

Patch Set 6 : fix test #

Patch Set 7 : fix test failure #

Unified diffs Side-by-side diffs Delta from patch set Stats (+157 lines, -197 lines) Patch
M ui/views/controls/scroll_view.h View 1 chunk +0 lines, -2 lines 0 comments Download
M ui/views/controls/scroll_view.cc View 1 chunk +0 lines, -14 lines 0 comments Download
M ui/views/controls/scroll_view_unittest.cc View 1 2 3 4 5 2 chunks +2 lines, -1 line 0 comments Download
M ui/views/controls/scrollbar/base_scroll_bar.h View 1 2 3 4 chunks +0 lines, -15 lines 0 comments Download
M ui/views/controls/scrollbar/base_scroll_bar.cc View 1 2 3 9 chunks +4 lines, -40 lines 0 comments Download
M ui/views/controls/scrollbar/base_scroll_bar_thumb.h View 1 2 3 2 chunks +5 lines, -2 lines 0 comments Download
M ui/views/controls/scrollbar/base_scroll_bar_thumb.cc View 1 2 3 4 5 6 7 chunks +19 lines, -19 lines 0 comments Download
M ui/views/controls/scrollbar/overlay_scroll_bar.h View 1 2 3 2 chunks +31 lines, -5 lines 0 comments Download
M ui/views/controls/scrollbar/overlay_scroll_bar.cc View 1 2 3 4 2 chunks +96 lines, -90 lines 0 comments Download
M ui/views/controls/scrollbar/scroll_bar.h View 1 chunk +0 lines, -3 lines 0 comments Download
M ui/views/controls/scrollbar/scroll_bar.cc View 1 chunk +0 lines, -6 lines 0 comments Download

Messages

Total messages: 44 (20 generated)
Evan Stade
Terry, can you take a first look before I ask for Sadrul's OWNER review? https://codereview.chromium.org/2496643002/diff/1/ui/views/controls/scrollbar/base_scroll_bar_thumb.cc ...
4 years, 1 month ago (2016-11-10 19:31:40 UTC) #5
tdanderson
Took a first look, and handing over to Sadrul for OWNERS review. https://codereview.chromium.org/2496643002/diff/20001/ui/views/controls/scrollbar/overlay_scroll_bar.cc File ui/views/controls/scrollbar/overlay_scroll_bar.cc ...
4 years, 1 month ago (2016-11-10 20:50:22 UTC) #7
Evan Stade
https://codereview.chromium.org/2496643002/diff/20001/ui/views/controls/scrollbar/overlay_scroll_bar.cc File ui/views/controls/scrollbar/overlay_scroll_bar.cc (right): https://codereview.chromium.org/2496643002/diff/20001/ui/views/controls/scrollbar/overlay_scroll_bar.cc#newcode20 ui/views/controls/scrollbar/overlay_scroll_bar.cc:20: // The thumb is slimmer when unhovered by this ...
4 years, 1 month ago (2016-11-11 02:46:47 UTC) #8
sadrul
https://codereview.chromium.org/2496643002/diff/40001/ui/views/controls/scrollbar/base_scroll_bar_thumb.h File ui/views/controls/scrollbar/base_scroll_bar_thumb.h (right): https://codereview.chromium.org/2496643002/diff/40001/ui/views/controls/scrollbar/base_scroll_bar_thumb.h#newcode62 ui/views/controls/scrollbar/base_scroll_bar_thumb.h:62: virtual void SetState(CustomButton::ButtonState state); Can you introduce a separate ...
4 years, 1 month ago (2016-11-12 03:01:11 UTC) #9
Evan Stade
https://codereview.chromium.org/2496643002/diff/40001/ui/views/controls/scrollbar/overlay_scroll_bar.cc File ui/views/controls/scrollbar/overlay_scroll_bar.cc (right): https://codereview.chromium.org/2496643002/diff/40001/ui/views/controls/scrollbar/overlay_scroll_bar.cc#newcode103 ui/views/controls/scrollbar/overlay_scroll_bar.cc:103: hover_animation_.Show(); On 2016/11/12 03:01:10, sadrul wrote: > Since the ...
4 years, 1 month ago (2016-11-14 16:56:07 UTC) #10
sadrul
The try-failures in views_unittests look relevant. Mind taking a look at those to see what ...
4 years, 1 month ago (2016-11-14 22:13:31 UTC) #15
varkha
https://codereview.chromium.org/2496643002/diff/80001/ui/views/controls/scrollbar/overlay_scroll_bar.cc File ui/views/controls/scrollbar/overlay_scroll_bar.cc (right): https://codereview.chromium.org/2496643002/diff/80001/ui/views/controls/scrollbar/overlay_scroll_bar.cc#newcode130 ui/views/controls/scrollbar/overlay_scroll_bar.cc:130: layer()->SetOpacity(1.0f); Do you need to stack |layer()| at the ...
4 years, 1 month ago (2016-11-15 00:31:30 UTC) #17
Evan Stade
On 2016/11/14 22:13:31, sadrul wrote: > The try-failures in views_unittests look relevant. Mind taking a ...
4 years, 1 month ago (2016-11-15 00:51:51 UTC) #18
varkha
On 2016/11/15 00:51:51, Evan Stade wrote: > On 2016/11/14 22:13:31, sadrul wrote: > > The ...
4 years, 1 month ago (2016-11-15 01:33:29 UTC) #21
Evan Stade
ping?
4 years, 1 month ago (2016-11-15 23:28:03 UTC) #24
Evan Stade
ah, nevermind, still some test failures..
4 years, 1 month ago (2016-11-15 23:28:23 UTC) #25
Evan Stade
ah, nevermind, still some test failures..
4 years, 1 month ago (2016-11-15 23:28:24 UTC) #26
Evan Stade
ok, tests should be good, ptal
4 years, 1 month ago (2016-11-15 23:54:46 UTC) #27
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/2496643002/120001
4 years, 1 month ago (2016-11-15 23:55:27 UTC) #29
commit-bot: I haz the power
No L-G-T-M from a valid reviewer yet. CQ run can only be started by full ...
4 years, 1 month ago (2016-11-15 23:55:29 UTC) #31
sadrul
4 years, 1 month ago (2016-11-16 00:36:42 UTC) #32
sadrul
lgtm
4 years, 1 month ago (2016-11-16 00:36:49 UTC) #33
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/2496643002/120001
4 years, 1 month ago (2016-11-16 01:25:41 UTC) #35
varkha
lgtm
4 years, 1 month ago (2016-11-16 01:43:22 UTC) #36
commit-bot: I haz the power
Committed patchset #7 (id:120001)
4 years, 1 month ago (2016-11-16 02:34:13 UTC) #38
commit-bot: I haz the power
Patchset 7 (id:??) landed as https://crrev.com/862c7245d9b3f295df0db82f6e17c730d3f54825 Cr-Commit-Position: refs/heads/master@{#432358}
4 years, 1 month ago (2016-11-16 02:36:53 UTC) #40
findit-for-me
FYI: Findit identified this CL at revision 432358 as the culprit for failures in the ...
4 years, 1 month ago (2016-11-16 04:23:18 UTC) #41
tapted
On 2016/11/16 04:23:18, findit-for-me wrote: > FYI: Findit identified this CL at revision 432358 as ...
4 years, 1 month ago (2016-11-16 06:22:33 UTC) #42
Evan Stade
4 years, 1 month ago (2016-11-16 18:32:00 UTC) #44
Message was sent while issue was closed.
On 2016/11/16 06:22:33, tapted wrote:
> On 2016/11/16 04:23:18, findit-for-me wrote:
> > FYI: Findit identified this CL at revision 432358 as the culprit for
> > failures in the build cycles as shown on:
> >
>
https://findit-for-me.appspot.com/waterfall/culprit?key=ag9zfmZpbmRpdC1mb3Itb...
> 
> The failing tests were SystemTrayTest.NullDefaultViewIsNotRecorded, but it
looks
> like they cleared up in
>
https://build.chromium.org/p/chromium.win/builders/Win7%20Tests%20%281%29/bui...
> with a revert ( https://codereview.chromium.org/2506913002 ). 
> 
> (context: I had a merge conflict just as
> https://codereview.chromium.org/2454323002/ was going to land - since it
doesn't
> look like this CL needs reverting, I'll rebase and land my CL. )

thanks!

Powered by Google App Engine
This is Rietveld 408576698