summaryrefslogtreecommitdiffstats
path: root/chrome
diff options
context:
space:
mode:
authormark@chromium.org <mark@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-06-25 20:42:31 +0000
committermark@chromium.org <mark@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-06-25 20:42:31 +0000
commit1a2d0bb461937e0101cfb48216f8420a642327b2 (patch)
tree4f72b0df0fd0c811d6ae0b55a1a32ca2d747db73 /chrome
parente4560a30aa4c3db89ec4c70f66cce39c3819ce7f (diff)
downloadchromium_src-1a2d0bb461937e0101cfb48216f8420a642327b2.zip
chromium_src-1a2d0bb461937e0101cfb48216f8420a642327b2.tar.gz
chromium_src-1a2d0bb461937e0101cfb48216f8420a642327b2.tar.bz2
Give such a fewer tips. Hide tooltips when the owning
RenderWidgetHostView[Mac] is hidden. BUG=14178 TEST=Get a tooltip to display (hover the Inbox link in Gmail) and then pop a new tab without using the mouse (press command-T). The tooltip should disappear. Review URL: http://codereview.chromium.org/149017 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@19281 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome')
-rw-r--r--chrome/browser/renderer_host/render_widget_host_view_mac.mm5
1 files changed, 5 insertions, 0 deletions
diff --git a/chrome/browser/renderer_host/render_widget_host_view_mac.mm b/chrome/browser/renderer_host/render_widget_host_view_mac.mm
index bf01fd0..a9d45c8 100644
--- a/chrome/browser/renderer_host/render_widget_host_view_mac.mm
+++ b/chrome/browser/renderer_host/render_widget_host_view_mac.mm
@@ -108,6 +108,11 @@ void RenderWidgetHostViewMac::WasHidden() {
// everything again when we become selected again.
is_hidden_ = true;
+ // We can't have tooltips floating around after the tools they're tipping
+ // about are hidden, can we?
+ tooltip_.reset(NULL);
+ tooltip_text_.clear();
+
// If we have a renderer, then inform it that we are being hidden so it can
// reduce its resource utilization.
render_widget_host_->WasHidden();