Chromium Code Reviews| Index: chrome/browser/ui/cocoa/gesture_utils.h |
| diff --git a/chrome/browser/ui/cocoa/gesture_utils.h b/chrome/browser/ui/cocoa/gesture_utils.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..83c630c8fc39a5cbf97fe5e0094228b81a089472 |
| --- /dev/null |
| +++ b/chrome/browser/ui/cocoa/gesture_utils.h |
| @@ -0,0 +1,22 @@ |
| +// Copyright (c) 2011 The Chromium Authors. All rights reserved. |
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +#ifndef CHROME_BROWSER_UI_COCOA_GESTURE_UTILS_H_ |
| +#define CHROME_BROWSER_UI_COCOA_GESTURE_UTILS_H_ |
| + |
| +#include <Foundation/Foundation.h> |
|
Mark Mentovai
2011/07/26 18:26:26
Don’t need this if you use bool below. Then this f
|
| + |
| +namespace gesture_utils { |
| + |
| +// On Lion, Apple introduced a new gesture for navigating pages using two-finger |
| +// gestures. Returns YES if two-finger gestures should be recognized. |
| +BOOL RecognizeTwoFingerGestures(); |
| + |
| +// On Lion, returns YES if the scroll direction is "natural"/inverted. All other |
| +// OSes will return NO. |
| +BOOL IsScrollDirectionInverted(); |
| + |
| +} // namespace gesture_utils |
| + |
| +#endif // CHROME_BROWSER_UI_COCOA_GESTURE_UTILS_H_ |