Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(227)

Side by Side Diff: third_party/WebKit/Source/platform/graphics/HighContrast.h

Issue 2878573003: Initial skeleton of high-contrast mode. (Closed)
Patch Set: Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698