Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(5256)

Unified Diff: chrome/browser/gtk/find_bar_gtk.h

Issue 100224: GTK: give the findbox curvy edges.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/browser/gtk/find_bar_gtk.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/gtk/find_bar_gtk.h
===================================================================
--- chrome/browser/gtk/find_bar_gtk.h (revision 14956)
+++ chrome/browser/gtk/find_bar_gtk.h (working copy)
@@ -72,10 +72,16 @@
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 @@
// 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_;
« no previous file with comments | « no previous file | chrome/browser/gtk/find_bar_gtk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698