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

Issue 246293006: Blink Support for Overlay Scrollbar Animation

Created:
6 years, 8 months ago by weiliangc
Modified:
4 years, 9 months ago
Reviewers:
CC:
abarth-chromium, alancutter (OOO until 2018), darktears, bemjb+rendering_chromium.org, blink-layers+watch_chromium.org, blink-reviews, danakj, DaveMoore, dglazkov+blink, dino_apple.com, dstockwell, eae+blinkwatch, Eric Willigers, jamesr, jchaffraix+rendering, kuscher1, leviw+renderwatch, Mike Lawther (Google), ojan, pdr., rjwright, rune+blink, shans, sky, Steve Block, Timothy Loh, trchen, Ian Vollick, wjmclean, zoltan1, Julien - ping for review
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Visibility:
Public.

Description

Blink Support for Overlay Scrollbar Animation Add class ScrollbarStateTransitionAnimator (similar to ScrollAnimator) to add support for size shrink/expand and opacity change animator when mouse is over/away from overlay scrollbars. These properties then pass to native theme for painting. Depended on chromium side change 238723004 (landed). BUG=307578 TEST=webkit_unit_tests

Patch Set 1 #

Patch Set 2 : rebase #

Patch Set 3 : take state transition animator out of scroll animator #

Patch Set 4 : rebase #

Patch Set 5 : unittest #

Patch Set 6 : fix try server compile error #

Total comments: 4

Patch Set 7 : rebase #

Patch Set 8 : put StateTransitionAnimator into ScrollAnimator structs #

Patch Set 9 : fix unittest and move unittest to blink_platform_unittests #

