diff options
author | tc@google.com <tc@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-04-07 23:57:13 +0000 |
---|---|---|
committer | tc@google.com <tc@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-04-07 23:57:13 +0000 |
commit | b9293ff66e688d5ff2239b8984588f501fbbfe4b (patch) | |
tree | 61cfbfbcf6dbdf19a4482189c9fa8ec14b77ce7f /chrome/browser/gtk/find_bar_gtk.h | |
parent | 4cf2e5c49c739753ac2aa8049ec515f0a2e36186 (diff) | |
download | chromium_src-b9293ff66e688d5ff2239b8984588f501fbbfe4b.zip chromium_src-b9293ff66e688d5ff2239b8984588f501fbbfe4b.tar.gz chromium_src-b9293ff66e688d5ff2239b8984588f501fbbfe4b.tar.bz2 |
Fix the findbar crash.
FindBarController is no longer owned by the BrowserWindow, it is
owned by Browser. So we can remove the FindBarController code in
BrowserWindowGtk. Also, go ahead and implement
BrowserWindow::CreateFindBar (which creates the gtk widget and adds
it to the gtk widget hierarchy) and enable the code on linux.
Since the widgets are created and added to the hierarchy later,
we attach the signals after the widgets have been "realized".
Review URL: http://codereview.chromium.org/62126
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@13310 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/gtk/find_bar_gtk.h')
-rw-r--r-- | chrome/browser/gtk/find_bar_gtk.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/chrome/browser/gtk/find_bar_gtk.h b/chrome/browser/gtk/find_bar_gtk.h index 1dba7fb..07aa76f 100644 --- a/chrome/browser/gtk/find_bar_gtk.h +++ b/chrome/browser/gtk/find_bar_gtk.h @@ -12,6 +12,7 @@ #include "chrome/browser/find_bar.h" #include "chrome/common/owned_widget_gtk.h" +class BrowserWindowGtk; class CustomDrawButton; class FindBarController; class TabContentsContainerGtk; @@ -22,7 +23,7 @@ class WebContents; class FindBarGtk : public FindBar, public FindBarTesting { public: - FindBarGtk(); + FindBarGtk(BrowserWindowGtk* browser); virtual ~FindBarGtk(); // Callback when the text in the find box changes. |