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

Unified Diff: ui/events/blink/web_input_event_unittest.cc

Issue 2786693002: Add PointerDetails to ui::MouseEvent's constructors (Closed)
Patch Set: mouse constructor Created 3 years, 8 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
« no previous file with comments | « ui/events/blink/web_input_event_builders_win.cc ('k') | ui/events/event.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/events/blink/web_input_event_unittest.cc
diff --git a/ui/events/blink/web_input_event_unittest.cc b/ui/events/blink/web_input_event_unittest.cc
index c48280c993fef34e2a6a5c782bf858c1fd8380c0..8803cb01603c87102f4ffc1f91274f6478d4db75 100644
--- a/ui/events/blink/web_input_event_unittest.cc
+++ b/ui/events/blink/web_input_event_unittest.cc
@@ -429,9 +429,6 @@ TEST(WebInputEventTest, TestMakeWebMouseEvent) {
{
// Stylus values for PointerDetails.
base::TimeTicks timestamp = EventTimeForNow();
- MouseEvent ui_event(ET_MOUSE_PRESSED, gfx::Point(123, 321),
- gfx::Point(123, 321), timestamp, EF_LEFT_MOUSE_BUTTON,
- EF_LEFT_MOUSE_BUTTON);
PointerDetails pointer_details(EventPointerType::POINTER_TYPE_PEN,
/* id */ 63,
/* radius_x */ 0.0f,
@@ -441,7 +438,9 @@ TEST(WebInputEventTest, TestMakeWebMouseEvent) {
/* tilt_y */ -89.5f,
/* tangential_pressure */ 0.6f,
/* twist */ 269);
- ui_event.set_pointer_details(pointer_details);
+ MouseEvent ui_event(ET_MOUSE_PRESSED, gfx::Point(123, 321),
+ gfx::Point(123, 321), timestamp, EF_LEFT_MOUSE_BUTTON,
+ EF_LEFT_MOUSE_BUTTON, pointer_details);
blink::WebMouseEvent webkit_event =
MakeWebMouseEvent(ui_event, base::Bind(&GetScreenLocationFromEvent));
« no previous file with comments | « ui/events/blink/web_input_event_builders_win.cc ('k') | ui/events/event.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698