From 66bf6fb2e5d6cee16e0340fb32b394e1f9668384 Mon Sep 17 00:00:00 2001 From: paulmeyer Date: Wed, 8 Oct 2014 21:42:40 -0700 Subject: Tooltips now show up properly within a . BUG=223892 Review URL: https://codereview.chromium.org/626103005 Cr-Commit-Position: refs/heads/master@{#298776} --- content/browser/browser_plugin/browser_plugin_guest.cc | 5 +++++ content/browser/browser_plugin/browser_plugin_guest.h | 3 +++ 2 files changed, 8 insertions(+) (limited to 'content/browser/browser_plugin') diff --git a/content/browser/browser_plugin/browser_plugin_guest.cc b/content/browser/browser_plugin/browser_plugin_guest.cc index 9886d19..45da41a 100644 --- a/content/browser/browser_plugin/browser_plugin_guest.cc +++ b/content/browser/browser_plugin/browser_plugin_guest.cc @@ -128,6 +128,11 @@ void BrowserPluginGuest::SetFocus(RenderWidgetHost* rwh, bool focused) { } } +void BrowserPluginGuest::SetTooltipText(const base::string16& tooltip_text) { + SendMessageToEmbedder(new BrowserPluginMsg_SetTooltipText( + browser_plugin_instance_id_, tooltip_text)); +} + bool BrowserPluginGuest::LockMouse(bool allowed) { if (!attached() || (mouse_locked_ == allowed)) return false; diff --git a/content/browser/browser_plugin/browser_plugin_guest.h b/content/browser/browser_plugin/browser_plugin_guest.h index e1f342b..a54c0cc 100644 --- a/content/browser/browser_plugin/browser_plugin_guest.h +++ b/content/browser/browser_plugin/browser_plugin_guest.h @@ -104,6 +104,9 @@ class CONTENT_EXPORT BrowserPluginGuest : public WebContentsObserver { // Sets the focus state of the current RenderWidgetHostView. void SetFocus(RenderWidgetHost* rwh, bool focused); + // Sets the tooltip text. + void SetTooltipText(const base::string16& tooltip_text); + // Sets the lock state of the pointer. Returns true if |allowed| is true and // the mouse has been successfully locked. bool LockMouse(bool allowed); -- cgit v1.1