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

Issue 2128543002: Make ViewportScrollCallback an interface and add child and root classes (Closed)

Created:
4 years, 5 months ago by bokan
Modified:
4 years, 5 months ago
Reviewers:
tdresser
CC:
chromium-reviews, kenneth.christiansen, sof, eae+blinkwatch, blink-reviews-dom_chromium.org, dglazkov+blink, blink-reviews, rwlbuis
Base URL:
https://chromium.googlesource.com/chromium/src.git@moveViewportCreationToDocumentAttachment
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Make ViewportScrollCallback an interface and add child and root classes This CL splits the ViewportScrollCallback into two implementations with a common interface. The RootViewportScrollCallback is used for the one root FrameView on a page and holds a pointer to the RootFrameViewport which allows it to swap the root scroller with the layout viewport. It also holds pointers to the TopControls and Overscroll managers allowing it to perform those actions. The ChildViewportScrollCallback is used for all other FrameViews. It's essentially a no-op in that it doesn't perform any non default actions; it simply scrolls the FrameView as usual. Having this split allows the code to be general and avoid special casing the root viewport. BUG=505516 Committed: https://crrev.com/2331411e8433573ca3c6448cf3fcdab82d934649 Cr-Commit-Position: refs/heads/master@{#404195}

Patch Set 1 #

Total comments: 10

Patch Set 2 : tdresser's comments #

Patch Set 3 : Rebase #

Messages

Total messages: 17 (8 generated)
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2128543002/1
4 years, 5 months ago (2016-07-06 14:40:04 UTC) #2
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: linux_chromium_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_rel_ng/builds/257748)
4 years, 5 months ago (2016-07-06 16:01:48 UTC) #4
tdresser
https://codereview.chromium.org/2128543002/diff/1/third_party/WebKit/Source/core/page/scrolling/ChildViewportScrollCallback.h File third_party/WebKit/Source/core/page/scrolling/ChildViewportScrollCallback.h (right): https://codereview.chromium.org/2128543002/diff/1/third_party/WebKit/Source/core/page/scrolling/ChildViewportScrollCallback.h#newcode37 third_party/WebKit/Source/core/page/scrolling/ChildViewportScrollCallback.h:37: WeakMember<ScrollableArea> m_scroller; Should we move this member to the ...
4 years, 5 months ago (2016-07-06 18:28:19 UTC) #7
bokan
ptal https://codereview.chromium.org/2128543002/diff/1/third_party/WebKit/Source/core/page/scrolling/ChildViewportScrollCallback.h File third_party/WebKit/Source/core/page/scrolling/ChildViewportScrollCallback.h (right): https://codereview.chromium.org/2128543002/diff/1/third_party/WebKit/Source/core/page/scrolling/ChildViewportScrollCallback.h#newcode37 third_party/WebKit/Source/core/page/scrolling/ChildViewportScrollCallback.h:37: WeakMember<ScrollableArea> m_scroller; On 2016/07/06 18:28:18, tdresser wrote: > ...
4 years, 5 months ago (2016-07-06 21:12:05 UTC) #8
tdresser
LGTM
4 years, 5 months ago (2016-07-07 13:43:26 UTC) #9
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/2128543002/40001
4 years, 5 months ago (2016-07-07 16:36:02 UTC) #12
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 5 months ago (2016-07-07 18:56:06 UTC) #14
commit-bot: I haz the power
CQ bit was unchecked.
4 years, 5 months ago (2016-07-07 18:56:21 UTC) #15
commit-bot: I haz the power
4 years, 5 months ago (2016-07-07 18:59:29 UTC) #17
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/2331411e8433573ca3c6448cf3fcdab82d934649
Cr-Commit-Position: refs/heads/master@{#404195}

Powered by Google App Engine
This is Rietveld 408576698