commit | 75683df91f662b1a6bc0103eb74a668bda6de04c | [log] [tgz] |
---|---|---|
author | Wenyu Fu <wenyufu@chromium.org> | Wed Feb 12 19:13:32 2025 |
committer | Chromium LUCI CQ <chromium-scoped@luci-project-accounts.iam.gserviceaccount.com> | Wed Feb 12 19:13:32 2025 |
tree | 99ec2e7bd0379cd9fd513e8a4defb56152e00815 | |
parent | e01ed7ad8560ef2a29426d5956222f84d7b13284 [diff] |
[E2E] Use WindowManager.LayoutParams to determine padding for cutout When using EdgeToEdgeController to pad the content, it consumes the system insets but not the display cutout. This CL checks the WindowManager.LayoutParams to decide if the layout should pad the content. This behavior is added to accommodate web compatibility. So far, this is only relevant when Chrome goes to Fullscreen mode. Manual test has been done using https://chrome-edge-to-edge-v2.glitch.me, both when e2e bottom chin is on and off. Test: Manual Bug: 391765516 Change-Id: I4b937428c823a9180b1719fe86f8bcb3b7ba34a0 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6216248 Reviewed-by: Charles Hager <clhager@google.com> Commit-Queue: Wenyu Fu <wenyufu@chromium.org> Cr-Commit-Position: refs/heads/main@{#1419420}
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.