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

Unified Diff: chrome/browser/ui/views/autofill/autofill_dialog_views.h

Issue 12016031: Add 'save details in chrome' checkbox. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: change symbol names Created 7 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/views/autofill/autofill_dialog_views.h
diff --git a/chrome/browser/ui/views/autofill/autofill_dialog_views.h b/chrome/browser/ui/views/autofill/autofill_dialog_views.h
index f3c970488be69be8296cdb5752f6b914ca8e2024..2b1c520bdef16f74c157128ce5714c40053cf093 100644
--- a/chrome/browser/ui/views/autofill/autofill_dialog_views.h
+++ b/chrome/browser/ui/views/autofill/autofill_dialog_views.h
@@ -62,6 +62,7 @@ class AutofillDialogViews : public AutofillDialogView,
virtual void GetUserInput(DialogSection section,
DetailOutputMap* output) OVERRIDE;
virtual bool UseBillingForShipping() OVERRIDE;
+ virtual bool SaveDetailsLocally() OVERRIDE;
virtual const content::NavigationController& ShowSignIn() OVERRIDE;
virtual void HideSignIn() OVERRIDE;
@@ -74,6 +75,7 @@ class AutofillDialogViews : public AutofillDialogView,
virtual views::View* GetContentsView() OVERRIDE;
virtual string16 GetDialogButtonLabel(ui::DialogButton button) const OVERRIDE;
virtual bool IsDialogButtonEnabled(ui::DialogButton button) const OVERRIDE;
+ virtual views::View* GetExtraView() OVERRIDE;
virtual bool Cancel() OVERRIDE;
virtual bool Accept() OVERRIDE;
@@ -239,6 +241,10 @@ class AutofillDialogViews : public AutofillDialogView,
// Updates the visual state of the given group as per the model.
void UpdateDetailsGroupState(const DetailsGroup& group);
+ // Returns true if at least one of the details sections is in manual input
+ // mode.
+ bool AtLeastOneSectionIsEditing();
+
// Gets a pointer to the DetailsGroup that's associated with the given section
// of the dialog.
DetailsGroup* GroupForSection(DialogSection section);
@@ -296,6 +302,13 @@ class AutofillDialogViews : public AutofillDialogView,
// View to host everything that isn't related to sign-in.
views::View* main_container_;
+ // The "Extra view" is on the same row as the dialog buttons.
+ views::View* button_strip_extra_view_;
+
+ // This checkbox controls whether new details are saved to the Autofill
+ // database. It lives in |extra_view_|.
+ views::Checkbox* save_in_chrome_checkbox_;
+
// The focus manager for |window_|.
views::FocusManager* focus_manager_;
« no previous file with comments | « chrome/browser/ui/autofill/autofill_dialog_view.h ('k') | chrome/browser/ui/views/autofill/autofill_dialog_views.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698