Commit c46e9b49 authored by Aran Gilman's avatar Aran Gilman Committed by Commit Bot

Move HighContrastPagePolicy to high_contrast_settings.h.

Bug: 925949
Change-Id: I82760c97fd583bc509058fec4cd8540e4fe0e19c
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1474514
Commit-Queue: Aran Gilman <gilmanmh@google.com>
Reviewed-by: default avatarChris Harrelson <chrishtr@chromium.org>
Reviewed-by: default avatarDominic Mazzoni <dmazzoni@chromium.org>
Cr-Commit-Position: refs/heads/master@{#637558}
parent 5578f2db
......@@ -12,14 +12,6 @@
namespace blink {
// TODO(https://crbug.com/925949): Move this to high_contrast_settings.h.
enum class HighContrastPagePolicy {
// Apply high-contrast filter to all frames, regardless of content.
kFilterAll,
// Apply high-contrast filter to frames based on background color.
kFilterByBackground,
};
// Extract high contrast settings from |settings| and modify them as needed
// based on |layout_object|.
HighContrastSettings CORE_EXPORT
......
......@@ -25,6 +25,13 @@ enum class HighContrastImagePolicy {
kFilterSmart,
};
enum class HighContrastPagePolicy {
// Apply high-contrast filter to all frames, regardless of content.
kFilterAll,
// Apply high-contrast filter to frames based on background color.
kFilterByBackground,
};
struct HighContrastSettings {
HighContrastMode mode = HighContrastMode::kOff;
bool grayscale = false;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment