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

Side by Side Diff: chrome/browser/ui/autofill/autofill_dialog_controller_impl.h

Issue 12815002: requestAutocomplete: Fill |form_structure_| from Online Wallet data (including (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 7 years, 9 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) 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 #ifndef CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_DIALOG_CONTROLLER_IMPL_H_ 5 #ifndef CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_DIALOG_CONTROLLER_IMPL_H_
6 #define CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_DIALOG_CONTROLLER_IMPL_H_ 6 #define CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_DIALOG_CONTROLLER_IMPL_H_
7 7
8 #include <map> 8 #include <map>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 217 matching lines...) Expand 10 before | Expand all | Expand 10 after
228 228
229 // Creates a DataModelWrapper item for the item that's checked in the 229 // Creates a DataModelWrapper item for the item that's checked in the
230 // suggestion model for |section|. This may represent Autofill 230 // suggestion model for |section|. This may represent Autofill
231 // data or Wallet data, depending on whether Wallet is currently enabled. 231 // data or Wallet data, depending on whether Wallet is currently enabled.
232 scoped_ptr<DataModelWrapper> CreateWrapper(DialogSection section); 232 scoped_ptr<DataModelWrapper> CreateWrapper(DialogSection section);
233 233
234 // Fills in |section|-related fields in |output_| according to the state of 234 // Fills in |section|-related fields in |output_| according to the state of
235 // |view_|. 235 // |view_|.
236 void FillOutputForSection(DialogSection section); 236 void FillOutputForSection(DialogSection section);
237 // As above, but uses |compare| to determine whether a DetailInput matches 237 // As above, but uses |compare| to determine whether a DetailInput matches
238 // a field. 238 // a field. NOTE: |compare| is ignored when |section| is SECTION_CC_BILLING.
Ilya Sherman 2013/03/14 21:59:08 Please document that this method has the side-effe
Dan Beam 2013/03/15 02:15:01 Done.
239 void FillOutputForSectionWithComparator(DialogSection section, 239 void FillOutputForSectionWithComparator(DialogSection section,
240 const InputFieldComparator& compare); 240 const InputFieldComparator& compare);
241 241
242 // Fills in |form_structure_| using |form_group|. Utility method for 242 // Fills in |form_structure_| using |form_group|. Utility method for
243 // FillOutputForSection. 243 // FillOutputForSection.
244 void FillFormStructureForSection(const FormGroup& form_group, 244 void FillFormStructureForSection(const FormGroup& form_group,
245 size_t variant, 245 size_t variant,
246 DialogSection section, 246 DialogSection section,
247 const InputFieldComparator& compare); 247 const InputFieldComparator& compare);
248 248
(...skipping 27 matching lines...) Expand all
276 // Asks risk module to asynchronously load fingerprint data. Data will be 276 // Asks risk module to asynchronously load fingerprint data. Data will be
277 // returned via OnDidLoadRiskFingerprintData. 277 // returned via OnDidLoadRiskFingerprintData.
278 void LoadRiskFingerprintData(); 278 void LoadRiskFingerprintData();
279 void OnDidLoadRiskFingerprintData(scoped_ptr<risk::Fingerprint> fingerprint); 279 void OnDidLoadRiskFingerprintData(scoped_ptr<risk::Fingerprint> fingerprint);
280 280
281 // Whether the user has chosen to enter all new data in |section|. This 281 // Whether the user has chosen to enter all new data in |section|. This
282 // happens via choosing "Add a new X..." from a section's suggestion menu. 282 // happens via choosing "Add a new X..." from a section's suggestion menu.
283 bool IsManuallyEditingSection(DialogSection section); 283 bool IsManuallyEditingSection(DialogSection section);
284 284
285 // Whether the billing section should be used to fill in the shipping details. 285 // Whether the billing section should be used to fill in the shipping details.
286 bool UseBillingForShipping(); 286 bool ShouldUseBillingForShipping();
287
288 // Whether the user wishes to save information locally to Autofill.
289 bool ShouldSaveDetailsLocally();
287 290
288 // Start the submit proccess to interact with Online Wallet (might do various 291 // Start the submit proccess to interact with Online Wallet (might do various
289 // things like accept documents, save details, update details, respond to 292 // things like accept documents, save details, update details, respond to
290 // required actions, etc.). 293 // required actions, etc.).
291 void SubmitWithWallet(); 294 void SubmitWithWallet();
292 295
293 // Gets a full wallet from Online Wallet so the user can purchase something. 296 // Gets a full wallet from Online Wallet so the user can purchase something.
294 // This information is decoded to reveal a fronting (proxy) card. 297 // This information is decoded to reveal a fronting (proxy) card.
295 void GetFullWallet(); 298 void GetFullWallet();
296 299
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
392 395
393 // Whether or not there was an error in the Autocheckout flow. 396 // Whether or not there was an error in the Autocheckout flow.
394 bool had_autocheckout_error_; 397 bool had_autocheckout_error_;
395 398
396 DISALLOW_COPY_AND_ASSIGN(AutofillDialogControllerImpl); 399 DISALLOW_COPY_AND_ASSIGN(AutofillDialogControllerImpl);
397 }; 400 };
398 401
399 } // namespace autofill 402 } // namespace autofill
400 403
401 #endif // CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_DIALOG_CONTROLLER_IMPL_H_ 404 #endif // CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_DIALOG_CONTROLLER_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698