commit | 4bca290ac4b9a4d763068a31917a9e2dbd4c600f | [log] [tgz] |
---|---|---|
author | Emily Stark <[email protected]> | Mon Jun 29 21:02:30 2020 |
committer | Commit Bot <[email protected]> | Mon Jun 29 21:02:30 2020 |
tree | ec3c08adfc5fdcf684d07bca7ea8c7722796e75b | |
parent | 73410df6f283c921447f61e9d86c7fd04deb9bbc [diff] |
Omnibox UI: animate URL elisions from both ends of URL This CL adds a field trial option to elide not just the path, but also subdomains beyond the registrable domain. To support this option, the animation has to get fancier: we can now longer fade the color of the path, but must instead animate the display rect and offset. (The mocks also have a fade that happens while the display rect is changing, but I haven't implemented that yet.) I've replaced PathFadeAnimation with ElideAnimation that elides or unelides to a particular range of the string. Because the animation sets and can query state on the RenderText (the display rect and display offset), we can collapse the hover fade-in and fade-out animations into one animation. I've also cleaned up a couple other things along the way, mostly removing the extra has_started_ state on the animation and replacing it with GetCurrentValue(). Bug: 1090393 Change-Id: Iccd3ba52b74152bf207c440a549a8314da3da704 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2261893 Commit-Queue: Emily Stark <[email protected]> Reviewed-by: Justin Donnelly <[email protected]> Cr-Commit-Position: refs/heads/master@{#783666}
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.
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.