summaryrefslogtreecommitdiffstats
path: root/chrome/browser/tab_contents
diff options
context:
space:
mode:
authortc@google.com <tc@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-03-19 21:04:11 +0000
committertc@google.com <tc@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-03-19 21:04:11 +0000
commitba2bd157297d9e5fac3f781ab9951736e9e29eb8 (patch)
tree6ffc8322c5fb83d7dcd620bb14f860bb1568797a /chrome/browser/tab_contents
parent1fff4a0530c3ef7d2ea5a8af727100ec04a0e3e9 (diff)
downloadchromium_src-ba2bd157297d9e5fac3f781ab9951736e9e29eb8.zip
chromium_src-ba2bd157297d9e5fac3f781ab9951736e9e29eb8.tar.gz
chromium_src-ba2bd157297d9e5fac3f781ab9951736e9e29eb8.tar.bz2
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
Diffstat (limited to 'chrome/browser/tab_contents')
-rw-r--r--chrome/browser/tab_contents/web_contents.cc2
-rw-r--r--chrome/browser/tab_contents/web_contents.h6
2 files changed, 4 insertions, 4 deletions
diff --git a/chrome/browser/tab_contents/web_contents.cc b/chrome/browser/tab_contents/web_contents.cc
index a6fc32c..d0edfa9 100644
--- a/chrome/browser/tab_contents/web_contents.cc
+++ b/chrome/browser/tab_contents/web_contents.cc
@@ -584,7 +584,7 @@ void WebContents::CreateShortcut() {
render_view_host()->GetApplicationInfo(pending_install_.page_id);
}
-void WebContents::StartFinding(const std::wstring& find_text,
+void WebContents::StartFinding(const string16& find_text,
bool forward_direction) {
// If find_text is empty, it means FindNext was pressed with a keyboard
// shortcut so unless we have something to search for we return early.
diff --git a/chrome/browser/tab_contents/web_contents.h b/chrome/browser/tab_contents/web_contents.h
index c6c4a26..6e86268 100644
--- a/chrome/browser/tab_contents/web_contents.h
+++ b/chrome/browser/tab_contents/web_contents.h
@@ -195,7 +195,7 @@ class WebContents : public TabContents,
// function does not block while a search is in progress. The controller will
// receive the results through the notification mechanism. See Observe(...)
// for details.
- void StartFinding(const std::wstring& find_text, bool forward_direction);
+ void StartFinding(const string16& find_text, bool forward_direction);
// Stops the current Find operation. If |clear_selection| is true, it will
// also clear the selection on the focused frame.
@@ -216,7 +216,7 @@ class WebContents : public TabContents,
// Accessor for find_text_. Used to determine if this WebContents has any
// active searches.
- std::wstring find_text() const { return find_text_; }
+ string16 find_text() const { return find_text_; }
// Accessor for find_result_.
const FindNotificationDetails& find_result() const { return find_result_; }
@@ -685,7 +685,7 @@ class WebContents : public TabContents,
// The last string we searched for. This is used to figure out if this is a
// Find or a FindNext operation (FindNext should not increase the request id).
- std::wstring find_text_;
+ string16 find_text_;
// The last find result. This object contains details about the number of
// matches, the find selection rectangle, etc. The UI can access this