OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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/views/autofill_profiles_view_win.h" | 5 #include "chrome/browser/views/autofill_profiles_view_win.h" |
6 | 6 |
7 #include <vsstyle.h> | 7 #include <vsstyle.h> |
8 #include <vssym32.h> | 8 #include <vssym32.h> |
9 | 9 |
10 #include "app/l10n_util.h" | 10 #include "app/l10n_util.h" |
(...skipping 855 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
866 sender, new_contents); | 866 sender, new_contents); |
867 temporary_info_.credit_card.SetInfo( | 867 temporary_info_.credit_card.SetInfo( |
868 AutoFillType(credit_card_fields_[field].type), new_contents); | 868 AutoFillType(credit_card_fields_[field].type), new_contents); |
869 UpdateButtons(); | 869 UpdateButtons(); |
870 return; | 870 return; |
871 } | 871 } |
872 } | 872 } |
873 } | 873 } |
874 } | 874 } |
875 | 875 |
876 bool AutoFillProfilesView::EditableSetViewContents::HandleKeystroke( | 876 bool AutoFillProfilesView::EditableSetViewContents::HandleKeyEvent( |
877 views::Textfield* sender, const views::Textfield::Keystroke& keystroke) { | 877 views::Textfield* sender, const views::KeyEvent& key_event) { |
878 if (sender == text_fields_[TEXT_CC_NUMBER] && | 878 if (sender == text_fields_[TEXT_CC_NUMBER] && |
879 !has_credit_card_number_been_edited_) { | 879 !has_credit_card_number_been_edited_) { |
880 // You cannot edit obfuscated number, you must retype it anew. | 880 // You cannot edit obfuscated number, you must retype it anew. |
881 sender->SetText(string16()); | 881 sender->SetText(string16()); |
882 has_credit_card_number_been_edited_ = true; | 882 has_credit_card_number_been_edited_ = true; |
883 } | 883 } |
884 return false; | 884 return false; |
885 } | 885 } |
886 | 886 |
887 ///////////////////////////////////////////////////////////////////////////// | 887 ///////////////////////////////////////////////////////////////////////////// |
(...skipping 422 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1310 AutoFillDialogObserver* observer, | 1310 AutoFillDialogObserver* observer, |
1311 Profile* profile) { | 1311 Profile* profile) { |
1312 DCHECK(profile); | 1312 DCHECK(profile); |
1313 | 1313 |
1314 PersonalDataManager* personal_data_manager = | 1314 PersonalDataManager* personal_data_manager = |
1315 profile->GetPersonalDataManager(); | 1315 profile->GetPersonalDataManager(); |
1316 DCHECK(personal_data_manager); | 1316 DCHECK(personal_data_manager); |
1317 AutoFillProfilesView::Show(parent, observer, personal_data_manager, profile, | 1317 AutoFillProfilesView::Show(parent, observer, personal_data_manager, profile, |
1318 profile->GetPrefs(), NULL, NULL); | 1318 profile->GetPrefs(), NULL, NULL); |
1319 } | 1319 } |
OLD | NEW |