
This cl integrates the birch bar to Overview grid. We mainly simulate how the desk bar was added to the Overview. The cl made following changes: - Add a relayout callback list to BirchBarView which will be called after birch bar relayout with the relayout reason. With this, the overview grid could reposition the windows when the birch bar bounds change due to adding or removing chips. - Only create the secondary chips row of birch bar when it holds chips. Otherwise, there will always be child spacing between two rows. - Add birch bar view, birch bar widget attributes to OverviewGrid. - Initialize, update, and destroy the birch bar for certain conditions. - Separate the overview grid paddings calculation into two functions since calculating birch bar bounds needs the horizontal paddings to estimate available space. Vertical paddings calculation needs the accurate birch bar bounds. - Add unit tests for birch bar. Test: BirchBarTest.* All/BirchBarLayoutTest.* Bug: b:324144400 Change-Id: I4364e4e5fa29db656e2e4a76403437146f224479 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5288442 Reviewed-by: Min Chen <minch@chromium.org> Reviewed-by: Sammie Quon <sammiequon@chromium.org> Commit-Queue: Xiaodan Zhu <zxdan@chromium.org> Cr-Commit-Position: refs/heads/main@{#1263700}
Chromium
Chromium is an open-source browser project that aims to build a safer, faster, and more stable way for all users to experience the web.
The project's web site is https://www.chromium.org.
To check out the source code locally, don't use git clone
! Instead,
follow the instructions on how to get the code.
Documentation in the source is rooted in docs/README.md.
Learn how to Get Around the Chromium Source Code Directory Structure.
For historical reasons, there are some small top level directories. Now the guidance is that new top level directories are for product (e.g. Chrome, Android WebView, Ash). Even if these products have multiple executables, the code should be in subdirectories of the product.
If you found a bug, please file it at https://crbug.com/new.