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

Unified Diff: content/browser/accessibility/touch_accessibility_aura_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: content/browser/accessibility/touch_accessibility_aura_browsertest.cc
diff --git a/content/browser/accessibility/touch_accessibility_aura_browsertest.cc b/content/browser/accessibility/touch_accessibility_aura_browsertest.cc
index dd59c9d1d06d8bab28da0bb82a7e9e5dd459ca06..deb0c6d5a923588cbb7ed8603be22c6f8c52d171 100644
--- a/content/browser/accessibility/touch_accessibility_aura_browsertest.cc
+++ b/content/browser/accessibility/touch_accessibility_aura_browsertest.cc
@@ -47,9 +47,9 @@ class TouchAccessibilityBrowserTest : public ContentBrowserTest {
gfx::Rect bounds = window->GetBoundsInRootWindow();
gfx::Point location(bounds.x() + x, bounds.y() + y);
int flags = ui::EF_TOUCH_ACCESSIBILITY;
- std::unique_ptr<ui::Event> mouse_move_event(
- new ui::MouseEvent(ui::ET_MOUSE_MOVED, location, location,
- ui::EventTimeForNow(), flags, 0));
+ std::unique_ptr<ui::Event> mouse_move_event(new ui::MouseEvent(
+ ui::ET_MOUSE_MOVED, location, location, ui::EventTimeForNow(), flags, 0,
+ ui::PointerDetails(ui::EventPointerType::POINTER_TYPE_MOUSE)));
ignore_result(sink->OnEventFromSource(mouse_move_event.get()));
}

Powered by Google App Engine
This is Rietveld 408576698