| Index: chrome/browser/themes/theme_service_mac.mm
|
| diff --git a/chrome/browser/themes/theme_service_mac.mm b/chrome/browser/themes/theme_service_mac.mm
|
| index a5654b94eff35a438fc1f8dfdb8cf49d10a3d705..21d2fdc37daee434acc19999e047e4ea0eadf69c 100644
|
| --- a/chrome/browser/themes/theme_service_mac.mm
|
| +++ b/chrome/browser/themes/theme_service_mac.mm
|
| @@ -17,6 +17,12 @@
|
| #include "ui/gfx/color_utils.h"
|
| #include "ui/gfx/image/image.h"
|
|
|
| +@interface NSWorkspace (Redeclarations)
|
| +
|
| +@property(readonly) BOOL accessibilityDisplayShouldIncreaseContrast;
|
| +
|
| +@end
|
| +
|
| NSString* const kBrowserThemeDidChangeNotification =
|
| @"BrowserThemeDidChangeNotification";
|
|
|
| @@ -405,3 +411,13 @@ NSColor* ThemeService::BrowserThemeProvider::GetNSColorTint(int id) const {
|
| NSGradient* ThemeService::BrowserThemeProvider::GetNSGradient(int id) const {
|
| return theme_service_.GetNSGradient(id);
|
| }
|
| +
|
| +bool ThemeService::BrowserThemeProvider::ShouldIncreaseContrast() const {
|
| + NSWorkspace* workspace = [NSWorkspace sharedWorkspace];
|
| + if ([workspace
|
| + respondsToSelector:@selector(
|
| + accessibilityDisplayShouldIncreaseContrast)]) {
|
| + return workspace.accessibilityDisplayShouldIncreaseContrast == YES;
|
| + }
|
| + return false;
|
| +}
|
|
|