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

Unified Diff: chrome/browser/ui/cocoa/gesture_utils.h

Issue 7461080: [Mac] Respect natural/inverted scroll direction on Lion when gesturing. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/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 side-by-side diff with in-line comments
Download patch
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_
« 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