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

Unified Diff: chrome/browser/platform_util_mac.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 grammar & style. 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: chrome/browser/platform_util_mac.mm
diff --git a/chrome/browser/platform_util_mac.mm b/chrome/browser/platform_util_mac.mm
index 0debf7b8ea6230cf8e279e9c348c3673f832c115..fa582d598f4ed4bb1f517d57a724c1caccf225f4 100644
--- a/chrome/browser/platform_util_mac.mm
+++ b/chrome/browser/platform_util_mac.mm
@@ -154,4 +154,10 @@ bool IsVisible(gfx::NativeView view) {
[[view window] isVisible]);
}
+bool IsSwipeTrackingFromScrollEventsEnabled() {
+ SEL selector = @selector(isSwipeTrackingFromScrollEventsEnabled);
+ return [NSEvent respondsToSelector:selector]
+ && [NSEvent performSelector:selector];
+}
+
} // namespace platform_util
« no previous file with comments | « chrome/browser/platform_util.h ('k') | chrome/browser/renderer_host/chrome_render_widget_host_view_mac_delegate.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698