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

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

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
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 #ifndef CHROME_BROWSER_UI_COCOA_GESTURE_UTILS_H_ 5 #ifndef CHROME_BROWSER_UI_COCOA_GESTURE_UTILS_H_
6 #define CHROME_BROWSER_UI_COCOA_GESTURE_UTILS_H_ 6 #define CHROME_BROWSER_UI_COCOA_GESTURE_UTILS_H_
7 7
8 #include <Foundation/Foundation.h> 8 #include <Foundation/Foundation.h>
9 9
10 namespace gesture_utils { 10 namespace gesture_utils {
11 11
12 // On Lion, Apple introduced a new gesture for navigating pages using two-finger 12 // On Lion, Apple introduced a new gesture for navigating pages using two-finger
13 // gestures. Returns YES if two-finger gestures should be recognized. 13 // gestures. Returns YES if two-finger gestures should be recognized.
14 BOOL RecognizeTwoFingerGestures(); 14 BOOL RecognizeTwoFingerGestures();
15 15
16 // On Lion, returns YES if the scroll direction is "natural"/inverted. All other 16 // On Lion, returns YES if the scroll direction is "natural"/inverted. All other
17 // OSes will return NO. 17 // OSes will return NO.
18 BOOL IsScrollDirectionInverted(); 18 BOOL IsScrollDirectionInverted();
19 19
20 } // namespace gesture_utils 20 } // namespace gesture_utils
21 21
22 #endif // CHROME_BROWSER_UI_COCOA_GESTURE_UTILS_H_ 22 #endif // CHROME_BROWSER_UI_COCOA_GESTURE_UTILS_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/cocoa/browser_window_controller_private.mm ('k') | chrome/browser/ui/cocoa/gesture_utils.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698