summaryrefslogtreecommitdiffstats
path: root/chrome/browser/gtk/find_bar_gtk.h
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/gtk/find_bar_gtk.h')
-rw-r--r--chrome/browser/gtk/find_bar_gtk.h13
1 files changed, 7 insertions, 6 deletions
diff --git a/chrome/browser/gtk/find_bar_gtk.h b/chrome/browser/gtk/find_bar_gtk.h
index 11439fb..a9f0ca7 100644
--- a/chrome/browser/gtk/find_bar_gtk.h
+++ b/chrome/browser/gtk/find_bar_gtk.h
@@ -5,13 +5,14 @@
#ifndef CHROME_BROWSER_GTK_FIND_BAR_GTK_H_
#define CHROME_BROWSER_GTK_FIND_BAR_GTK_H_
-#include "base/basictypes.h"
-#include "chrome/browser/find_bar.h"
-
#include <gtk/gtk.h>
#include <string>
+#include "base/basictypes.h"
+#include "chrome/browser/find_bar.h"
+#include "chrome/common/owned_widget_gtk.h"
+
class FindBarController;
class TabContentsContainerGtk;
class WebContents;
@@ -21,7 +22,7 @@ class WebContents;
class FindBarGtk : public FindBar {
public:
FindBarGtk();
- virtual ~FindBarGtk() { }
+ virtual ~FindBarGtk();
void set_find_bar_controller(FindBarController* find_bar_controller) {
find_bar_controller_ = find_bar_controller;
@@ -33,7 +34,7 @@ class FindBarGtk : public FindBar {
// Callback when Escape is pressed.
void EscapePressed();
- GtkWidget* gtk_widget() const { return container_; }
+ GtkWidget* widget() const { return container_.get(); }
// Methods from FindBar.
virtual void Show();
@@ -51,7 +52,7 @@ class FindBarGtk : public FindBar {
private:
// GtkHBox containing the find bar widgets.
- GtkWidget* container_;
+ OwnedWidgetGtk container_;
// The widget where text is entered.
GtkWidget* find_text_;