Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1166)

Unified Diff: chrome/browser/views/find_bar_view.cc

Issue 113940: Make Textfield more portable.... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 11 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/views/edit_keyword_controller.cc ('k') | chrome/browser/views/login_view.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/views/find_bar_view.cc
===================================================================
--- chrome/browser/views/find_bar_view.cc (revision 17056)
+++ chrome/browser/views/find_bar_view.cc (working copy)
@@ -174,7 +174,7 @@
// If we don't have any results and something was passed in, then that means
// someone pressed F3 while the Find box was closed. In that case we need to
// repopulate the Find box with what was passed in.
- std::wstring search_string = find_text_->GetText();
+ std::wstring search_string = find_text_->text();
if (search_string.empty() && !find_text.empty()) {
find_text_->SetText(UTF16ToWide(find_text));
find_text_->SelectAll();
@@ -214,7 +214,7 @@
void FindBarView::SetFocusAndSelection() {
find_text_->RequestFocus();
- if (!find_text_->GetText().empty()) {
+ if (!find_text_->text().empty()) {
find_text_->SelectAll();
find_previous_button_->SetEnabled(true);
@@ -398,9 +398,9 @@
switch (sender->tag()) {
case FIND_PREVIOUS_TAG:
case FIND_NEXT_TAG:
- if (!find_text_->GetText().empty()) {
+ if (!find_text_->text().empty()) {
container_->GetFindBarController()->tab_contents()->StartFinding(
- WideToUTF16(find_text_->GetText()),
+ WideToUTF16(find_text_->text()),
sender->tag() == FIND_NEXT_TAG,
false); // Not case sensitive.
}
@@ -459,7 +459,7 @@
if (views::Textfield::IsKeystrokeEnter(key)) {
// Pressing Return/Enter starts the search (unless text box is empty).
- std::wstring find_string = find_text_->GetText();
+ std::wstring find_string = find_text_->text();
if (!find_string.empty()) {
// Search forwards for enter, backwards for shift-enter.
container_->GetFindBarController()->tab_contents()->StartFinding(
« no previous file with comments | « chrome/browser/views/edit_keyword_controller.cc ('k') | chrome/browser/views/login_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698