| 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 265 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 276 // Whether the information input in this dialog will be securely transmitted | 276 // Whether the information input in this dialog will be securely transmitted |
| 277 // to the requesting site. | 277 // to the requesting site. |
| 278 virtual bool TransmissionWillBeSecure() const; | 278 virtual bool TransmissionWillBeSecure() const; |
| 279 | 279 |
| 280 // Shows a new credit card saved bubble and passes ownership of |new_card| and | 280 // Shows a new credit card saved bubble and passes ownership of |new_card| and |
| 281 // |billing_profile| to the bubble. Exposed for testing. | 281 // |billing_profile| to the bubble. Exposed for testing. |
| 282 virtual void ShowNewCreditCardBubble( | 282 virtual void ShowNewCreditCardBubble( |
| 283 scoped_ptr<CreditCard> new_card, | 283 scoped_ptr<CreditCard> new_card, |
| 284 scoped_ptr<AutofillProfile> billing_profile); | 284 scoped_ptr<AutofillProfile> billing_profile); |
| 285 | 285 |
| 286 // Delays enabling submit button for a short period of time. Exposed for |
| 287 // testing. |
| 288 virtual void SubmitButtonDelayBegin(); |
| 289 |
| 290 // Called when the delay for enabling the submit button ends. Exposed for |
| 291 // testing. |
| 292 virtual void OnSubmitButtonDelayEnd(); |
| 293 |
| 286 private: | 294 private: |
| 287 // Whether or not the current request wants credit info back. | 295 // Whether or not the current request wants credit info back. |
| 288 bool RequestingCreditCardInfo() const; | 296 bool RequestingCreditCardInfo() const; |
| 289 | 297 |
| 290 // Initializes or updates |suggested_email_| et al. | 298 // Initializes or updates |suggested_email_| et al. |
| 291 void SuggestionsUpdated(); | 299 void SuggestionsUpdated(); |
| 292 | 300 |
| 293 // Whether the user's wallet items have at least one address and instrument. | 301 // Whether the user's wallet items have at least one address and instrument. |
| 294 bool HasCompleteWallet() const; | 302 bool HasCompleteWallet() const; |
| 295 | 303 |
| (...skipping 383 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 679 | 687 |
| 680 // The Google Wallet cookie value, set as an authorization header on requests | 688 // The Google Wallet cookie value, set as an authorization header on requests |
| 681 // to Wallet. | 689 // to Wallet. |
| 682 std::string wallet_cookie_value_; | 690 std::string wallet_cookie_value_; |
| 683 | 691 |
| 684 // Populated if the user chose to save a newly inputted credit card. Used to | 692 // Populated if the user chose to save a newly inputted credit card. Used to |
| 685 // show a bubble as the dialog closes to confirm a user's new card info was | 693 // show a bubble as the dialog closes to confirm a user's new card info was |
| 686 // saved. Never populated while incognito (as nothing's actually saved). | 694 // saved. Never populated while incognito (as nothing's actually saved). |
| 687 scoped_ptr<CreditCard> newly_saved_card_; | 695 scoped_ptr<CreditCard> newly_saved_card_; |
| 688 | 696 |
| 697 // Whether enabling submit button is being delayed. Should be true for a short |
| 698 // period of time after showing the dialog. |
| 699 bool is_submit_button_delayed_; |
| 700 |
| 689 DISALLOW_COPY_AND_ASSIGN(AutofillDialogControllerImpl); | 701 DISALLOW_COPY_AND_ASSIGN(AutofillDialogControllerImpl); |
| 690 }; | 702 }; |
| 691 | 703 |
| 692 } // namespace autofill | 704 } // namespace autofill |
| 693 | 705 |
| 694 #endif // CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_DIALOG_CONTROLLER_IMPL_H_ | 706 #endif // CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_DIALOG_CONTROLLER_IMPL_H_ |
| OLD | NEW |