Skip to content
Commit ecbf498e authored by Longbo Wei's avatar Longbo Wei Committed by Chromium LUCI CQ
Browse files

kbd-backlight: Use OnKeyboardBrightnessChange

* OnKeyboardBrightnessChange is an observer method that gets called by
  the browser mojo remote. This change will update the
  brightness_percent in slider whenever there is an observerable event
  related to changing keyboard brightness in the backend.

* This CL also fixes the issue where the slider element is not
  properly gated by the flag, and updates the related tests.

video: http://go/scrcast/NDY2NjY3ODg4NDQzMzkyMHxhNmQwNmU5Zi0wYg

Bug: b/326009607
Test: browser_tests -f DevicePagePerDeviceKeyboardSubsection
Change-Id: I0eb98191995360cedb8ead3bf5802e8f263d3dbd
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5399262


Commit-Queue: Longbo Wei <longbowei@google.com>
Reviewed-by: default avatarDavid Padlipsky <dpad@google.com>
Cr-Commit-Position: refs/heads/main@{#1280720}
parent fdb34a08
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment