Commit 4d39420b authored by W. James MacLean's avatar W. James MacLean Committed by Commit Bot

Refer tooltip text to root view.

With the new async hit-testing code, the RenderWidgetHostViewGuest-
specific code in RenderWidgetHostInputEventRouter::FindMouseEventTarget
no longer seems to be hit, and thus mouse events are bypassing the
embedder (and hence the BrowserPlugin) for PDFs.

This CL changes RenderWidgetHostViewGuest so that it refers tooltip
text requests directly to the root view, instead of sending them to
the BrowserPlugin.

Bug: 807236
Change-Id: Ic943e6bca70035fb5ac9198281412fbc6b7887f1
Reviewed-on: https://chromium-review.googlesource.com/894145Reviewed-by: default avatarKen Buchanan <kenrb@chromium.org>
Reviewed-by: default avatarNasko Oskov <nasko@chromium.org>
Commit-Queue: James MacLean <wjmaclean@chromium.org>
Cr-Commit-Position: refs/heads/master@{#533306}
parent 766e0b02
...@@ -366,8 +366,9 @@ RenderWidgetHostViewGuest::GetTouchSelectionControllerClientManager() { ...@@ -366,8 +366,9 @@ RenderWidgetHostViewGuest::GetTouchSelectionControllerClientManager() {
void RenderWidgetHostViewGuest::SetTooltipText( void RenderWidgetHostViewGuest::SetTooltipText(
const base::string16& tooltip_text) { const base::string16& tooltip_text) {
if (guest_) RenderWidgetHostViewBase* root_view = GetRootView(this);
guest_->SetTooltipText(tooltip_text); if (root_view)
root_view->SetTooltipText(tooltip_text);
} }
void RenderWidgetHostViewGuest::SendSurfaceInfoToEmbedderImpl( void RenderWidgetHostViewGuest::SendSurfaceInfoToEmbedderImpl(
......
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