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

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

Issue 14425010: Handle expired Autofill credit cards in autofill dialog (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 7 years, 7 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
« no previous file with comments | « no previous file | chrome/browser/ui/autofill/autofill_dialog_controller_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 271 matching lines...) Expand 10 before | Expand all | Expand 10 after
282 // Refreshes the model on Wallet or sign-in state update. 282 // Refreshes the model on Wallet or sign-in state update.
283 void OnWalletOrSigninUpdate(); 283 void OnWalletOrSigninUpdate();
284 284
285 // Should be called on the Wallet sign-in error. 285 // Should be called on the Wallet sign-in error.
286 void OnWalletSigninError(); 286 void OnWalletSigninError();
287 287
288 // Calculates |legal_documents_text_| and |legal_document_link_ranges_| if 288 // Calculates |legal_documents_text_| and |legal_document_link_ranges_| if
289 // they have not already been calculated. 289 // they have not already been calculated.
290 void EnsureLegalDocumentsText(); 290 void EnsureLegalDocumentsText();
291 291
292 // Resets the DetailInputs* and |section_editing_state_| for a section. 292 // Clears previously entered manual input, shows editing UI if the current
293 void ResetManualInputForSection(DialogSection section); 293 // suggestion is invalid, and updates the |view_| (if it exists).
294 void PrepareDetailInputsForSection(DialogSection section);
294 295
295 // Creates a DataModelWrapper item for the item that's checked in the 296 // Creates a DataModelWrapper item for the item that's checked in the
296 // suggestion model for |section|. This may represent Autofill 297 // suggestion model for |section|. This may represent Autofill
297 // data or Wallet data, depending on whether Wallet is currently enabled. 298 // data or Wallet data, depending on whether Wallet is currently enabled.
298 scoped_ptr<DataModelWrapper> CreateWrapper(DialogSection section); 299 scoped_ptr<DataModelWrapper> CreateWrapper(DialogSection section);
299 300
300 // Fills in |section|-related fields in |output_| according to the state of 301 // Fills in |section|-related fields in |output_| according to the state of
301 // |view_|. 302 // |view_|.
302 void FillOutputForSection(DialogSection section); 303 void FillOutputForSection(DialogSection section);
303 // As above, but uses |compare| to determine whether a DetailInput matches 304 // As above, but uses |compare| to determine whether a DetailInput matches
(...skipping 242 matching lines...) Expand 10 before | Expand all | Expand 10 after
546 547
547 // Whether the latency to display to the UI was logged to UMA yet. 548 // Whether the latency to display to the UI was logged to UMA yet.
548 bool was_ui_latency_logged_; 549 bool was_ui_latency_logged_;
549 550
550 DISALLOW_COPY_AND_ASSIGN(AutofillDialogControllerImpl); 551 DISALLOW_COPY_AND_ASSIGN(AutofillDialogControllerImpl);
551 }; 552 };
552 553
553 } // namespace autofill 554 } // namespace autofill
554 555
555 #endif // CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_DIALOG_CONTROLLER_IMPL_H_ 556 #endif // CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_DIALOG_CONTROLLER_IMPL_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/ui/autofill/autofill_dialog_controller_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698