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

Issue 893683003: Implement top controls show/hide functionality for main thread scrolling (Closed)

Created:
5 years, 10 months ago by majidvp
Modified:
5 years, 10 months ago
CC:
blink-reviews, dglazkov+blink, Rick Byers
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Target Ref:
refs/heads/master
Project:
blink
Visibility:
Public.

Description

Implement top controls show/hide functionality for main thread scrolling. This CL connects main-thread scrolls to existing top controls machinery in compositor. Main-thread now updates top controls "content offset" during slow-scrolls. This value is synced with compositor during the commit and ensures that compositor properly animates top controls if necessary. Also deprecated top_controls_layout_height in favor of two properties: - top_controls_height: The height of top controls - top_controls_shrink_viewport: flag controlling if blink view port should shrink as a result of top_controls being show. Chromium side CL: http://crrev.com/814083004 BUG=333143 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=190610

Patch Set 1 #

Patch Set 2 : Guard against null #

Patch Set 3 : Disable tests on Mac OSX #

Patch Set 4 : Fix issue by correcting accidental mistake #

Patch Set 5 : rebase and handle normalize top control offsets #

Patch Set 6 : rebase #

Patch Set 7 : Add Top Controls State #

Patch Set 8 : Minor bug fix #

Patch Set 9 : Correctly handle 0 height #

Patch Set 10 : Add test for zero height case and minor formatting #

Total comments: 2

Patch Set 11 : Address review feedback #

Total comments: 1

Patch Set 12 : handleGestureEvent returns bool #

Patch Set 13 : Fix hiding at the page bottom issue #

Total comments: 31

Patch Set 14 : Address review feedback #

Total comments: 7

Patch Set 15 : Address nitp #

Total comments: 17

Patch Set 16 : Addressed Rick's comments #

Patch Set 17 : Fix minor macro issue #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+810 lines, -62 lines) Patch
M Source/core/core.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +2 lines, -0 lines 0 comments Download
M Source/core/frame/FrameHost.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 3 chunks +3 lines, -0 lines 0 comments Download
M Source/core/frame/FrameHost.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 4 chunks +8 lines, -0 lines 0 comments Download
A Source/core/frame/TopControls.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +105 lines, -0 lines 0 comments Download
A Source/core/frame/TopControls.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +118 lines, -0 lines 0 comments Download
M Source/core/page/ChromeClient.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +2 lines, -0 lines 0 comments Download
M Source/core/page/EventHandler.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +2 lines, -0 lines 0 comments Download
M Source/core/page/EventHandler.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 4 chunks +33 lines, -4 lines 0 comments Download
M Source/web/ChromeClientImpl.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +1 line, -0 lines 0 comments Download
M Source/web/ChromeClientImpl.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +5 lines, -0 lines 0 comments Download
M Source/web/PageWidgetDelegate.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +2 lines, -5 lines 0 comments Download
M Source/web/WebViewImpl.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 3 chunks +6 lines, -12 lines 0 comments Download
M Source/web/WebViewImpl.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 8 chunks +19 lines, -23 lines 0 comments Download
A Source/web/tests/TopControlsTest.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +454 lines, -0 lines 1 comment Download
M Source/web/tests/data/iframe-scrolling.html View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +8 lines, -3 lines 0 comments Download
M Source/web/tests/data/iframe-scrolling-inner.html View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +10 lines, -1 line 0 comments Download
M Source/web/tests/data/overflow-scrolling.html View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +8 lines, -3 lines 0 comments Download
M Source/web/web.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +1 line, -0 lines 0 comments Download
M public/platform/WebLayerTreeView.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 3 chunks +9 lines, -0 lines 0 comments Download
A + public/platform/WebTopControlsState.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +9 lines, -11 lines 0 comments Download
M public/web/WebWidget.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +5 lines, -0 lines 0 comments Download

Messages

