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

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

Issue 2036873002: Making EventSender talk to the right WebWidget (for OOPIF support). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Use RenderWidget::viewRect() [rather than windowRect()] in TransformScreenToWidgetCoordinates. Created 4 years, 2 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..247ce4f2e6675dd6d3a5dd0ce292246fc2c8eef2 100644
--- a/ui/events/blink/blink_event_util.h
+++ b/ui/events/blink/blink_event_util.h
@@ -22,6 +22,7 @@ class WebTouchEvent;
namespace gfx {
class PointF;
+class Vector2d;
}
namespace ui {
@@ -51,6 +52,16 @@ std::unique_ptr<blink::WebInputEvent> ScaleWebInputEvent(
const blink::WebInputEvent& event,
float scale);
+// Transforms coordinates and other properties of |event|, by
+// 1) translating / shifting by |delta| and
+// 2) scaling by |scale|.
+// If |event| does not need to change, returns nullptr.
+// Otherwise, returns the transformed version of |event|.
+std::unique_ptr<blink::WebInputEvent> TranslateAndScaleWebInputEvent(
+ const blink::WebInputEvent& event,
+ const gfx::Vector2d& delta,
+ float scale);
+
blink::WebPointerProperties::PointerType ToWebPointerType(
MotionEvent::ToolType tool_type);
« no previous file with comments | « third_party/WebKit/LayoutTests/FlagExpectations/site-per-process ('k') | ui/events/blink/blink_event_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698