DescriptionMake 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 #Dependent Patchsets: Messages
Total messages: 17 (8 generated)
|