Commit 4df0ff8a authored by Christopher Cameron's avatar Christopher Cameron Committed by Commit Bot

MacViews: Fix embedded RWHVMac input routing

The method RenderWidgetHostViewMac::GetOffsetFromRootSurface is to be
used to indicate where the view is in its root ui::Compositor. It used
to be that the two were always aligned, but now they can be offset.

Bug: 846018, 	840173
Change-Id: Id3f761d56c75ebd33b75c40c05d46a84b485d162
Reviewed-on: https://chromium-review.googlesource.com/1070883Reviewed-by: default avatarSidney San Martín <sdy@chromium.org>
Commit-Queue: ccameron <ccameron@chromium.org>
Cr-Commit-Position: refs/heads/master@{#561389}
parent 8fa0234c
......@@ -1002,6 +1002,8 @@ bool RenderWidgetHostViewMac::RequestRepaintForTesting() {
}
gfx::Vector2d RenderWidgetHostViewMac::GetOffsetFromRootSurface() {
if (display_only_using_parent_ui_layer_)
return view_bounds_in_window_dip_.OffsetFromOrigin();
return gfx::Vector2d();
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment