summaryrefslogtreecommitdiffstats
path: root/chrome/browser/ui/views/find_bar_view.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/ui/views/find_bar_view.cc')
-rw-r--r--chrome/browser/ui/views/find_bar_view.cc11
1 files changed, 11 insertions, 0 deletions
diff --git a/chrome/browser/ui/views/find_bar_view.cc b/chrome/browser/ui/views/find_bar_view.cc
index eea85a6..94d46ad 100644
--- a/chrome/browser/ui/views/find_bar_view.cc
+++ b/chrome/browser/ui/views/find_bar_view.cc
@@ -187,6 +187,10 @@ string16 FindBarView::GetFindText() const {
return find_text_->text();
}
+string16 FindBarView::GetMatchCountText() const {
+ return WideToUTF16Hack(match_count_text_->GetText());
+}
+
void FindBarView::UpdateForResult(const FindNotificationDetails& result,
const string16& find_text) {
bool have_valid_range =
@@ -223,6 +227,13 @@ void FindBarView::UpdateForResult(const FindNotificationDetails& result,
SchedulePaint();
}
+void FindBarView::ClearMatchCount() {
+ match_count_text_->SetText(L"");
+ UpdateMatchCountAppearance(false);
+ Layout();
+ SchedulePaint();
+}
+
void FindBarView::SetFocusAndSelection(bool select_all) {
#if defined(OS_CHROMEOS)
// TODO(altimofeev): this workaround is needed only when the FindBar was