summaryrefslogtreecommitdiffstats
path: root/chrome/browser/gtk/find_bar_gtk.h
diff options
context:
space:
mode:
authorestade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-04-30 23:15:02 +0000
committerestade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-04-30 23:15:02 +0000
commit7880bcec08e61d44ffe24bde4ab4645c5839ea98 (patch)
tree333f1999a3055e13d489e8dfb09b1cd424e5f955 /chrome/browser/gtk/find_bar_gtk.h
parent814a2d33e8655daf6d699bf6aa5c0da6a88919e2 (diff)
downloadchromium_src-7880bcec08e61d44ffe24bde4ab4645c5839ea98.zip
chromium_src-7880bcec08e61d44ffe24bde4ab4645c5839ea98.tar.gz
chromium_src-7880bcec08e61d44ffe24bde4ab4645c5839ea98.tar.bz2
GTK: give the findbox curvy edges.
Most of the new code concerns shaping the widget to be non-rectangular. Also, sprinkle some "const" qualifiers on NineBox functions. Review URL: http://codereview.chromium.org/100224 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@15014 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/gtk/find_bar_gtk.h')
-rw-r--r--chrome/browser/gtk/find_bar_gtk.h16
1 files changed, 13 insertions, 3 deletions
diff --git a/chrome/browser/gtk/find_bar_gtk.h b/chrome/browser/gtk/find_bar_gtk.h
index eedbcdf..a25d5be 100644
--- a/chrome/browser/gtk/find_bar_gtk.h
+++ b/chrome/browser/gtk/find_bar_gtk.h
@@ -72,9 +72,15 @@ class FindBarGtk : public FindBar,
static void OnButtonPressed(GtkWidget* button, FindBarGtk* find_bar);
// Called when |fixed_| changes sizes. Used to position |container_|.
- static void OnSizeAllocate(GtkWidget* fixed,
- GtkAllocation* allocation,
- FindBarGtk* container_);
+ static void OnFixedSizeAllocate(GtkWidget* fixed,
+ GtkAllocation* allocation,
+ FindBarGtk* findbar);
+
+ // Called when |container_| is allocated.
+ static void OnContainerSizeAllocate(GtkWidget* container,
+ GtkAllocation* allocation,
+ FindBarGtk* findbar);
+
// GtkFixed containing the find bar widgets.
OwnedWidgetGtk fixed_;
@@ -88,6 +94,10 @@ class FindBarGtk : public FindBar,
// field, the buttons, etc.).
GtkWidget* container_;
+ // This will be set to true after ContourWidget() has been called so we don't
+ // call it twice.
+ bool container_shaped_;
+
// The widget where text is entered.
GtkWidget* find_text_;