summaryrefslogtreecommitdiffstats
path: root/chrome/browser/gtk/location_bar_view_gtk.h
diff options
context:
space:
mode:
authordeanm@chromium.org <deanm@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-03-16 18:30:47 +0000
committerdeanm@chromium.org <deanm@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-03-16 18:30:47 +0000
commitc0b99038c58d79f7c1032f35dfb0eb62279a2d0d (patch)
tree92fbe908e564e72c45d206298a80236340a1034a /chrome/browser/gtk/location_bar_view_gtk.h
parent027ec5f2dc1e9a26aea297623f1784592de7d562 (diff)
downloadchromium_src-c0b99038c58d79f7c1032f35dfb0eb62279a2d0d.zip
chromium_src-c0b99038c58d79f7c1032f35dfb0eb62279a2d0d.tar.gz
chromium_src-c0b99038c58d79f7c1032f35dfb0eb62279a2d0d.tar.bz2
Move a bunch of our GTK code that was previous manually handling references (and often doing it incorrect / leaking) to use an OwnedWidgetGtk.
Review URL: http://codereview.chromium.org/48007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@11750 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/gtk/location_bar_view_gtk.h')
-rw-r--r--chrome/browser/gtk/location_bar_view_gtk.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/chrome/browser/gtk/location_bar_view_gtk.h b/chrome/browser/gtk/location_bar_view_gtk.h
index eb7bbf2..2fc5b0b 100644
--- a/chrome/browser/gtk/location_bar_view_gtk.h
+++ b/chrome/browser/gtk/location_bar_view_gtk.h
@@ -13,6 +13,7 @@
#include "base/scoped_ptr.h"
#include "chrome/browser/autocomplete/autocomplete_edit.h"
#include "chrome/browser/location_bar.h"
+#include "chrome/common/owned_widget_gtk.h"
#include "chrome/common/page_transition_types.h"
#include "webkit/glue/window_open_disposition.h"
@@ -35,7 +36,7 @@ class LocationBarViewGtk : public AutocompleteEditController,
void SetProfile(Profile* profile);
// Returns the widget the caller should host. You must call Init() first.
- GtkWidget* widget() { return outer_bin_; }
+ GtkWidget* widget() { return outer_bin_.get(); }
// Updates the location bar. We also reset the bar's permanent text and
// security style, and, if |tab_for_state_restoring| is non-NULL, also
@@ -65,7 +66,7 @@ class LocationBarViewGtk : public AutocompleteEditController,
private:
// The outermost widget we want to be hosted.
- GtkWidget* outer_bin_;
+ OwnedWidgetGtk outer_bin_;
// This is the widget you probably care about, our inner vbox (inside the
// the border) which holds the elements inside the location bar.