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

Side by Side Diff: chrome/browser/ui/views/autofill_profiles_view_win.cc

Issue 6034002: Replace Textfield::Keystroke with views::KeyEvent (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: key_code, ET_KEY_PRESS for WM_CHAR Created 9 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
OLDNEW
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
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
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 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/autofill_profiles_view_win.h ('k') | chrome/browser/ui/views/bookmark_editor_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698