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

Unified Diff: ui/events/blink/blink_event_util.h

Issue 2054193002: Android mouse events shouldn't appear as TouchEvents (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Added meta_state plumbing. Created 4 years, 3 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: ui/events/blink/blink_event_util.h
diff --git a/ui/events/blink/blink_event_util.h b/ui/events/blink/blink_event_util.h
index aa12f9d1dd9132985e7ecf6aeab5964efb5205ae..249003c91fc49548178e4cec88c92e3e5d0c3907 100644
--- a/ui/events/blink/blink_event_util.h
+++ b/ui/events/blink/blink_event_util.h
@@ -51,8 +51,16 @@ std::unique_ptr<blink::WebInputEvent> ScaleWebInputEvent(
const blink::WebInputEvent& event,
float scale);
-blink::WebPointerProperties::PointerType ToWebPointerType(
- MotionEvent::ToolType tool_type);
+blink::WebInputEvent::Type ToWebMouseEventType(MotionEvent::Action action);
+
+void SetWebPointerPropertiesFromMotionEventData(
+ blink::WebPointerProperties& webPointerProperties,
+ int pointer_id,
+ float pressure,
+ float orientation_rad,
+ float tilt_rad,
+ int android_buttons_changed,
+ int tool_type);
int WebEventModifiersToEventFlags(int modifiers);

Powered by Google App Engine
This is Rietveld 408576698