| OLD | NEW |
| 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 <set> | 8 #include <set> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 158 virtual void FocusMoved() OVERRIDE; | 158 virtual void FocusMoved() OVERRIDE; |
| 159 virtual gfx::Image SplashPageImage() const OVERRIDE; | 159 virtual gfx::Image SplashPageImage() const OVERRIDE; |
| 160 virtual void ViewClosed() OVERRIDE; | 160 virtual void ViewClosed() OVERRIDE; |
| 161 virtual std::vector<DialogNotification> CurrentNotifications() OVERRIDE; | 161 virtual std::vector<DialogNotification> CurrentNotifications() OVERRIDE; |
| 162 virtual std::vector<DialogAutocheckoutStep> CurrentAutocheckoutSteps() | 162 virtual std::vector<DialogAutocheckoutStep> CurrentAutocheckoutSteps() |
| 163 const OVERRIDE; | 163 const OVERRIDE; |
| 164 virtual void SignInLinkClicked() OVERRIDE; | 164 virtual void SignInLinkClicked() OVERRIDE; |
| 165 virtual void NotificationCheckboxStateChanged(DialogNotification::Type type, | 165 virtual void NotificationCheckboxStateChanged(DialogNotification::Type type, |
| 166 bool checked) OVERRIDE; | 166 bool checked) OVERRIDE; |
| 167 virtual void LegalDocumentLinkClicked(const ui::Range& range) OVERRIDE; | 167 virtual void LegalDocumentLinkClicked(const ui::Range& range) OVERRIDE; |
| 168 virtual void OverlayButtonPressed() OVERRIDE; | |
| 169 virtual bool OnCancel() OVERRIDE; | 168 virtual bool OnCancel() OVERRIDE; |
| 170 virtual bool OnAccept() OVERRIDE; | 169 virtual bool OnAccept() OVERRIDE; |
| 171 virtual Profile* profile() OVERRIDE; | 170 virtual Profile* profile() OVERRIDE; |
| 172 virtual content::WebContents* GetWebContents() OVERRIDE; | 171 virtual content::WebContents* GetWebContents() OVERRIDE; |
| 173 | 172 |
| 174 // AutofillPopupDelegate implementation. | 173 // AutofillPopupDelegate implementation. |
| 175 virtual void OnPopupShown( | 174 virtual void OnPopupShown( |
| 176 content::RenderWidgetHost::KeyPressEventCallback* callback) OVERRIDE; | 175 content::RenderWidgetHost::KeyPressEventCallback* callback) OVERRIDE; |
| 177 virtual void OnPopupHidden( | 176 virtual void OnPopupHidden( |
| 178 content::RenderWidgetHost::KeyPressEventCallback* callback) OVERRIDE; | 177 content::RenderWidgetHost::KeyPressEventCallback* callback) OVERRIDE; |
| (...skipping 310 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 489 void GetFullWallet(); | 488 void GetFullWallet(); |
| 490 | 489 |
| 491 // Updates the state of the controller and |view_| based on any required | 490 // Updates the state of the controller and |view_| based on any required |
| 492 // actions returned by Save or Update calls to Wallet. | 491 // actions returned by Save or Update calls to Wallet. |
| 493 void HandleSaveOrUpdateRequiredActions( | 492 void HandleSaveOrUpdateRequiredActions( |
| 494 const std::vector<wallet::RequiredAction>& required_actions); | 493 const std::vector<wallet::RequiredAction>& required_actions); |
| 495 | 494 |
| 496 // Whether submission is currently waiting for |action| to be handled. | 495 // Whether submission is currently waiting for |action| to be handled. |
| 497 bool IsSubmitPausedOn(wallet::RequiredAction action) const; | 496 bool IsSubmitPausedOn(wallet::RequiredAction action) const; |
| 498 | 497 |
| 498 // Shows a card generation overlay if necessary, then calls DoFinishSubmit. |
| 499 void FinishSubmit(); |
| 500 |
| 499 // Called when there's nothing left to accept, update, save, or authenticate | 501 // Called when there's nothing left to accept, update, save, or authenticate |
| 500 // in order to fill |form_structure_| and pass data back to the invoking page. | 502 // in order to fill |form_structure_| and pass data back to the invoking page. |
| 501 void FinishSubmit(); | 503 void DoFinishSubmit(); |
| 502 | 504 |
| 503 // Writes to prefs the choice of AutofillDataModel for |section|. | 505 // Writes to prefs the choice of AutofillDataModel for |section|. |
| 504 void PersistAutofillChoice(DialogSection section, | 506 void PersistAutofillChoice(DialogSection section, |
| 505 const std::string& guid, | 507 const std::string& guid, |
| 506 int variant); | 508 int variant); |
| 507 | 509 |
| 508 // Sets the outparams to the default AutofillDataModel for |section| (which is | 510 // Sets the outparams to the default AutofillDataModel for |section| (which is |
| 509 // the first one in the menu that is a suggestion item). | 511 // the first one in the menu that is a suggestion item). |
| 510 void GetDefaultAutofillChoice(DialogSection section, | 512 void GetDefaultAutofillChoice(DialogSection section, |
| 511 std::string* guid, | 513 std::string* guid, |
| (...skipping 202 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 714 // show a bubble as the dialog closes to confirm a user's new card info was | 716 // show a bubble as the dialog closes to confirm a user's new card info was |
| 715 // saved. Never populated while incognito (as nothing's actually saved). | 717 // saved. Never populated while incognito (as nothing's actually saved). |
| 716 scoped_ptr<CreditCard> newly_saved_card_; | 718 scoped_ptr<CreditCard> newly_saved_card_; |
| 717 | 719 |
| 718 DISALLOW_COPY_AND_ASSIGN(AutofillDialogControllerImpl); | 720 DISALLOW_COPY_AND_ASSIGN(AutofillDialogControllerImpl); |
| 719 }; | 721 }; |
| 720 | 722 |
| 721 } // namespace autofill | 723 } // namespace autofill |
| 722 | 724 |
| 723 #endif // CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_DIALOG_CONTROLLER_IMPL_H_ | 725 #endif // CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_DIALOG_CONTROLLER_IMPL_H_ |
| OLD | NEW |