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

Unified Diff: content/common/input/synthetic_web_input_event_builders.cc

Issue 2621353003: Replace mouse actions in pointer event tests with pointerActionSequence (Closed)
Patch Set: mouse test Created 3 years, 11 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/common/input/synthetic_web_input_event_builders.cc
diff --git a/content/common/input/synthetic_web_input_event_builders.cc b/content/common/input/synthetic_web_input_event_builders.cc
index 3c5800df885ef52aa3b53d2c959ebe7d15acc3bb..d87df1aa093b267e2801caa799ea3dcf4156cf30 100644
--- a/content/common/input/synthetic_web_input_event_builders.cc
+++ b/content/common/input/synthetic_web_input_event_builders.cc
@@ -37,12 +37,8 @@ WebMouseEvent SyntheticWebMouseEventBuilder::Build(
result.y = window_y;
result.windowX = window_x;
result.windowY = window_y;
-
- if (type == WebInputEvent::MouseDown || type == WebInputEvent::MouseUp)
- result.button = WebMouseEvent::Button::Left;
- else
- result.button = WebMouseEvent::Button::NoButton;
-
+ result.modifiers = modifiers;
+ result.pointerType = blink::WebPointerProperties::PointerType::Mouse;
return result;
}

Powered by Google App Engine
This is Rietveld 408576698