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

Unified Diff: ui/aura/remote_window_tree_host_win.cc

Issue 1260453006: ui: events: Add a class to hold common touch and stylus properties (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address build problems, add accessor and unit tests. Created 5 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/aura/remote_window_tree_host_win.cc
diff --git a/ui/aura/remote_window_tree_host_win.cc b/ui/aura/remote_window_tree_host_win.cc
index 842598c823ffdafd851c9ebed9b692d8be36e67d..d109ea489c3bd3dd90c7ec6725b34712711fca09 100644
--- a/ui/aura/remote_window_tree_host_win.cc
+++ b/ui/aura/remote_window_tree_host_win.cc
@@ -306,8 +306,9 @@ void RemoteWindowTreeHostWin::OnMouseMoved(int32 x, int32 y, int32 flags) {
return;
gfx::Point location = PointFromNativeEvent(x, y);
- ui::MouseEvent event(ui::ET_MOUSE_MOVED, location, location,
- ui::EventTimeForNow(), flags, 0);
+ ui::MouseEvent event(
+ ui::ET_MOUSE_MOVED, location, location, ui::EventTimeForNow(), flags, 0,
+ ui::PointerEventDetails(ui::EventPointerType::POINTER_TYPE_MOUSE));
SendEventToProcessor(&event);
}
@@ -316,7 +317,8 @@ void RemoteWindowTreeHostWin::OnMouseButton(
gfx::Point location = PointFromNativeEvent(params.x, params.y);
ui::MouseEvent mouse_event(
params.event_type, location, location, ui::EventTimeForNow(),
- static_cast<int>(params.flags), static_cast<int>(params.changed_button));
+ static_cast<int>(params.flags), static_cast<int>(params.changed_button),
+ ui::PointerEventDetails(ui::EventPointerType::POINTER_TYPE_MOUSE));
SetEventFlags(params.flags | key_event_flags());
if (params.event_type == ui::ET_MOUSEWHEEL) {

Powered by Google App Engine
This is Rietveld 408576698