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

Unified Diff: components/mus/view_tree_unittest.cc

Issue 1313353010: Overhaul Mandoline event transport code (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fixed gn check Created 5 years, 3 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
« no previous file with comments | « components/mus/gesture_manager_unittest.cc ('k') | components/pdf_viewer/pdf_viewer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/mus/view_tree_unittest.cc
diff --git a/components/mus/view_tree_unittest.cc b/components/mus/view_tree_unittest.cc
index 7ff457862e53202015556479a670da19b9ae1d71..71380377935a8521cf136a1af52c46844d66ace9 100644
--- a/components/mus/view_tree_unittest.cc
+++ b/components/mus/view_tree_unittest.cc
@@ -251,8 +251,8 @@ mojo::EventPtr CreatePointerDownEvent(int x, int y) {
event->action = mojo::EVENT_TYPE_POINTER_DOWN;
event->pointer_data = mojo::PointerData::New();
event->pointer_data->pointer_id = 1u;
- event->pointer_data->x = x;
- event->pointer_data->y = y;
+ event->pointer_data->location->x = x;
+ event->pointer_data->location->y = y;
return event.Pass();
}
@@ -261,8 +261,8 @@ mojo::EventPtr CreatePointerUpEvent(int x, int y) {
event->action = mojo::EVENT_TYPE_POINTER_UP;
event->pointer_data = mojo::PointerData::New();
event->pointer_data->pointer_id = 1u;
- event->pointer_data->x = x;
- event->pointer_data->y = y;
+ event->pointer_data->location->x = x;
+ event->pointer_data->location->y = y;
return event.Pass();
}
« no previous file with comments | « components/mus/gesture_manager_unittest.cc ('k') | components/pdf_viewer/pdf_viewer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698