Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ApplicationViewportInsetSupplier sizes WebContents
Moves the logic in CompositorViewHolder that considers how much to inset/outset the View size to size the WebContents into ApplicationViewportInsetSupplier. Do this by adding a new value, webContentsHeightInset, in ViewportInsets which allows clients to go from CompositorViewHolder to WebContents size. A related simplification is removing the RESIZES_CONTENT condition from the fullscreen path in getViewport. This prevented getViewport from resizing the given View height in other VirtualKeyboardModes only to be matched by a similar special case in updateWebContentsSize to then prevent outsetting by the keyboard size. By removing them both the behavior is unchanged. This change also allows us to remove the dependency in ManualFillingMediator on the VirtualKeyboardMode by using the new inset instead. Change-Id: Ia4a907d276d7d70240e2d41d77795aefe199b7cd Bug: 1211066 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4330441 Reviewed-by: David Trainor <dtrainor@chromium.org> Reviewed-by: Friedrich Horschig <fhorschig@chromium.org> Reviewed-by: Matthew Jones <mdjones@chromium.org> Commit-Queue: David Bokan <bokan@chromium.org> Cr-Commit-Position: refs/heads/main@{#1118668}
- Loading branch information
Showing
6 changed files
with
297 additions
and
142 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.