Chromium Code Reviews| 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..597aa95df35549d8136a08feba05c5c94a9c8e21 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 SomethingIsEditing(); |
|
Ilya Sherman
2013/01/19 10:22:14
Optional nit: Hmm, I find this name a little hard
Evan Stade
2013/01/22 20:15:21
Done.
|
| + |
| // 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* extra_view_; |
|
Ilya Sherman
2013/01/19 10:22:14
nit: Hmm, is there any more descriptive name we co
Evan Stade
2013/01/22 20:15:21
Done.
|
| + |
| + // This checkbox controls whether new details are saved to the autofill |
|
Ilya Sherman
2013/01/19 10:22:14
nit: "autofill" -> "Autofill"
Evan Stade
2013/01/22 20:15:21
Done.
|
| + // database. It lives in |extra_view_|. |
| + views::Checkbox* save_in_chrome_checkbox_; |
| + |
| // The focus manager for |window_|. |
| views::FocusManager* focus_manager_; |