diff options
author | tc@google.com <tc@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-03-10 19:26:19 +0000 |
---|---|---|
committer | tc@google.com <tc@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-03-10 19:26:19 +0000 |
commit | 31b1bc3aee74415fc8333f537da2dde64f0e08f9 (patch) | |
tree | 754865e0f773e0fb4fc647ae61eb43a8a79d775c /chrome/browser/gtk/tab_contents_container_gtk.cc | |
parent | ef47b8c0779d03237d4a20cb419ec4935deaa491 (diff) | |
download | chromium_src-31b1bc3aee74415fc8333f537da2dde64f0e08f9.zip chromium_src-31b1bc3aee74415fc8333f537da2dde64f0e08f9.tar.gz chromium_src-31b1bc3aee74415fc8333f537da2dde64f0e08f9.tar.bz2 |
First cut at the find bar.
Ctrl+F will display a box (pushing down the web contents) that typing
into will cause webkit to highlight on the page. Esc will dismiss the
box.
I also changed the gtk_widget_show_all in browser window to be a regular gtk_widget_show. Child widgets need to manually show themselves now.
Review URL: http://codereview.chromium.org/42026
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@11364 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/gtk/tab_contents_container_gtk.cc')
-rw-r--r-- | chrome/browser/gtk/tab_contents_container_gtk.cc | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/chrome/browser/gtk/tab_contents_container_gtk.cc b/chrome/browser/gtk/tab_contents_container_gtk.cc index 7813143..0b38c76 100644 --- a/chrome/browser/gtk/tab_contents_container_gtk.cc +++ b/chrome/browser/gtk/tab_contents_container_gtk.cc @@ -10,9 +10,12 @@ #include "chrome/common/notification_service.h" -TabContentsContainerGtk::TabContentsContainerGtk() +TabContentsContainerGtk::TabContentsContainerGtk(GtkWidget* findbar) : tab_contents_(NULL), vbox_(gtk_vbox_new(FALSE, 0)) { + DCHECK(findbar); + gtk_box_pack_start(GTK_BOX(vbox_), findbar, FALSE, FALSE, 0); + gtk_widget_show(vbox_); } TabContentsContainerGtk::~TabContentsContainerGtk() { @@ -44,7 +47,7 @@ void TabContentsContainerGtk::SetTabContents(TabContents* tab_contents) { gfx::NativeView widget = tab_contents_->GetNativeView(); if (widget) { - gtk_box_pack_start(GTK_BOX(vbox_), widget, TRUE, TRUE, 0); + gtk_box_pack_end(GTK_BOX(vbox_), widget, TRUE, TRUE, 0); gtk_widget_show_all(widget); } } |