diff options
author | ben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-05-27 19:47:23 +0000 |
---|---|---|
committer | ben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-05-27 19:47:23 +0000 |
commit | ba96e33fd8a5b9610de51f6d3e15e6c469674dc2 (patch) | |
tree | da17919af6b99801762e4d7618e92e53dc13a9f3 /chrome/browser/views/login_view.cc | |
parent | 44c1d4872df77d6ac3bd064a7634078c443a332f (diff) | |
download | chromium_src-ba96e33fd8a5b9610de51f6d3e15e6c469674dc2.zip chromium_src-ba96e33fd8a5b9610de51f6d3e15e6c469674dc2.tar.gz chromium_src-ba96e33fd8a5b9610de51f6d3e15e6c469674dc2.tar.bz2 |
Move text_field.cc and rename the class to Textfield in preparation for porting.
BUG=none
TEST=none
Review URL: http://codereview.chromium.org/115825
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@17014 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/views/login_view.cc')
-rw-r--r-- | chrome/browser/views/login_view.cc | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/chrome/browser/views/login_view.cc b/chrome/browser/views/login_view.cc index df7f1b4..d4e40f8 100644 --- a/chrome/browser/views/login_view.cc +++ b/chrome/browser/views/login_view.cc @@ -12,21 +12,21 @@ #include "grit/generated_resources.h" #include "views/grid_layout.h" #include "views/controls/label.h" -#include "views/controls/text_field.h" +#include "views/controls/textfield/textfield.h" #include "views/standard_layout.h" #include "views/widget/root_view.h" namespace views { static const int kMessageWidth = 320; -static const int kTextFieldStackHorizontalSpacing = 30; +static const int kTextfieldStackHorizontalSpacing = 30; /////////////////////////////////////////////////////////////////////////////// // LoginView, public: LoginView::LoginView(const std::wstring& explanation) - : username_field_(new TextField), - password_field_(new TextField(TextField::STYLE_PASSWORD)), + : username_field_(new Textfield), + password_field_(new Textfield(Textfield::STYLE_PASSWORD)), username_label_(new Label( l10n_util::GetString(IDS_LOGIN_DIALOG_USERNAME_FIELD))), password_label_(new Label( @@ -51,13 +51,13 @@ LoginView::LoginView(const std::wstring& explanation) // Add the column set for the user name and password fields and labels. const int labels_column_set_id = 1; column_set = layout->AddColumnSet(labels_column_set_id); - column_set->AddPaddingColumn(0, kTextFieldStackHorizontalSpacing); + column_set->AddPaddingColumn(0, kTextfieldStackHorizontalSpacing); column_set->AddColumn(GridLayout::LEADING, GridLayout::CENTER, 0, GridLayout::USE_PREF, 0, 0); column_set->AddPaddingColumn(0, kRelatedControlHorizontalSpacing); column_set->AddColumn(GridLayout::FILL, GridLayout::CENTER, 1, GridLayout::USE_PREF, 0, 0); - column_set->AddPaddingColumn(0, kTextFieldStackHorizontalSpacing); + column_set->AddPaddingColumn(0, kTextfieldStackHorizontalSpacing); layout->StartRow(0, single_column_view_set_id); layout->AddView(message_label_); |