From ba2bd157297d9e5fac3f781ab9951736e9e29eb8 Mon Sep 17 00:00:00 2001 From: "tc@google.com" Date: Thu, 19 Mar 2009 21:04:11 +0000 Subject: Convert FindInPage wstrings to string16. Review URL: http://codereview.chromium.org/42408 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@12158 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome/browser/views/find_bar_win.cc | 4 ++-- chrome/browser/views/find_bar_win.h | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'chrome/browser/views') diff --git a/chrome/browser/views/find_bar_win.cc b/chrome/browser/views/find_bar_win.cc index d653df4..3a9fe05 100644 --- a/chrome/browser/views/find_bar_win.cc +++ b/chrome/browser/views/find_bar_win.cc @@ -207,7 +207,7 @@ void FindBarWin::StopAnimation() { animation_->End(); } -void FindBarWin::SetFindText(const std::wstring& find_text) { +void FindBarWin::SetFindText(const string16& find_text) { view_->SetFindText(find_text); } @@ -477,7 +477,7 @@ void FindBarWin::UnregisterEscAccelerator() { } void FindBarWin::UpdateUIForFindResult(const FindNotificationDetails& result, - const std::wstring& find_text) { + const string16& find_text) { view_->UpdateForResult(result, find_text); // We now need to check if the window is obscuring the search results. diff --git a/chrome/browser/views/find_bar_win.h b/chrome/browser/views/find_bar_win.h index ed53212..99eb1cb 100644 --- a/chrome/browser/views/find_bar_win.h +++ b/chrome/browser/views/find_bar_win.h @@ -82,9 +82,9 @@ class FindBarWin : public views::FocusChangeListener, virtual void SetFocusAndSelection(); virtual void ClearResults(const FindNotificationDetails& results); virtual void StopAnimation(); - virtual void SetFindText(const std::wstring& find_text); + virtual void SetFindText(const string16& find_text); virtual void UpdateUIForFindResult(const FindNotificationDetails& result, - const std::wstring& find_text); + const string16& find_text); virtual gfx::Rect GetDialogPosition(gfx::Rect avoid_overlapping_rect); virtual void SetDialogPosition(const gfx::Rect& new_pos, bool no_redraw); virtual bool IsFindBarVisible(); -- cgit v1.1