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

Unified Diff: ui/events/cocoa/events_mac.mm

Issue 1410873012: events: Preserve pointer details in native MouseEvent constructor (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix mac Created 5 years, 1 month 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
« no previous file with comments | « no previous file | ui/events/event.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/events/cocoa/events_mac.mm
diff --git a/ui/events/cocoa/events_mac.mm b/ui/events/cocoa/events_mac.mm
index bf0dd31bdb3dcfb73098750405adeed3cce9fe98..804ffbd5d57b0d103238791fa68eb92befbdf797 100644
--- a/ui/events/cocoa/events_mac.mm
+++ b/ui/events/cocoa/events_mac.mm
@@ -134,6 +134,11 @@ int GetChangedMouseButtonFlagsFromNative(
return 0;
}
+PointerDetails GetMousePointerDetailsFromNative(
+ const base::NativeEvent& native_event) {
+ return PointerDetails(EventPointerType::POINTER_TYPE_MOUSE);
+}
+
gfx::Vector2d GetMouseWheelOffset(const base::NativeEvent& event) {
if ([event respondsToSelector:@selector(hasPreciseScrollingDeltas)] &&
[event hasPreciseScrollingDeltas]) {
« no previous file with comments | « no previous file | ui/events/event.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698