Chromium Code Reviews| 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 269 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 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 // Called when there's nothing left to accept, update, save, or authenticate | 286 // Called when there's nothing left to accept, update, save, or authenticate |
| 287 // in order to fill |form_structure_| and pass data back to the invoking page. | 287 // in order to fill |form_structure_| and pass data back to the invoking page. |
| 288 void DoFinishSubmit(); | 288 void DoFinishSubmit(); |
| 289 | 289 |
| 290 // Delays enabling submit button for |delay_ms| milliseconds. Exposed for | |
| 291 // testing. | |
| 292 virtual void SubmitButtonDelayBegin(int delay_ms); | |
|
Evan Stade
2013/09/04 21:42:52
nit: this should be TimeDelta rather than int
| |
| 293 | |
| 294 // Called when the delay for enabling the submit button ends. Exposed for | |
| 295 // testing. | |
| 296 virtual void OnSubmitButtonDelayEnd(); | |
| 297 | |
| 290 private: | 298 private: |
| 291 enum DialogSignedInState { | 299 enum DialogSignedInState { |
| 292 REQUIRES_RESPONSE, | 300 REQUIRES_RESPONSE, |
| 293 REQUIRES_SIGN_IN, | 301 REQUIRES_SIGN_IN, |
| 294 REQUIRES_PASSIVE_SIGN_IN, | 302 REQUIRES_PASSIVE_SIGN_IN, |
| 295 SIGNED_IN, | 303 SIGNED_IN, |
| 296 SIGN_IN_DISABLED, | 304 SIGN_IN_DISABLED, |
| 297 }; | 305 }; |
| 298 | 306 |
| 299 // Whether or not the current request wants credit info back. | 307 // Whether or not the current request wants credit info back. |
| (...skipping 393 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 693 | 701 |
| 694 // The Google Wallet cookie value, set as an authorization header on requests | 702 // The Google Wallet cookie value, set as an authorization header on requests |
| 695 // to Wallet. | 703 // to Wallet. |
| 696 std::string wallet_cookie_value_; | 704 std::string wallet_cookie_value_; |
| 697 | 705 |
| 698 // Populated if the user chose to save a newly inputted credit card. Used to | 706 // Populated if the user chose to save a newly inputted credit card. Used to |
| 699 // show a bubble as the dialog closes to confirm a user's new card info was | 707 // show a bubble as the dialog closes to confirm a user's new card info was |
| 700 // saved. Never populated while incognito (as nothing's actually saved). | 708 // saved. Never populated while incognito (as nothing's actually saved). |
| 701 scoped_ptr<CreditCard> newly_saved_card_; | 709 scoped_ptr<CreditCard> newly_saved_card_; |
| 702 | 710 |
| 711 // The timer that delays enabling submit button for a short period of time at | |
| 712 // the startup. | |
| 713 base::OneShotTimer<AutofillDialogControllerImpl> submit_buton_delay_timer_; | |
|
Evan Stade
2013/09/04 21:42:52
nit: s/button/button
| |
| 714 | |
| 703 DISALLOW_COPY_AND_ASSIGN(AutofillDialogControllerImpl); | 715 DISALLOW_COPY_AND_ASSIGN(AutofillDialogControllerImpl); |
| 704 }; | 716 }; |
| 705 | 717 |
| 706 } // namespace autofill | 718 } // namespace autofill |
| 707 | 719 |
| 708 #endif // CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_DIALOG_CONTROLLER_IMPL_H_ | 720 #endif // CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_DIALOG_CONTROLLER_IMPL_H_ |
| OLD | NEW |