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 #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_ |
OLD | NEW |