Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 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 | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef CHROME_BROWSER_UI_COCOA_GESTURE_UTILS_H_ | |
| 6 #define CHROME_BROWSER_UI_COCOA_GESTURE_UTILS_H_ | |
| 7 | |
| 8 #include <Foundation/Foundation.h> | |
|
Mark Mentovai
2011/07/26 18:26:26
Don’t need this if you use bool below. Then this f
| |
| 9 | |
| 10 namespace gesture_utils { | |
| 11 | |
| 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. | |
| 14 BOOL RecognizeTwoFingerGestures(); | |
| 15 | |
| 16 // On Lion, returns YES if the scroll direction is "natural"/inverted. All other | |
| 17 // OSes will return NO. | |
| 18 BOOL IsScrollDirectionInverted(); | |
| 19 | |
| 20 } // namespace gesture_utils | |
| 21 | |
| 22 #endif // CHROME_BROWSER_UI_COCOA_GESTURE_UTILS_H_ | |
| OLD | NEW |