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

Unified Diff: ui/events/win/events_win.cc

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 | « ui/events/events_stub.cc ('k') | ui/events/x/events_x.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/events/win/events_win.cc
diff --git a/ui/events/win/events_win.cc b/ui/events/win/events_win.cc
index c2f35f43abc6ca02dbc0563df2e0d6be6ca9478f..18ddfa985c3dd3d61012138be87e3694a78a2b1a 100644
--- a/ui/events/win/events_win.cc
+++ b/ui/events/win/events_win.cc
@@ -283,6 +283,11 @@ int GetChangedMouseButtonFlagsFromNative(
return 0;
}
+PointerDetails GetMousePointerDetailsFromNative(
+ const base::NativeEvent& native_event) {
+ return PointerDetails(EventPointerType::POINTER_TYPE_MOUSE);
+}
+
gfx::Vector2d GetMouseWheelOffset(const base::NativeEvent& native_event) {
DCHECK(native_event.message == WM_MOUSEWHEEL ||
native_event.message == WM_MOUSEHWHEEL);
« no previous file with comments | « ui/events/events_stub.cc ('k') | ui/events/x/events_x.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698