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

Side by Side Diff: chrome/browser/ui/cocoa/gesture_utils.mm

Issue 7465072: Merge 94122 - [Mac] Respect natural/inverted scroll direction on Lion when gesturing. (Closed) Base URL: svn://svn.chromium.org/chrome/branches/835/src/
Patch Set: Created 9 years, 5 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 | Annotate | Revision Log
« no previous file with comments | « chrome/browser/ui/cocoa/gesture_utils.h ('k') | chrome/chrome_browser.gypi » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « chrome/browser/ui/cocoa/gesture_utils.h ('k') | chrome/chrome_browser.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698