0
Go to file
Xiaodan Zhu 1c145f30fd oak birch: integrate birch bar to Overview
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}
2024-02-22 00:34:07 +00:00
2024-02-21 18:05:16 +00:00
2024-02-21 12:17:16 +00:00
2024-02-21 18:08:40 +00:00

Logo 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.

Description
Chromium是一个开源浏览器项目,提供了一种安全、快速、稳定的方法来体验Web。该浏览器可以在多个平台上下载,包括Mac、Windows、Linux和ChromiumOS。项目原始地址: https://chromium.googlesource.com/chromium/src.git
https://www.mobibrw.com/gitea-mirrors/chromium/src.git
Readme BSD-3-Clause 89 GiB
Languages
C++ 74.4%
Java 8.2%
Objective-C++ 4.6%
TypeScript 4%
Python 2.5%
Other 6.1%