summaryrefslogtreecommitdiffstats
path: root/chrome/browser/gtk/location_bar_view_gtk.h
diff options
context:
space:
mode:
authorerg@google.com <erg@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-07-29 17:38:10 +0000
committererg@google.com <erg@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-07-29 17:38:10 +0000
commit95ce56621a1202b00716136dc4a6d2664e3a3d07 (patch)
treec127718d01995f9ef0f1848869436f2a5bbc97ef /chrome/browser/gtk/location_bar_view_gtk.h
parentd51c0705e8e387ed9451bfd5f769e4aa3a926620 (diff)
downloadchromium_src-95ce56621a1202b00716136dc4a6d2664e3a3d07.zip
chromium_src-95ce56621a1202b00716136dc4a6d2664e3a3d07.tar.gz
chromium_src-95ce56621a1202b00716136dc4a6d2664e3a3d07.tar.bz2
GTK Themes: Native location bar area.
The combined star/location bar/go construct doesn't look native. In GTK mode, make the star and go buttons act like toolbar buttons, and draw a GTK text entry widget onto the toolbar. The omnibox popup is just the size of the entry when in GTK theme mode. There's still a lot of work to be done on this; I want to properly draw focus rings, have the rest of the location box use theme colors, et cetera, but this is less broken then what's currently there. Review URL: http://codereview.chromium.org/159532 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@21965 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.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/chrome/browser/gtk/location_bar_view_gtk.h b/chrome/browser/gtk/location_bar_view_gtk.h
index 1ac1fa4..e241537 100644
--- a/chrome/browser/gtk/location_bar_view_gtk.h
+++ b/chrome/browser/gtk/location_bar_view_gtk.h
@@ -107,6 +107,10 @@ class LocationBarViewGtk : public AutocompleteEditController,
// The outermost widget we want to be hosted.
OwnedWidgetGtk hbox_;
+ // A GtkEntry that isn't part of the hierarchy. We keep this for native
+ // rendering.
+ OwnedWidgetGtk offscreen_entry_;
+
// SSL icons.
GtkWidget* security_icon_align_;
GtkWidget* security_lock_icon_image_;