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

Side by Side Diff: chrome/browser/ui/views/autofill/autofill_dialog_views.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
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_VIEWS_AUTOFILL_AUTOFILL_DIALOG_VIEWS_H_ 5 #ifndef CHROME_BROWSER_UI_VIEWS_AUTOFILL_AUTOFILL_DIALOG_VIEWS_H_
6 #define CHROME_BROWSER_UI_VIEWS_AUTOFILL_AUTOFILL_DIALOG_VIEWS_H_ 6 #define CHROME_BROWSER_UI_VIEWS_AUTOFILL_AUTOFILL_DIALOG_VIEWS_H_
7 7
8 #include <map> 8 #include <map>
9 9
10 #include "base/memory/weak_ptr.h" 10 #include "base/memory/weak_ptr.h"
(...skipping 422 matching lines...) Expand 10 before | Expand all | Expand 10 after
433 // in the appropriate DetailsGroup. The top level View in the hierarchy is 433 // in the appropriate DetailsGroup. The top level View in the hierarchy is
434 // returned. 434 // returned.
435 views::View* InitInputsView(DialogSection section); 435 views::View* InitInputsView(DialogSection section);
436 436
437 // Updates the given section to match the state provided by |controller_|. If 437 // Updates the given section to match the state provided by |controller_|. If
438 // |clobber_inputs| is true, the current state of the textfields will be 438 // |clobber_inputs| is true, the current state of the textfields will be
439 // ignored, otherwise their contents will be preserved. 439 // ignored, otherwise their contents will be preserved.
440 void UpdateSectionImpl(DialogSection section, bool clobber_inputs); 440 void UpdateSectionImpl(DialogSection section, bool clobber_inputs);
441 441
442 // Updates the visual state of the given group as per the model. 442 // Updates the visual state of the given group as per the model.
443 void UpdateDetailsGroupState(const DetailsGroup& group); 443 void UpdateDetailsGroupState(DetailsGroup* group);
Evan Stade 2013/04/30 19:03:10 nit: revert this change, instead fix ValidateGroup
Dan Beam 2013/05/01 00:43:09 Done.
444 444
445 // Gets a pointer to the DetailsGroup that's associated with the given section 445 // Gets a pointer to the DetailsGroup that's associated with the given section
446 // of the dialog. 446 // of the dialog.
447 DetailsGroup* GroupForSection(DialogSection section); 447 DetailsGroup* GroupForSection(DialogSection section);
448 448
449 // Gets a pointer to the DetailsGroup that's associated with a given |view|. 449 // Gets a pointer to the DetailsGroup that's associated with a given |view|.
450 // Returns NULL if no DetailsGroup was found. 450 // Returns NULL if no DetailsGroup was found.
451 DetailsGroup* GroupForView(views::View* view); 451 DetailsGroup* GroupForView(views::View* view);
452 452
453 // Checks all manual inputs in |group| for validity. Decorates the invalid 453 // Checks all manual inputs in |group| for validity. Decorates the invalid
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
542 views::FocusManager* focus_manager_; 542 views::FocusManager* focus_manager_;
543 543
544 ScopedObserver<views::Widget, AutofillDialogViews> observer_; 544 ScopedObserver<views::Widget, AutofillDialogViews> observer_;
545 545
546 DISALLOW_COPY_AND_ASSIGN(AutofillDialogViews); 546 DISALLOW_COPY_AND_ASSIGN(AutofillDialogViews);
547 }; 547 };
548 548
549 } // namespace autofill 549 } // namespace autofill
550 550
551 #endif // CHROME_BROWSER_UI_VIEWS_AUTOFILL_AUTOFILL_DIALOG_VIEWS_H_ 551 #endif // CHROME_BROWSER_UI_VIEWS_AUTOFILL_AUTOFILL_DIALOG_VIEWS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698