commit | 030f13f3ef87c96a5ba80914632e2255b3ddeedb | [log] [tgz] |
---|---|---|
author | EmiliaPaz <emiliapaz@chromium.org> | Thu Oct 10 19:42:23 2024 |
committer | Chromium LUCI CQ <chromium-scoped@luci-project-accounts.iam.gserviceaccount.com> | Thu Oct 10 19:42:23 2024 |
tree | ed0809b04337105f267739ebd6e79d221f4ab2f6 | |
parent | d002f1d911a720adaaf3b0b5efdfdda36ea89925 [diff] |
[Extensions c2s] Add MainPageState for extensions menu Latest UI mocks have changed part of the extensions menu content and visibility under ExtensionsMenuAccessControl feature flag. The content in the menu's main page can be better reflected by a MainPageState enum. Given a state, the view controller can update the different parts of the main page following MVC. This CL introduces: - MainPageState enum - A new string when site for restricted and policy blocked sites Rest of functionality is kept the same way Main page update follows: 1. ExtensionsMenuViewController computes the main page state 2. Then, given a state it computes the controls values (e.g site setting toggle visibility) 3. Passes those values to ExtensionsMenuMainPageView to update the view Next CLs will: - update the message section based on MainPageState and thus get rid of MessageSection enum - add a tooltip to site settings Screenshot - kRestrictedSite: https://drive.google.com/file/d/1KQszZnyYOGEcRZlHH5QXaMESeD7lJdck/view?usp=drive_link Bug: 40879945 Change-Id: Ic6ee532988fa693fead19dfd5e047cad1a5076bc Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5898339 Reviewed-by: Darryl James <dljames@chromium.org> Commit-Queue: Emilia Paz <emiliapaz@chromium.org> Cr-Commit-Position: refs/heads/main@{#1366996}
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.