commit | 419ec7b587493e5b413dbe5caab97cb85975a8a9 | [log] [tgz] |
---|---|---|
author | Charles Zhao <charleszhao@chromium.org> | Mon Apr 04 23:39:48 2022 |
committer | Chromium LUCI CQ <chromium-scoped@luci-project-accounts.iam.gserviceaccount.com> | Mon Apr 04 23:39:48 2022 |
tree | 06d62bc21d3d387b5d0b41bb67a2d14816378676 | |
parent | 835b203aa900889a1a9f5251213c360b7c2839ec [diff] |
[SmartCharging] battery icon. (1) A super class BatteryInfoViewBase is added for both battery info and battery icon in the system info panel. (2) If SmartCharging is enabled, show the battery icon with the percentage in the BatteryIconView; and show the status in the BatteryLabelView. (3) If SmartCharging is not enabled, show the BatteryLabelView as before. (4) The GetBatteryImage need to be refactored to support extra badge_color since the Icon in the system info panel has a different background. BUG=b:226002490 Change-Id: Idd7e100edb783cf1ed5bede0ce54190102d5db84 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3529603 Reviewed-by: Alex Newcomer <newcomer@chromium.org> Reviewed-by: Xiyuan Xia <xiyuan@chromium.org> Commit-Queue: Guoxing Zhao <charleszhao@chromium.org> Cr-Commit-Position: refs/heads/main@{#988747}
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.