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

Unified Diff: ash/common/shelf/shelf_button_pressed_metric_tracker_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/common/shelf/shelf_button_pressed_metric_tracker_unittest.cc
diff --git a/ash/common/shelf/shelf_button_pressed_metric_tracker_unittest.cc b/ash/common/shelf/shelf_button_pressed_metric_tracker_unittest.cc
index 4127b1a792c3311ba9c891b4a67c1fe25b651063..03188db628ba2dec56eac6cb3a3776f5cbbdb1e2 100644
--- a/ash/common/shelf/shelf_button_pressed_metric_tracker_unittest.cc
+++ b/ash/common/shelf/shelf_button_pressed_metric_tracker_unittest.cc
@@ -158,8 +158,9 @@ TEST_F(ShelfButtonPressedMetricTrackerTest,
if (WmShell::Get()->IsRunningInMash())
return;
- const ui::MouseEvent mouse_event(ui::ET_MOUSE_PRESSED, gfx::Point(),
- gfx::Point(), base::TimeTicks(), 0, 0);
+ const ui::MouseEvent mouse_event(
+ ui::ET_MOUSE_PRESSED, gfx::Point(), gfx::Point(), base::TimeTicks(), 0, 0,
+ ui::PointerDetails(ui::EventPointerType::POINTER_TYPE_MOUSE));
base::UserActionTester user_action_tester;
ButtonPressed(mouse_event);

Powered by Google App Engine
This is Rietveld 408576698