[WebLayer] Let the embedder animate top controls in/out.
This CL adds an "animate" flag to Browser.setTopView that allows the embedder to tell WebLayer to animate the top view off the screen when setting it to null, or to animate it down from the top when setting it to a non-null value. The animation off the screen is achieved by removing the View from the view tree, but keeping the bitmap layer in place, hiding the top controls, and then deleting the layer after the animation is complete. Bug: 1108956 Change-Id: Idb9bce6c2633ef6d1d369ccb2741ae6fd1fe43a2 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2335800Reviewed-by:Scott Violet <sky@chromium.org> Reviewed-by:
Khushal <khushalsagar@chromium.org> Reviewed-by:
Bo <boliu@chromium.org> Reviewed-by:
David Bokan <bokan@chromium.org> Commit-Queue: Robbie McElrath <rmcelrath@chromium.org> Cr-Commit-Position: refs/heads/master@{#797826}
Showing
This diff is collapsed.
Please register or sign in to comment