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

Unified Diff: ash/wm/workspace/workspace_event_handler_unittest.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: ash/wm/workspace/workspace_event_handler_unittest.cc
diff --git a/ash/wm/workspace/workspace_event_handler_unittest.cc b/ash/wm/workspace/workspace_event_handler_unittest.cc
index 5f1e48f1bc407d3d5ed2a3bab5e64ec7fd4ce6a9..5e90bd7d95957e3072000da865917c51f6f1d5cd 100644
--- a/ash/wm/workspace/workspace_event_handler_unittest.cc
+++ b/ash/wm/workspace/workspace_event_handler_unittest.cc
@@ -37,11 +37,15 @@ void ClickButtonWithFlags(ui::test::EventGenerator* generator,
int button,
int flags) {
gfx::Point location = generator->current_location();
- ui::MouseEvent press(ui::ET_MOUSE_PRESSED, location, location,
- ui::EventTimeForNow(), button | flags, button);
+ ui::MouseEvent press(
+ ui::ET_MOUSE_PRESSED, location, location, ui::EventTimeForNow(),
+ button | flags, button,
+ ui::PointerEventDetails(ui::EventPointerType::POINTER_TYPE_MOUSE));
generator->Dispatch(&press);
- ui::MouseEvent release(ui::ET_MOUSE_RELEASED, location, location,
- ui::EventTimeForNow(), button | flags, button);
+ ui::MouseEvent release(
+ ui::ET_MOUSE_RELEASED, location, location, ui::EventTimeForNow(),
+ button | flags, button,
+ ui::PointerEventDetails(ui::EventPointerType::POINTER_TYPE_MOUSE));
generator->Dispatch(&release);
}

Powered by Google App Engine
This is Rietveld 408576698