OLD | NEW |
(Empty) | |
| 1 // Copyright 2017 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef HighContrast_h |
| 6 #define HighContrast_h |
| 7 |
| 8 namespace blink { |
| 9 |
| 10 enum class HighContrastMode { |
| 11 // Default, drawing is unfiltered. |
| 12 kOff, |
| 13 // For testing only, does a simple 8-bit invert of every RGB pixel component. |
| 14 kSimpleInvertForTesting, |
| 15 kInvertBrightness, |
| 16 kInvertLightness, |
| 17 }; |
| 18 |
| 19 struct HighContrastSettings { |
| 20 HighContrastMode mode; |
| 21 bool grayscale; |
| 22 float contrast; // Valid range from -1.0 to 1.0 |
| 23 }; |
| 24 |
| 25 } // namespace blink |
| 26 |
| 27 #endif // HighContrast_h |
OLD | NEW |