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

Unified Diff: chrome/browser/ui/autofill/autofill_dialog_controller_impl.h

Issue 12208070: allow wallet items to appear in requestAutocomplete UI (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: clang fix Created 7 years, 10 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/autofill/autofill_dialog_controller_impl.h
diff --git a/chrome/browser/ui/autofill/autofill_dialog_controller_impl.h b/chrome/browser/ui/autofill/autofill_dialog_controller_impl.h
index 5f97f6b1df3e312aa2f28ea8e14f9298b4007376..851c7d2b253bbf3505001192b447fe716c23654e 100644
--- a/chrome/browser/ui/autofill/autofill_dialog_controller_impl.h
+++ b/chrome/browser/ui/autofill/autofill_dialog_controller_impl.h
@@ -40,6 +40,7 @@ class WebContents;
namespace autofill {
class AutofillDialogView;
+class DataModelWrapper;
// This class drives the dialog that appears when a site uses the imperative
// autocomplete API to fill out a form.
@@ -149,10 +150,6 @@ class AutofillDialogControllerImpl : public AutofillDialogController,
virtual void OnPersonalDataChanged() OVERRIDE;
private:
- // Determines whether |input| and |field| match.
- typedef base::Callback<bool(const DetailInput& input,
- const AutofillField& field)> InputFieldComparator;
-
// Refresh wallet items immediately if there's no refresh currently in
// progress, otherwise wait until the current refresh completes.
void ScheduleRefreshWalletItems();
@@ -180,6 +177,11 @@ class AutofillDialogControllerImpl : public AutofillDialogController,
// menu.
bool IsCompleteProfile(const AutofillProfile& profile);
+ // Creates a DataModelWrapper item for the item that's checked in the
+ // suggestion model for |section|. This may represent Autofill
+ // data or Wallet data, depending on whether Wallet is currently enabled.
+ scoped_ptr<DataModelWrapper> CreateWrapper(DialogSection section);
+
// Fills in |section|-related fields in |output_| according to the state of
// |view_|.
void FillOutputForSection(DialogSection section);

Powered by Google App Engine
This is Rietveld 408576698