Unified diffs Side-by-side diffs Delta from patch set Stats (+678 lines, -13 lines) Patch
M Source/core/page/PageAnimator.cpp View 1 2 3 4 5 6 1 chunk +6 lines, -1 line 0 comments Download
M Source/core/rendering/RenderLayerScrollableArea.cpp View 1 2 3 4 5 6 7 8 1 chunk +1 line, -0 lines 0 comments Download
M Source/platform/blink_platform.gypi View 1 2 3 4 5 6 7 8 2 chunks +3 lines, -0 lines 0 comments Download
M Source/platform/scroll/ScrollAnimatorNone.cpp View 1 2 3 4 5 6 2 chunks +8 lines, -2 lines 0 comments Download
M Source/platform/scroll/ScrollableArea.h View 1 2 3 4 5 6 7 8 5 chunks +15 lines, -1 line 0 comments Download
M Source/platform/scroll/ScrollableArea.cpp View 1 2 3 4 5 6 7 8 4 chunks +47 lines, -1 line 0 comments Download
M Source/platform/scroll/Scrollbar.h View 1 2 3 4 5 6 4 chunks +12 lines, -0 lines 0 comments Download
M Source/platform/scroll/Scrollbar.cpp View 1 2 3 4 5 6 1 chunk +27 lines, -0 lines 0 comments Download
A Source/platform/scroll/ScrollbarStateTransitionAnimator.h View 1 2 3 4 5 6 7 8 1 chunk +105 lines, -0 lines 0 comments Download
A Source/platform/scroll/ScrollbarStateTransitionAnimator.cpp View 1 2 3 4 5 6 7 8 1 chunk +204 lines, -0 lines 0 comments Download
A Source/platform/scroll/ScrollbarStateTransitionAnimatorTest.cpp View 1 2 3 4 5 6 7 8 1 chunk +174 lines, -0 lines 0 comments Download
M Source/platform/scroll/ScrollbarThemeAura.cpp View 1 2 3 4 5 6 2 chunks +7 lines, -1 line 0 comments Download
M Source/platform/scroll/ScrollbarThemeClient.h View 1 2 3 4 5 6 2 chunks +18 lines, -0 lines 0 comments Download
M Source/platform/scroll/ScrollbarThemeOverlay.cpp View 1 2 3 4 5 6 2 chunks +50 lines, -7 lines 0 comments Download
M public/platform/WebThemeEngine.h View 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 27 (2 generated)
weiliangc
Sending this out to get opinion first. Will follow up with testing.
6 years, 6 months ago (2014-06-05 22:58:36 UTC) #1
trchen
On 2014/06/05 22:58:36, weiliangc wrote: > Sending this out to get opinion first. Will follow ...
6 years, 6 months ago (2014-06-05 23:10:28 UTC) #2
trchen
cc/animation/scrollbar_animation_controller_thinning.cc looks like what you described. What is the relationship between that implementation and the ...
6 years, 6 months ago (2014-06-05 23:24:24 UTC) #3
weiliangc
On 2014/06/05 23:24:24, trchen wrote: > cc/animation/scrollbar_animation_controller_thinning.cc looks like what you > described. What is ...
6 years, 6 months ago (2014-06-06 02:12:37 UTC) #4
trchen
On 2014/06/06 02:12:37, weiliangc wrote: > On 2014/06/05 23:24:24, trchen wrote: > > cc/animation/scrollbar_animation_controller_thinning.cc looks ...
6 years, 6 months ago (2014-06-06 02:38:08 UTC) #5
weiliangc
On 2014/06/06 02:38:08, trchen wrote: > On 2014/06/06 02:12:37, weiliangc wrote: > > On 2014/06/05 ...
6 years, 6 months ago (2014-06-06 04:30:08 UTC) #6
danakj
On Fri, Jun 6, 2014 at 6:30 AM, <weiliangc@chromium.org> wrote: > On 2014/06/06 02:38:08, trchen ...
6 years, 6 months ago (2014-06-06 14:27:23 UTC) #7
trchen
On 2014/06/06 14:27:23, danakj wrote: > On Fri, Jun 6, 2014 at 6:30 AM, <mailto:weiliangc@chromium.org> ...
6 years, 6 months ago (2014-06-06 21:28:42 UTC) #8
jamesr
On non-android platforms some scrollbars will have to be handled completely on the main thread ...
6 years, 6 months ago (2014-06-06 22:38:35 UTC) #9
jamesr
On 2014/06/06 21:28:42, trchen wrote: > > We don't turn it on for low-dpi devices ...
6 years, 6 months ago (2014-06-06 22:43:37 UTC) #10
trchen
On 2014/06/06 22:38:35, jamesr wrote: > On non-android platforms some scrollbars will have to be ...
6 years, 6 months ago (2014-06-07 00:25:47 UTC) #11
weiliangc
On 2014/06/07 00:25:47, trchen wrote: > On 2014/06/06 22:38:35, jamesr wrote: > > On non-android ...
6 years, 6 months ago (2014-06-12 19:46:48 UTC) #12
weiliangc
Now with unit test. PTAL.
6 years, 6 months ago (2014-06-12 19:47:38 UTC) #13
weiliangc
On 2014/06/12 19:47:38, weiliangc wrote: > Now with unit test. PTAL. Changed reviewer to people ...
6 years, 6 months ago (2014-06-16 21:38:08 UTC) #14
abarth-chromium
https://codereview.chromium.org/246293006/diff/160001/Source/platform/scroll/ScrollableArea.cpp File Source/platform/scroll/ScrollableArea.cpp (right): https://codereview.chromium.org/246293006/diff/160001/Source/platform/scroll/ScrollableArea.cpp#newcode53 Source/platform/scroll/ScrollableArea.cpp:53: void* stateTranstionAnimatorPointer; The point of having this struct here ...
6 years, 6 months ago (2014-06-16 22:47:04 UTC) #15
weiliangc
On 2014/06/16 22:47:04, abarth wrote: > https://codereview.chromium.org/246293006/diff/160001/Source/platform/scroll/ScrollableArea.cpp > File Source/platform/scroll/ScrollableArea.cpp (right): > > https://codereview.chromium.org/246293006/diff/160001/Source/platform/scroll/ScrollableArea.cpp#newcode53 > ...
6 years, 6 months ago (2014-06-17 16:27:58 UTC) #16
abarth-chromium
On 2014/06/17 at 16:27:58, weiliangc wrote: > Also is this just a general rule of ...
6 years, 6 months ago (2014-06-17 21:47:20 UTC) #17
jamesr
Android doesn't have main thread driven scrollbars, so they only need animation machinery in the ...
6 years, 6 months ago (2014-06-17 22:01:48 UTC) #18
abarth-chromium
It seems a shame to waste memory on Android to service desktop.
6 years, 6 months ago (2014-06-17 23:53:27 UTC) #19
jamesr
Pretty much all of the fields on WebCore::Scrollbar are waste on android. I don't disagree ...
6 years, 6 months ago (2014-06-18 00:02:53 UTC) #20
abarth-chromium
On 2014/06/18 at 00:02:53, jamesr wrote: > Pretty much all of the fields on WebCore::Scrollbar ...
6 years, 6 months ago (2014-06-18 00:09:18 UTC) #21
weiliangc
On 2014/06/18 00:09:18, abarth wrote: > On 2014/06/18 at 00:02:53, jamesr wrote: > > Pretty ...
6 years, 6 months ago (2014-06-23 21:22:54 UTC) #22
abarth-chromium
I have no objection to this CL, but I'm not interested in reviewing it further. ...
6 years, 6 months ago (2014-06-23 21:52:43 UTC) #23
weiliangc
Rebased, and addressed review comments.
6 years, 3 months ago (2014-09-16 21:54:02 UTC) #25
weiliangc
6 years, 2 months ago (2014-10-01 19:07:32 UTC) #26
Will split into smaller patches. Starting CL 619193003

Powered by Google App Engine
This is Rietveld 408576698