commit | ee6035ab3770ea4e92fead9dd0622cfab6d75388 | [log] [tgz] |
---|---|---|
author | Ian Wells <iwells@chromium.org> | Fri Mar 15 18:44:21 2024 |
committer | Chromium LUCI CQ <chromium-scoped@luci-project-accounts.iam.gserviceaccount.com> | Fri Mar 15 18:44:21 2024 |
tree | b66c66216146aafd2fb7812eea52e1b027eb3780 | |
parent | 26d6ef63a8f5ed467b91b2405d8479c51b751af3 [diff] |
Update Read Aloud magic toolbar button when page is translated The page's readability may have changed if it was translated, so the button should check again and possibly show or hide itself. Underlying changes: - Add a TranslationObserver to the selected tab as needed - Change how ReadAloudController notifies outside features of readability events This is a reland of https://chromium-review.googlesource.com/c/chromium/src/+/5319377 with fixes: the TranslationObserver can't be registered in onPageLoadStarted() because it runs for a temporary WebContents during tab restore and there's no chance to unregister. Bug: 326287049 Change-Id: I03894857c15be3f95f2d1cfba6f578d0f054b50b Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5353252 Commit-Queue: Ian Wells <iwells@chromium.org> Reviewed-by: Basia Zimirska <basiaz@google.com> Reviewed-by: Matthew Jones <mdjones@chromium.org> Cr-Commit-Position: refs/heads/main@{#1273563}
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.