diff options
author | paulmeyer <paulmeyer@chromium.org> | 2014-10-08 21:42:40 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2014-10-09 04:43:13 +0000 |
commit | 66bf6fb2e5d6cee16e0340fb32b394e1f9668384 (patch) | |
tree | db70316c34284210538ddf92518327dc00ece0e1 /content/browser/browser_plugin | |
parent | 8e049186f4c718fcb472040ea0e62680616298cf (diff) | |
download | chromium_src-66bf6fb2e5d6cee16e0340fb32b394e1f9668384.zip chromium_src-66bf6fb2e5d6cee16e0340fb32b394e1f9668384.tar.gz chromium_src-66bf6fb2e5d6cee16e0340fb32b394e1f9668384.tar.bz2 |
Tooltips now show up properly within a <webview>.
BUG=223892
Review URL: https://codereview.chromium.org/626103005
Cr-Commit-Position: refs/heads/master@{#298776}
Diffstat (limited to 'content/browser/browser_plugin')
-rw-r--r-- | content/browser/browser_plugin/browser_plugin_guest.cc | 5 | ||||
-rw-r--r-- | content/browser/browser_plugin/browser_plugin_guest.h | 3 |
2 files changed, 8 insertions, 0 deletions
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); |