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

Side by Side Diff: chrome/browser/chromeos/login/password_changed_view.cc

Issue 9117012: Rename visual style "password" to "obscured" (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: copyright Created 8 years, 11 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | chrome/browser/chromeos/options/vpn_config_view.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/chromeos/login/password_changed_view.h" 5 #include "chrome/browser/chromeos/login/password_changed_view.h"
6 6
7 #include "base/utf_string_conversions.h" 7 #include "base/utf_string_conversions.h"
8 #include "chrome/browser/chromeos/login/rounded_rect_painter.h" 8 #include "chrome/browser/chromeos/login/rounded_rect_painter.h"
9 #include "chrome/browser/chromeos/login/textfield_with_margin.h" 9 #include "chrome/browser/chromeos/login/textfield_with_margin.h"
10 #include "chrome/browser/chromeos/login/wizard_accessibility_helper.h" 10 #include "chrome/browser/chromeos/login/wizard_accessibility_helper.h"
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after
111 full_sync_radio_ = new RadioButton( 111 full_sync_radio_ = new RadioButton(
112 l10n_util::GetStringUTF16(IDS_LOGIN_PASSWORD_CHANGED_RESET), 0); 112 l10n_util::GetStringUTF16(IDS_LOGIN_PASSWORD_CHANGED_RESET), 0);
113 full_sync_radio_->set_listener(this); 113 full_sync_radio_->set_listener(this);
114 full_sync_radio_->SetMultiLine(true); 114 full_sync_radio_->SetMultiLine(true);
115 115
116 delta_sync_radio_ = new RadioButton( 116 delta_sync_radio_ = new RadioButton(
117 l10n_util::GetStringUTF16(IDS_LOGIN_PASSWORD_CHANGED_MIGRATE), 0); 117 l10n_util::GetStringUTF16(IDS_LOGIN_PASSWORD_CHANGED_MIGRATE), 0);
118 delta_sync_radio_->set_listener(this); 118 delta_sync_radio_->set_listener(this);
119 delta_sync_radio_->SetMultiLine(true); 119 delta_sync_radio_->SetMultiLine(true);
120 120
121 old_password_field_ = new TextfieldWithMargin(Textfield::STYLE_PASSWORD); 121 old_password_field_ = new TextfieldWithMargin(Textfield::STYLE_OBSCURED);
122 old_password_field_->set_text_to_display_when_empty( 122 old_password_field_->set_text_to_display_when_empty(
123 l10n_util::GetStringUTF16(IDS_LOGIN_PREVIOUS_PASSWORD)); 123 l10n_util::GetStringUTF16(IDS_LOGIN_PREVIOUS_PASSWORD));
124 old_password_field_->set_default_width_in_chars(kPasswordFieldWidthChars); 124 old_password_field_->set_default_width_in_chars(kPasswordFieldWidthChars);
125 old_password_field_->SetController(this); 125 old_password_field_->SetController(this);
126 126
127 // Define controls layout. 127 // Define controls layout.
128 GridLayout* layout = GridLayout::CreatePanel(this); 128 GridLayout* layout = GridLayout::CreatePanel(this);
129 SetLayoutManager(layout); 129 SetLayoutManager(layout);
130 130
131 views::ColumnSet* column_set = layout->AddColumnSet(0); 131 views::ColumnSet* column_set = layout->AddColumnSet(0);
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
195 old_password_field_->RequestFocus(); 195 old_password_field_->RequestFocus();
196 } 196 }
197 } 197 }
198 198
199 bool PasswordChangedView::HandleKeyEvent(views::Textfield* sender, 199 bool PasswordChangedView::HandleKeyEvent(views::Textfield* sender,
200 const views::KeyEvent& keystroke) { 200 const views::KeyEvent& keystroke) {
201 return false; 201 return false;
202 } 202 }
203 203
204 } // namespace chromeos 204 } // namespace chromeos
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/chromeos/options/vpn_config_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698