Chromium Code Reviews| 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 | |
|
chrishtr
2017/06/05 16:35:19
Rename this file HighContrastSettings to match the
dmazzoni
2017/06/06 05:23:24
Done.
| |
| 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; | |
|
chrishtr
2017/06/05 16:35:18
Initialize these to the defaults.
dmazzoni
2017/06/06 05:23:25
Done.
| |
| 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 |