commit | 5d8c49984805b68484a5a44a28e00dbc1bdc60ca | [log] [tgz] |
---|---|---|
author | Rune Lillesveen <futhark@chromium.org> | Wed Apr 24 19:07:30 2019 |
committer | Commit Bot <commit-bot@chromium.org> | Wed Apr 24 19:07:30 2019 |
tree | bf7f159a15942fa26409dc9a655acdcd9139215f | |
parent | 00657aff0589eb13d05afc8fff73b66cac2c5c07 [diff] |
Set preferred color scheme based on NativeTheme. Listen to dark mode native theme changes in WebContentsImpl to pass the preferred color scheme to the renderer and into Blink. The preferred color scheme is used to evaluate the preferred-color-scheme[1] media feature and will be used as the base for computing a used color-scheme for the proposed color-scheme[1] property in CSS. The DarkModeObserver was moved to ui/native-theme to make it available to WebContentsImpl. [1] https://drafts.csswg.org/mediaqueries-5/#prefers-color-scheme [2] https://github.com/w3c/csswg-drafts/issues/3807 Bug: 889087 Change-Id: I2f58664d1ac75bee4ba59258cb867e698cfd508e Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1552829 Commit-Queue: Rune Lillesveen <futhark@chromium.org> Reviewed-by: Kinuko Yasuda <kinuko@chromium.org> Reviewed-by: Peter Kasting <pkasting@chromium.org> Reviewed-by: Leonard Grey <lgrey@chromium.org> Cr-Commit-Position: refs/heads/master@{#653694}
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 .