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

Unified Diff: ui/events/cocoa/cocoa_event_utils.h

Issue 2226933004: Mac: Share kScrollbarPixelsPerCocoaTick between ui:: and blink:: events (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase for r411201 Created 4 years, 4 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: ui/events/cocoa/cocoa_event_utils.h
diff --git a/ui/events/cocoa/cocoa_event_utils.h b/ui/events/cocoa/cocoa_event_utils.h
index a5984357537b46e66eadcaeecb56136b30471cd8..71ddab95e788483290d3b7128bacad60d190cf2a 100644
--- a/ui/events/cocoa/cocoa_event_utils.h
+++ b/ui/events/cocoa/cocoa_event_utils.h
@@ -11,6 +11,9 @@
namespace ui {
+// Conversion between wheel delta amounts and number of pixels to scroll.
+constexpr double kScrollbarPixelsPerCocoaTick = 40.0;
+
// Converts the Cocoa |modifiers| bitsum into a ui::EventFlags bitsum.
EVENTS_EXPORT int EventFlagsFromModifiers(NSUInteger modifiers);
« no previous file with comments | « content/browser/renderer_host/input/web_input_event_builders_mac_unittest.mm ('k') | ui/events/cocoa/events_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698