summaryrefslogtreecommitdiffstats
path: root/chrome/browser/views/status_bubble_views.cc
diff options
context:
space:
mode:
authormirandac@chromium.org <mirandac@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-05-22 22:43:59 +0000
committermirandac@chromium.org <mirandac@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-05-22 22:43:59 +0000
commitecbe6394c9dae913067679e53a998470e4c4ff3f (patch)
treef8aee6b4edb8db969cd6a98bb4fbd4021d8b7517 /chrome/browser/views/status_bubble_views.cc
parentea6f9e28fad5861c87cfdcb2f6fa71a57b719507 (diff)
downloadchromium_src-ecbe6394c9dae913067679e53a998470e4c4ff3f.zip
chromium_src-ecbe6394c9dae913067679e53a998470e4c4ff3f.tar.gz
chromium_src-ecbe6394c9dae913067679e53a998470e4c4ff3f.tar.bz2
Forces window to show and hide with native system calls at the beginning
and end of animation. This allows the system bubble to hide and display in systems that don't respect opacity, such as the Parallels desktop. BUG= http://crbug.com/622 TEST=Start Chrome on a system running in a Parallels window. Hover over a status bubble, and move mouse away. Status bubble should disappear. Review URL: http://codereview.chromium.org/114046 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@16802 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/views/status_bubble_views.cc')
-rw-r--r--chrome/browser/views/status_bubble_views.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/chrome/browser/views/status_bubble_views.cc b/chrome/browser/views/status_bubble_views.cc
index 8a83fd9..9b4c0fa 100644
--- a/chrome/browser/views/status_bubble_views.cc
+++ b/chrome/browser/views/status_bubble_views.cc
@@ -516,6 +516,9 @@ void StatusBubbleViews::SetURL(const GURL& url, const std::wstring& languages) {
::GetWindowRect(popup_->GetNativeView(), &parent_rect);
int text_width = static_cast<int>(parent_rect.right - parent_rect.left -
(kShadowThickness * 2) - kTextPositionX - kTextHorizPadding - 1);
+ url_parse::Parsed parsed;
+ std::wstring url_string = gfx::GetCleanStringFromUrl(url, languages,
+ &parsed, NULL);
url_text_ = gfx::ElideUrl(url, view_->Label::GetFont(), text_width,
languages);