Add support for prefers-color-scheme media queries (fixes issue #2824)

This commit is contained in:
Marshall Greenblatt
2020-09-15 12:34:22 -04:00
parent 5f9bd3ecbd
commit f2c0c3f8fb
4 changed files with 54 additions and 0 deletions

View File

@@ -12,6 +12,7 @@ class CommandLinePrefStore;
namespace content {
class RenderViewHost;
class WebContents;
struct WebPreferences;
} // namespace content
@@ -34,6 +35,8 @@ void SetCommandLinePrefDefaults(CommandLinePrefStore* prefs);
// PrefService and CefBrowserSettings.
void PopulateWebPreferences(content::RenderViewHost* rvh,
content::WebPreferences& web);
bool PopulateWebPreferencesAfterNavigation(content::WebContents* web_contents,
content::WebPreferences& web);
} // namespace renderer_prefs