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

Unified Diff: services/ui/ws/drag_controller_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: services/ui/ws/drag_controller_unittest.cc
diff --git a/services/ui/ws/drag_controller_unittest.cc b/services/ui/ws/drag_controller_unittest.cc
index 335264077dbcef9711bb96d7d71b59b7979cdfba..1a0f6cde076ad76362091e6253ac07d8663ea5df 100644
--- a/services/ui/ws/drag_controller_unittest.cc
+++ b/services/ui/ws/drag_controller_unittest.cc
@@ -169,9 +169,10 @@ class DragControllerTest : public testing::Test,
bool mouse_released,
uint32_t flags,
const gfx::Point& position) {
- ui::PointerEvent event(
- ui::MouseEvent(mouse_released ? ET_MOUSE_RELEASED : ET_MOUSE_PRESSED,
- position, position, ui::EventTimeForNow(), flags, 0));
+ ui::PointerEvent event(ui::MouseEvent(
+ mouse_released ? ET_MOUSE_RELEASED : ET_MOUSE_PRESSED, position,
+ position, ui::EventTimeForNow(), flags, 0,
+ ui::PointerDetails(ui::EventPointerType::POINTER_TYPE_MOUSE)));
drag_operation_->DispatchPointerEvent(event,
window ? window->window() : nullptr);
}

Powered by Google App Engine
This is Rietveld 408576698