summaryrefslogtreecommitdiffstats
path: root/chrome/browser/views/login_view.cc
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/login_view.cc
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/login_view.cc')
-rw-r--r--chrome/browser/views/login_view.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/chrome/browser/views/login_view.cc b/chrome/browser/views/login_view.cc
index d4e40f8..2cc7ba6 100644
--- a/chrome/browser/views/login_view.cc
+++ b/chrome/browser/views/login_view.cc
@@ -83,11 +83,11 @@ LoginView::~LoginView() {
}
std::wstring LoginView::GetUsername() {
- return username_field_->GetText();
+ return username_field_->text();
}
std::wstring LoginView::GetPassword() {
- return password_field_->GetText();
+ return password_field_->text();
}
void LoginView::SetModel(LoginModel* model) {
@@ -107,7 +107,7 @@ void LoginView::ViewHierarchyChanged(bool is_add, View *parent, View *child) {
void LoginView::OnAutofillDataAvailable(const std::wstring& username,
const std::wstring& password) {
- if (username_field_->GetText().empty()) {
+ if (username_field_->text().empty()) {
username_field_->SetText(username);
password_field_->SetText(password);
username_field_->SelectAll();