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

Unified Diff: ash/wm/workspace/workspace_event_handler_unittest.cc

Issue 2786693002: Add PointerDetails to ui::MouseEvent's constructors (Closed)
Patch Set: mouse event constructor Created 3 years, 9 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 b785495268772696154ac2f9941a151cb634ada4..ce915dc22bc2f6fb24c04e6f5b9380e429576d1c 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::PointerDetails(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::PointerDetails(ui::EventPointerType::POINTER_TYPE_MOUSE));
generator->Dispatch(&release);
}

Powered by Google App Engine
This is Rietveld 408576698