diff options
author | derat@chromium.org <derat@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-11-14 01:18:00 +0000 |
---|---|---|
committer | derat@chromium.org <derat@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-11-14 01:18:00 +0000 |
commit | b8595e9c25fc47e4e0e91683b38f4772b4789f1b (patch) | |
tree | 9cc63c58e432b835a3af85ac89d4cd9df0d33aa9 /chrome/browser/browser.cc | |
parent | 5da4928116a7168b456415f9af412f93138b6dcb (diff) | |
download | chromium_src-b8595e9c25fc47e4e0e91683b38f4772b4789f1b.zip chromium_src-b8595e9c25fc47e4e0e91683b38f4772b4789f1b.tar.gz chromium_src-b8595e9c25fc47e4e0e91683b38f4772b4789f1b.tar.bz2 |
gtk: Hide the status bubble when the mouse nears it.
This isn't as slick as other platforms, in that the bubble
just slides down and gets cropped instead of sliding down out
of the browser window -- doing the latter will probably
require reparenting the bubble into its own window when we
want to move it.
BUG=18311
TEST=ran "nc -l -p 8080", went to localhost:8080, and made sure that the bubble ran away with both LTR and RTL languages
Review URL: http://codereview.chromium.org/392007
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@31984 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/browser.cc')
-rw-r--r-- | chrome/browser/browser.cc | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/chrome/browser/browser.cc b/chrome/browser/browser.cc index 7b728e3..ebca665 100644 --- a/chrome/browser/browser.cc +++ b/chrome/browser/browser.cc @@ -7,6 +7,7 @@ #include "app/animation.h" #include "app/l10n_util.h" #include "base/command_line.h" +#include "base/gfx/point.h" #include "base/keyboard_codes.h" #include "base/logging.h" #include "base/string_util.h" @@ -2020,16 +2021,15 @@ void Browser::URLStarredChanged(TabContents* source, bool starred) { window_->SetStarredState(starred); } -void Browser::ContentsMouseEvent(TabContents* source, bool motion) { +void Browser::ContentsMouseEvent( + TabContents* source, const gfx::Point& location, bool motion) { if (!GetStatusBubble()) return; if (source == GetSelectedTabContents()) { - if (motion) { - GetStatusBubble()->MouseMoved(); - } else { + GetStatusBubble()->MouseMoved(location, !motion); + if (!motion) GetStatusBubble()->SetURL(GURL(), std::wstring()); - } } } |