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

Unified Diff: base/mac/mac_util.mm

Issue 10092017: Mac: Prevent NTP mousewheel events from being suppressed on Lion. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Fix scrolling when over page switcher. Created 8 years, 8 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: base/mac/mac_util.mm
diff --git a/base/mac/mac_util.mm b/base/mac/mac_util.mm
index ad735968f35d50c9d8fab0c9d059f4e7af1fa115..6c45d51f4882bdf36e555a6a19b895cb029280ae 100644
--- a/base/mac/mac_util.mm
+++ b/base/mac/mac_util.mm
@@ -696,5 +696,11 @@ bool ParseModelIdentifier(const std::string& ident,
return true;
}
+bool IsSwipeTrackingFromScrollEventsEnabled() {
+ SEL selector = @selector(isSwipeTrackingFromScrollEventsEnabled);
+ return [NSEvent respondsToSelector:selector]
+ && [NSEvent performSelector:selector];
+}
+
} // namespace mac
} // namespace base

Powered by Google App Engine
This is Rietveld 408576698