diff options
author | estade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-04-07 21:00:33 +0000 |
---|---|---|
committer | estade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-04-07 21:00:33 +0000 |
commit | c4d6f87b0cf6ee6d8478a79875700600b049d1df (patch) | |
tree | e3fd77172b81c7d83ac495d96f973881946c7482 /chrome/browser/gtk/extension_popup_gtk.h | |
parent | 875f8f9b0757f2029b21cead7822db116ea525e0 (diff) | |
download | chromium_src-c4d6f87b0cf6ee6d8478a79875700600b049d1df.zip chromium_src-c4d6f87b0cf6ee6d8478a79875700600b049d1df.tar.gz chromium_src-c4d6f87b0cf6ee6d8478a79875700600b049d1df.tar.bz2 |
GTK: position info bubbles relative to a subwidget, rather than the toplevel window.
(Client code can still use a toplevel widget as the anchor.)
BUG=40068
TEST=tried all popups in LTR and RTL
Review URL: http://codereview.chromium.org/1575019
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@43876 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/gtk/extension_popup_gtk.h')
-rw-r--r-- | chrome/browser/gtk/extension_popup_gtk.h | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/chrome/browser/gtk/extension_popup_gtk.h b/chrome/browser/gtk/extension_popup_gtk.h index 9cced80..846f4dc 100644 --- a/chrome/browser/gtk/extension_popup_gtk.h +++ b/chrome/browser/gtk/extension_popup_gtk.h @@ -21,13 +21,13 @@ class ExtensionPopupGtk : public NotificationObserver, public: ExtensionPopupGtk(Browser* browser, ExtensionHost* host, - const gfx::Rect& relative_to, + GtkWidget* anchor, bool inspect); virtual ~ExtensionPopupGtk(); static void Show(const GURL& url, Browser* browser, - const gfx::Rect& relative_to, + GtkWidget* anchor, bool inspect); // NotificationObserver implementation. @@ -64,9 +64,8 @@ class ExtensionPopupGtk : public NotificationObserver, // We take ownership of the popup ExtensionHost. scoped_ptr<ExtensionHost> host_; - // The rect that we use to position the popup. It is the bounds of the - // browser action button. - gfx::Rect relative_to_; + // The widget for anchoring the position of the info bubble. + GtkWidget* anchor_; NotificationRegistrar registrar_; |