summaryrefslogtreecommitdiffstats
path: root/chrome/browser/views/options
diff options
context:
space:
mode:
authorben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-05-28 20:54:06 +0000
committerben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-05-28 20:54:06 +0000
commit9163266850ce5d2c871afbd362940a2d04246e23 (patch)
tree31fdefc8be174c686bb02539ba2672be844fbaed /chrome/browser/views/options
parentb7f02c6a9cb5cb58af781761b34895f40d35ddf1 (diff)
downloadchromium_src-9163266850ce5d2c871afbd362940a2d04246e23.zip
chromium_src-9163266850ce5d2c871afbd362940a2d04246e23.tar.gz
chromium_src-9163266850ce5d2c871afbd362940a2d04246e23.tar.bz2
Make Textfield more portable.
Split off Windows bits into NativeTextfieldWin class obscured behind NativeTextfieldWrapper interface. The APIs aren't perfectly tidy yet but this is a good first pass. BUG=none TEST=make sure you can still edit text fields, run the view unit tests. Review URL: http://codereview.chromium.org/113940 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@17112 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/views/options')
-rw-r--r--chrome/browser/views/options/cookies_view.cc2
-rw-r--r--chrome/browser/views/options/general_page_view.cc4
2 files changed, 3 insertions, 3 deletions
diff --git a/chrome/browser/views/options/cookies_view.cc b/chrome/browser/views/options/cookies_view.cc
index 24dcaae..797ae34 100644
--- a/chrome/browser/views/options/cookies_view.cc
+++ b/chrome/browser/views/options/cookies_view.cc
@@ -567,7 +567,7 @@ CookiesView::~CookiesView() {
}
void CookiesView::UpdateSearchResults() {
- cookies_table_model_->UpdateSearchResults(search_field_->GetText());
+ cookies_table_model_->UpdateSearchResults(search_field_->text());
remove_all_button_->SetEnabled(cookies_table_model_->RowCount() > 0);
}
diff --git a/chrome/browser/views/options/general_page_view.cc b/chrome/browser/views/options/general_page_view.cc
index a7b6806..0723e13 100644
--- a/chrome/browser/views/options/general_page_view.cc
+++ b/chrome/browser/views/options/general_page_view.cc
@@ -570,7 +570,7 @@ void GeneralPageView::ButtonPressed(views::Button* sender) {
} else if (sender == homepage_use_url_radio_) {
UserMetricsRecordAction(L"Options_Homepage_UseURL",
profile()->GetPrefs());
- SetHomepage(homepage_use_url_textfield_->GetText());
+ SetHomepage(homepage_use_url_textfield_->text());
EnableHomepageURLField(true);
} else if (sender == homepage_show_home_button_checkbox_) {
bool show_button = homepage_show_home_button_checkbox_->checked();
@@ -615,7 +615,7 @@ void GeneralPageView::ContentsChanged(views::Textfield* sender,
// through the fixer upper to allow input like "google.com" to be converted
// to something valid ("http://google.com").
std::wstring url_string = URLFixerUpper::FixupURL(
- homepage_use_url_textfield_->GetText(), std::wstring());
+ homepage_use_url_textfield_->text(), std::wstring());
if (GURL(url_string).is_valid())
SetHomepage(url_string);
}