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

Unified Diff: chrome/browser/ui/ash/launcher/chrome_launcher_controller_impl_browsertest.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: chrome/browser/ui/ash/launcher/chrome_launcher_controller_impl_browsertest.cc
diff --git a/chrome/browser/ui/ash/launcher/chrome_launcher_controller_impl_browsertest.cc b/chrome/browser/ui/ash/launcher/chrome_launcher_controller_impl_browsertest.cc
index 798c68a7e49780daec9e7db0a1f1c3de22ca85a2..78cf82cdadfbaacfb301406f9354a2c93602afc7 100644
--- a/chrome/browser/ui/ash/launcher/chrome_launcher_controller_impl_browsertest.cc
+++ b/chrome/browser/ui/ash/launcher/chrome_launcher_controller_impl_browsertest.cc
@@ -109,9 +109,10 @@ ash::ShelfAction SelectItem(ash::mojom::ShelfItemDelegate* delegate,
ui::EventType event_type) {
std::unique_ptr<ui::Event> event;
if (event_type == ui::ET_MOUSE_PRESSED) {
- event =
- base::MakeUnique<ui::MouseEvent>(event_type, gfx::Point(), gfx::Point(),
- ui::EventTimeForNow(), ui::EF_NONE, 0);
+ event = base::MakeUnique<ui::MouseEvent>(
+ event_type, gfx::Point(), gfx::Point(), ui::EventTimeForNow(),
+ ui::EF_NONE, 0,
+ ui::PointerDetails(ui::EventPointerType::POINTER_TYPE_MOUSE));
} else if (event_type == ui::ET_KEY_RELEASED) {
event = base::MakeUnique<ui::KeyEvent>(event_type, ui::VKEY_UNKNOWN,
ui::EF_NONE);

Powered by Google App Engine
This is Rietveld 408576698