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

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

Issue 2633233002: Add the pointer type of pen to the synthetic WebMousEvent (Closed)
Patch Set: Make disallow copy private 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_web_input_event_builders.h ('k') | no next file » | 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 e7c5f6da90adde6b5751b78181bea1a49e857603..5efaf54d18ea3e192fff74f7cdd7316ddc170494 100644
--- a/content/common/input/synthetic_web_input_event_builders.cc
+++ b/content/common/input/synthetic_web_input_event_builders.cc
@@ -29,7 +29,8 @@ WebMouseEvent SyntheticWebMouseEventBuilder::Build(
blink::WebInputEvent::Type type,
int window_x,
int window_y,
- int modifiers) {
+ int modifiers,
+ blink::WebPointerProperties::PointerType pointer_type) {
DCHECK(WebInputEvent::isMouseEventType(type));
WebMouseEvent result(type, modifiers,
ui::EventTimeStampToSeconds(ui::EventTimeForNow()));
@@ -38,7 +39,7 @@ WebMouseEvent SyntheticWebMouseEventBuilder::Build(
result.windowX = window_x;
result.windowY = window_y;
result.setModifiers(modifiers);
- result.pointerType = blink::WebPointerProperties::PointerType::Mouse;
+ result.pointerType = pointer_type;
return result;
}
« no previous file with comments | « content/common/input/synthetic_web_input_event_builders.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698