Chromium Code Reviews| Index: chrome/browser/ui/cocoa/browser_window_controller_private.mm |
| diff --git a/chrome/browser/ui/cocoa/browser_window_controller_private.mm b/chrome/browser/ui/cocoa/browser_window_controller_private.mm |
| index 577decf195e9043c96a7e83b2a9b81c09a2f3bb6..92999ba57a9642dbb6af802886cbaff39fc1ea5f 100644 |
| --- a/chrome/browser/ui/cocoa/browser_window_controller_private.mm |
| +++ b/chrome/browser/ui/cocoa/browser_window_controller_private.mm |
| @@ -568,4 +568,16 @@ willPositionSheet:(NSWindow*)sheet |
| return [defaults boolForKey:@"AppleEnableSwipeNavigateWithScrolls"]; |
| } |
| +- (BOOL)isScrollDirectionInverted { |
|
Nico
2011/07/26 15:00:18
Can you move this and the previous function to som
Robert Sesek
2011/07/26 15:56:05
Done.
|
| + if (!base::mac::IsOSLionOrLater()) |
| + return NO; |
| + |
| + NSUserDefaults* defaults = [NSUserDefaults standardUserDefaults]; |
| + // The defaults must be synchronized here otherwise a stale value will be |
| + // returned for an indeterminante amount of time. For some reason, this is |
| + // not necessary in |-recognizeTwoFingerGestures|. |
| + [defaults synchronize]; |
| + return [defaults boolForKey:@"com.apple.swipescrolldirection"]; |
| +} |
| + |
| @end // @implementation BrowserWindowController(Private) |