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/status_bubble.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/status_bubble.h')
-rw-r--r-- | chrome/browser/status_bubble.h | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/chrome/browser/status_bubble.h b/chrome/browser/status_bubble.h index 9203b80..81379d0 100644 --- a/chrome/browser/status_bubble.h +++ b/chrome/browser/status_bubble.h @@ -8,6 +8,9 @@ #include <string> class GURL; +namespace gfx { +class Point; +} //////////////////////////////////////////////////////////////////////////////// // StatusBubble interface @@ -37,8 +40,10 @@ class StatusBubble { // Called when the user's mouse has moved over web content. This is used to // determine when the status area should move out of the way of the user's // mouse. This may be windows specific pain due to the way messages are - // processed for child HWNDs. - virtual void MouseMoved() = 0; + // processed for child HWNDs. |position| is the absolute position of the + // pointer, and |left_content| is true if the mouse just left the content + // area. + virtual void MouseMoved(const gfx::Point& position, bool left_content) = 0; // Called when the download shelf becomes visible or invisible. // This is used by to ensure that the status bubble does not obscure |