0
Files
src/ios
Raphael Kubo da Costa 7223a2c09f [ios] Use UIStackView to simplify web_view_shell layout code
By making |headerBackgroundView| and |headerContentView| UIStackView
instances, we can let UIStackView figure out a lot of the constraints on
its own and simplify the code significantly:

* |headerBackgroundView| is a 1-item UIStackView that just contains
  |headerContentView|. It inherits the root view's margins so that
  |headerContentView| is laid out respecting the safe area and the
  layout guide margins.

* |headerContentView| is a horizontal UIStackView containing the
  navigation buttons and the location bar. The items are vertically
  centralized and fill the UIStackView horizontally according to the
  content hugging settings (i.e. the location bar expands horizontally,
  the buttons do not).

By comparing screenshots of before and after with //tools/image_diff,
the only difference is a small change to the location bar in height, as
it no longer has a hardcoded size of 32 points.

Change-Id: I9f27dd1e4e60b59b2ac1844c0ae965dad17f9fc6
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6176975
Auto-Submit: Raphael Kubo da Costa <kubo@igalia.com>
Reviewed-by: John Wu <jzw@chromium.org>
Commit-Queue: John Wu <jzw@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1407650}
2025-01-16 16:43:01 -08:00
..
2025-01-09 13:17:11 -08:00

This directory holds code related to Chrome for iOS. See this document for a description of the structure underneath this directory.