Chromium Code Reviews| Index: third_party/WebKit/Source/platform/graphics/HighContrast.h |
| diff --git a/third_party/WebKit/Source/platform/graphics/HighContrast.h b/third_party/WebKit/Source/platform/graphics/HighContrast.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..2c198fc07b9d31fb02275f81a0eca89147035dd1 |
| --- /dev/null |
| +++ b/third_party/WebKit/Source/platform/graphics/HighContrast.h |
| @@ -0,0 +1,27 @@ |
| +// Copyright 2017 The Chromium Authors. All rights reserved. |
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +#ifndef HighContrast_h |
| +#define HighContrast_h |
|
chrishtr
2017/06/05 16:35:19
Rename this file HighContrastSettings to match the
dmazzoni
2017/06/06 05:23:24
Done.
|
| + |
| +namespace blink { |
| + |
| +enum class HighContrastMode { |
| + // Default, drawing is unfiltered. |
| + kOff, |
| + // For testing only, does a simple 8-bit invert of every RGB pixel component. |
| + kSimpleInvertForTesting, |
| + kInvertBrightness, |
| + kInvertLightness, |
| +}; |
| + |
| +struct HighContrastSettings { |
| + HighContrastMode mode; |
|
chrishtr
2017/06/05 16:35:18
Initialize these to the defaults.
dmazzoni
2017/06/06 05:23:25
Done.
|
| + bool grayscale; |
| + float contrast; // Valid range from -1.0 to 1.0 |
| +}; |
| + |
| +} // namespace blink |
| + |
| +#endif // HighContrast_h |