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

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: Fixed a test, etc. Created 4 years, 1 month 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/android/motion_event_android_unittest.cc ('k') | ui/events/blink/blink_event_util.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 247ce4f2e6675dd6d3a5dd0ce292246fc2c8eef2..c325290c2b758b10099f0809d043b67234356090 100644
--- a/ui/events/blink/blink_event_util.h
+++ b/ui/events/blink/blink_event_util.h
@@ -62,8 +62,16 @@ std::unique_ptr<blink::WebInputEvent> TranslateAndScaleWebInputEvent(
const gfx::Vector2d& delta,
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);
« no previous file with comments | « ui/events/android/motion_event_android_unittest.cc ('k') | ui/events/blink/blink_event_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698