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

Unified Diff: chrome/browser/ui/cocoa/autofill/autofill_dialog_cocoa.mm

Issue 130563003: Change all other AutofillDialogView methods with a const DetailInput& as a param (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 6 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/cocoa/autofill/autofill_dialog_cocoa.mm
diff --git a/chrome/browser/ui/cocoa/autofill/autofill_dialog_cocoa.mm b/chrome/browser/ui/cocoa/autofill/autofill_dialog_cocoa.mm
index cf1e7c4de958864f1626178f7f73ca0596c7f8e6..f07d4c8e6f178ffdcb061528b2f946b884c65812 100644
--- a/chrome/browser/ui/cocoa/autofill/autofill_dialog_cocoa.mm
+++ b/chrome/browser/ui/cocoa/autofill/autofill_dialog_cocoa.mm
@@ -152,12 +152,12 @@ void AutofillDialogCocoa::CancelForTesting() {
}
base::string16 AutofillDialogCocoa::GetTextContentsOfInput(
- const DetailInput& input) {
+ ServerFieldType type) {
for (size_t i = SECTION_MIN; i <= SECTION_MAX; ++i) {
DialogSection section = static_cast<DialogSection>(i);
FieldValueMap contents;
[sheet_delegate_ getInputs:&contents forSection:section];
- FieldValueMap::const_iterator it = contents.find(input.type);
+ FieldValueMap::const_iterator it = contents.find(type);
if (it != contents.end())
return it->second;
}
@@ -167,10 +167,10 @@ base::string16 AutofillDialogCocoa::GetTextContentsOfInput(
}
void AutofillDialogCocoa::SetTextContentsOfInput(
- const DetailInput& input,
+ ServerFieldType type,
const base::string16& contents) {
[sheet_delegate_ setTextContents:base::SysUTF16ToNSString(contents)
- forInput:input];
+ forType:type];
}
void AutofillDialogCocoa::SetTextContentsOfSuggestionInput(
@@ -180,8 +180,8 @@ void AutofillDialogCocoa::SetTextContentsOfSuggestionInput(
ofSuggestionForSection:section];
}
-void AutofillDialogCocoa::ActivateInput(const DetailInput& input) {
- [sheet_delegate_ activateFieldForInput:input];
+void AutofillDialogCocoa::ActivateInput(ServerFieldType type) {
+ [sheet_delegate_ activateFieldForType:type];
}
gfx::Size AutofillDialogCocoa::GetSize() const {

Powered by Google App Engine
This is Rietveld 408576698