Total messages: 21 (6 generated)
majidvp
5 years, 10 months ago (2015-02-09 16:22:56 UTC) #2
aelias_OOO_until_Jul13
My main comment is that since this is effectively TopControlsManager minus the animation logic, it ...
5 years, 10 months ago (2015-02-12 00:47:02 UTC) #4
majidvp
On 2015/02/12 00:47:02, aelias wrote: > My main comment is that since this is effectively ...
5 years, 10 months ago (2015-02-12 22:54:16 UTC) #5
aelias_OOO_until_Jul13
My main substantive comment is that this doesn't interact correctly with scrollable subregions. https://codereview.chromium.org/893683003/diff/220001/public/platform/WebLayerTreeView.h File ...
5 years, 10 months ago (2015-02-13 02:03:18 UTC) #6
bokan
https://codereview.chromium.org/893683003/diff/260001/Source/web/WebViewImpl.cpp File Source/web/WebViewImpl.cpp (right): https://codereview.chromium.org/893683003/diff/260001/Source/web/WebViewImpl.cpp#newcode706 Source/web/WebViewImpl.cpp:706: // Modify event to adjust vertical scroll delta before ...
5 years, 10 months ago (2015-02-13 12:35:26 UTC) #8
majidvp
https://codereview.chromium.org/893683003/diff/260001/Source/web/PageWidgetDelegate.cpp File Source/web/PageWidgetDelegate.cpp (right): https://codereview.chromium.org/893683003/diff/260001/Source/web/PageWidgetDelegate.cpp#newcode159 Source/web/PageWidgetDelegate.cpp:159: case WebInputEvent::GesturePinchBegin: On 2015/02/13 02:03:17, aelias wrote: > Touchscreen ...
5 years, 10 months ago (2015-02-18 21:03:57 UTC) #9
aelias_OOO_until_Jul13
lgtm modulo nits. https://codereview.chromium.org/893683003/diff/280001/Source/core/frame/FrameHost.h File Source/core/frame/FrameHost.h (right): https://codereview.chromium.org/893683003/diff/280001/Source/core/frame/FrameHost.h#newcode105 Source/core/frame/FrameHost.h:105: TopControls m_topControls; Hmm, I guess let's ...
5 years, 10 months ago (2015-02-18 22:40:58 UTC) #10
majidvp
+rbyers for core/ public/ owner's review. https://codereview.chromium.org/893683003/diff/280001/Source/core/frame/FrameHost.h File Source/core/frame/FrameHost.h (right): https://codereview.chromium.org/893683003/diff/280001/Source/core/frame/FrameHost.h#newcode105 Source/core/frame/FrameHost.h:105: TopControls m_topControls; On ...
5 years, 10 months ago (2015-02-19 15:34:40 UTC) #13
Rick Byers
Just a few small questions/comments. https://codereview.chromium.org/893683003/diff/300001/Source/core/frame/TopControls.h File Source/core/frame/TopControls.h (right): https://codereview.chromium.org/893683003/diff/300001/Source/core/frame/TopControls.h#newcode40 Source/core/frame/TopControls.h:40: // scroll is complete ...
5 years, 10 months ago (2015-02-19 16:38:39 UTC) #14
majidvp
https://codereview.chromium.org/893683003/diff/300001/Source/core/frame/TopControls.h File Source/core/frame/TopControls.h (right): https://codereview.chromium.org/893683003/diff/300001/Source/core/frame/TopControls.h#newcode40 Source/core/frame/TopControls.h:40: // scroll is complete (i.e, ScrollEnd, or FlingEnd). On ...
5 years, 10 months ago (2015-02-19 19:18:02 UTC) #15
majidvp
On 2015/02/19 19:18:02, majidvp wrote: > https://codereview.chromium.org/893683003/diff/300001/Source/core/frame/TopControls.h > File Source/core/frame/TopControls.h (right): > > https://codereview.chromium.org/893683003/diff/300001/Source/core/frame/TopControls.h#newcode40 > ...
5 years, 10 months ago (2015-02-20 11:31:06 UTC) #16
Rick Byers
Damn, sorry for the delay - just getting caught up on e-mail now (and someone ...
5 years, 10 months ago (2015-02-21 02:39:11 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/893683003/340001
5 years, 10 months ago (2015-02-21 02:39:54 UTC) #19
commit-bot: I haz the power
Committed patchset #17 (id:340001) as https://src.chromium.org/viewvc/blink?view=rev&revision=190610
5 years, 10 months ago (2015-02-21 02:43:03 UTC) #20
majidvp
5 years, 10 months ago (2015-02-24 13:52:42 UTC) #21
Message was sent while issue was closed.
On 2015/02/21 02:43:03, I haz the power (commit-bot) wrote:
> Committed patchset #17 (id:340001) as
> https://src.chromium.org/viewvc/blink?view=rev&revision=190610

aelias, bokan, rbyers: thanks for helpful review and comments. :)

Powered by Google App Engine
This is Rietveld 408576698