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-08-26 22:31:24 +0000
committerestade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-08-26 22:31:24 +0000
commit1c6c2fe3c88098d58f725ea1aa6f9a82dd66cae9 (patch)
tree397edd7865f0a6920d9480341e8a28ea6790887a /chrome/browser/gtk/find_bar_gtk.h
parent0dc1f496cd4ddd8a55f6e5d12d0b7ee38411239f (diff)
downloadchromium_src-1c6c2fe3c88098d58f725ea1aa6f9a82dd66cae9.zip
chromium_src-1c6c2fe3c88098d58f725ea1aa6f9a82dd66cae9.tar.gz
chromium_src-1c6c2fe3c88098d58f725ea1aa6f9a82dd66cae9.tar.bz2
GTK: Don't reposition the findbar when it's not visible.
This gives us ~8ms of startup improvement that we lost previously from r22012. Review URL: http://codereview.chromium.org/173510 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@24546 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/gtk/find_bar_gtk.h')
-rw-r--r--chrome/browser/gtk/find_bar_gtk.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/chrome/browser/gtk/find_bar_gtk.h b/chrome/browser/gtk/find_bar_gtk.h
index 407e86f..e26fd07 100644
--- a/chrome/browser/gtk/find_bar_gtk.h
+++ b/chrome/browser/gtk/find_bar_gtk.h
@@ -91,6 +91,9 @@ class FindBarGtk : public FindBar,
void UpdateMatchLabelAppearance(bool failure);
+ // Repositions the dialog without worrying about overlapping search results.
+ void Reposition();
+
// Callback when the entry text changes.
static gboolean OnChanged(GtkWindow* window, FindBarGtk* find_bar);