Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2731)

Unified Diff: chrome/browser/gtk/tab_contents_container_gtk.h

Issue 100077: Linux: Make the findbar hang over the render view. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/gtk/find_bar_gtk.cc ('k') | chrome/browser/gtk/tab_contents_container_gtk.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/gtk/tab_contents_container_gtk.h
===================================================================
--- chrome/browser/gtk/tab_contents_container_gtk.h (revision 14624)
+++ chrome/browser/gtk/tab_contents_container_gtk.h (working copy)
@@ -48,6 +48,11 @@
// 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 @@
// 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);
};
« no previous file with comments | « chrome/browser/gtk/find_bar_gtk.cc ('k') | chrome/browser/gtk/tab_contents_container_gtk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698