diff options
author | estade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-04-28 21:29:08 +0000 |
---|---|---|
committer | estade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-04-28 21:29:08 +0000 |
commit | ff281d4f40f94356c025014f321ad480a6411655 (patch) | |
tree | 48f0adc4805f14155c3d4afe7e6e7ba6f4398ec6 /chrome/browser/gtk/tab_contents_container_gtk.h | |
parent | fc48db85fecb5889fbfc5de5c9b8951dce547546 (diff) | |
download | chromium_src-ff281d4f40f94356c025014f321ad480a6411655.zip chromium_src-ff281d4f40f94356c025014f321ad480a6411655.tar.gz chromium_src-ff281d4f40f94356c025014f321ad480a6411655.tar.bz2 |
Linux: Make the findbar hang over the render view.
BUG=10948
Review URL: http://codereview.chromium.org/100077
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@14785 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/gtk/tab_contents_container_gtk.h')
-rw-r--r-- | chrome/browser/gtk/tab_contents_container_gtk.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/chrome/browser/gtk/tab_contents_container_gtk.h b/chrome/browser/gtk/tab_contents_container_gtk.h index 6bef9a4..bb914d0 100644 --- a/chrome/browser/gtk/tab_contents_container_gtk.h +++ b/chrome/browser/gtk/tab_contents_container_gtk.h @@ -48,6 +48,11 @@ class TabContentsContainerGtk : public NotificationObserver { // get notified. void TabContentsDestroyed(TabContents* contents); + // Called when |fixed_| changes sizes. Used to position the findbar. + static void OnSizeAllocate(GtkWidget* fixed, + GtkAllocation* allocation, + TabContentsContainerGtk* contents_container); + // The currently visible TabContents. TabContents* tab_contents_; @@ -56,6 +61,12 @@ class TabContentsContainerGtk : public NotificationObserver { // vbox_. GtkWidget* vbox_; + // This GtkFixed widget helps us position the find bar. + GtkWidget* fixed_; + + // The findbar widget. We do not own it. + GtkWidget* findbar_; + DISALLOW_COPY_AND_ASSIGN(TabContentsContainerGtk); }; |