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/views/status_bubble_views.h | |
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/views/status_bubble_views.h')
-rw-r--r-- | chrome/browser/views/status_bubble_views.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/chrome/browser/views/status_bubble_views.h b/chrome/browser/views/status_bubble_views.h index 06bf6bd..78d3265 100644 --- a/chrome/browser/views/status_bubble_views.h +++ b/chrome/browser/views/status_bubble_views.h @@ -11,6 +11,9 @@ #include "chrome/browser/status_bubble.h" class GURL; +namespace gfx { +class Point; +} namespace views { class Widget; } @@ -44,7 +47,7 @@ class StatusBubbleViews : public StatusBubble { virtual void SetStatus(const std::wstring& status); virtual void SetURL(const GURL& url, const std::wstring& languages); virtual void Hide(); - virtual void MouseMoved(); + virtual void MouseMoved(const gfx::Point& location, bool left_content); virtual void UpdateDownloadShelfVisibility(bool visible); private: @@ -55,7 +58,7 @@ class StatusBubbleViews : public StatusBubble { // Attempt to move the status bubble out of the way of the cursor, allowing // users to see links in the region normally occupied by the status bubble. - void AvoidMouse(); + void AvoidMouse(const gfx::Point& location); // Returns true if the frame_ is visible and not minimized. bool IsFrameVisible(); |