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

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

Issue 2634183002: Support multi-button press for synthetic mouse events (Closed)
Patch Set: button 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
« no previous file with comments | « content/common/input/synthetic_pointer_action_params.cc ('k') | content/common/input_messages.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 c278f8f2608032b1e6d8bc217d0427786ef9d02a..e7c5f6da90adde6b5751b78181bea1a49e857603 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.setModifiers(modifiers);
+ result.pointerType = blink::WebPointerProperties::PointerType::Mouse;
return result;
}
« no previous file with comments | « content/common/input/synthetic_pointer_action_params.cc ('k') | content/common/input_messages.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698