summaryrefslogtreecommitdiffstats
path: root/chrome/browser/find_bar_controller.h
diff options
context:
space:
mode:
authorbrettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-05-14 15:53:13 +0000
committerbrettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-05-14 15:53:13 +0000
commitc07cfb808dbd642bb3385f974be296797bd34524 (patch)
tree2834f7923f749d5fdc1246888ca7caf5b0cf507f /chrome/browser/find_bar_controller.h
parenta68b966e94845efaa30dae71f4ca7c324eba57b9 (diff)
downloadchromium_src-c07cfb808dbd642bb3385f974be296797bd34524.zip
chromium_src-c07cfb808dbd642bb3385f974be296797bd34524.tar.gz
chromium_src-c07cfb808dbd642bb3385f974be296797bd34524.tar.bz2
Add match count text to the GTK find bar. This also makes the bar wider.
The match count text doesn't currently show up realiably because the data in the find reply is bad. I believe this is bug 11761. The clicker checking code has been moved to the cross-platform FindBarController so it doesn't have to be duplicated for each platform. This also add IntToString16. I didnt add all the variants now. The *Wstring versions should all eventually be changed to string16. http://crbug.com/11750 Review URL: http://codereview.chromium.org/114023 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@16058 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/find_bar_controller.h')
-rw-r--r--chrome/browser/find_bar_controller.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/chrome/browser/find_bar_controller.h b/chrome/browser/find_bar_controller.h
index fc286ef..5d8edf8 100644
--- a/chrome/browser/find_bar_controller.h
+++ b/chrome/browser/find_bar_controller.h
@@ -40,11 +40,20 @@ class FindBarController : public NotificationObserver {
FindBar* find_bar() const { return find_bar_.get(); }
private:
+ // Sents an update to the find bar with the tab contents' current result. The
+ // tab_contents_ must be non-NULL before this call. Theis handles
+ // de-flickering in addition to just calling the update function.
+ void UpdateFindBarForCurrentResult();
+
scoped_ptr<FindBar> find_bar_;
// The TabContents we are currently associated with. Can be NULL.
TabContents* tab_contents_;
+ // The last match count we reported to the user. This is used by
+ // UpdateFindBarForCurrentResult to avoid flickering.
+ int last_reported_matchcount_;
+
DISALLOW_COPY_AND_ASSIGN(FindBarController);
};