| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #import "chrome/browser/ui/cocoa/gesture_utils.h" | 5 #import "chrome/browser/ui/cocoa/gesture_utils.h" |
| 6 | 6 |
| 7 #include "base/mac/mac_util.h" | 7 #include "base/mac/mac_util.h" |
| 8 | 8 |
| 9 namespace gesture_utils { | 9 namespace gesture_utils { |
| 10 | 10 |
| (...skipping 29 matching lines...) Expand all Loading... |
| 40 | 40 |
| 41 NSUserDefaults* defaults = [NSUserDefaults standardUserDefaults]; | 41 NSUserDefaults* defaults = [NSUserDefaults standardUserDefaults]; |
| 42 // The defaults must be synchronized here otherwise a stale value will be | 42 // The defaults must be synchronized here otherwise a stale value will be |
| 43 // returned for an indeterminante amount of time. For some reason, this is | 43 // returned for an indeterminante amount of time. For some reason, this is |
| 44 // not necessary in |-recognizeTwoFingerGestures|. | 44 // not necessary in |-recognizeTwoFingerGestures|. |
| 45 [defaults synchronize]; | 45 [defaults synchronize]; |
| 46 return [defaults boolForKey:@"com.apple.swipescrolldirection"]; | 46 return [defaults boolForKey:@"com.apple.swipescrolldirection"]; |
| 47 } | 47 } |
| 48 | 48 |
| 49 } // namespace gesture_utils | 49 } // namespace gesture_utils |
| OLD | NEW |