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 196 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
207 virtual void SubmitButtonDelayBegin(); | 207 virtual void SubmitButtonDelayBegin(); |
208 | 208 |
209 void FinishSubmit(); | 209 void FinishSubmit(); |
210 | 210 |
211 // Ends the delay for enabling the submit button. Called only from tests. | 211 // Ends the delay for enabling the submit button. Called only from tests. |
212 // Without this method, the tests would have to wait for the delay timer to | 212 // Without this method, the tests would have to wait for the delay timer to |
213 // finish, which would be flaky. | 213 // finish, which would be flaky. |
214 void SubmitButtonDelayEndForTesting(); | 214 void SubmitButtonDelayEndForTesting(); |
215 | 215 |
216 private: | 216 private: |
217 FRIEND_TEST_ALL_PREFIXES(AutofillDialogControllerI18nTest, | |
218 CorrectCountryFromInputs); | |
219 FRIEND_TEST_ALL_PREFIXES(AutofillDialogControllerTest, | 217 FRIEND_TEST_ALL_PREFIXES(AutofillDialogControllerTest, |
220 TransactionAmount); | 218 TransactionAmount); |
221 FRIEND_TEST_ALL_PREFIXES(AutofillDialogControllerTest, | 219 FRIEND_TEST_ALL_PREFIXES(AutofillDialogControllerTest, |
222 TransactionAmountReadonly); | 220 TransactionAmountReadonly); |
223 | 221 |
224 // Initializes or updates |suggested_cc_| et al. | 222 // Initializes or updates |suggested_cc_| et al. |
225 void SuggestionsUpdated(); | 223 void SuggestionsUpdated(); |
226 | 224 |
227 // Starts fetching the wallet items from Online Wallet. | 225 // Starts fetching the wallet items from Online Wallet. |
228 void GetWalletItems(); | 226 void GetWalletItems(); |
(...skipping 353 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
582 base::OneShotTimer<AutofillDialogControllerImpl> submit_button_delay_timer_; | 580 base::OneShotTimer<AutofillDialogControllerImpl> submit_button_delay_timer_; |
583 | 581 |
584 base::WeakPtrFactory<AutofillDialogControllerImpl> weak_ptr_factory_; | 582 base::WeakPtrFactory<AutofillDialogControllerImpl> weak_ptr_factory_; |
585 | 583 |
586 DISALLOW_COPY_AND_ASSIGN(AutofillDialogControllerImpl); | 584 DISALLOW_COPY_AND_ASSIGN(AutofillDialogControllerImpl); |
587 }; | 585 }; |
588 | 586 |
589 } // namespace autofill | 587 } // namespace autofill |
590 | 588 |
591 #endif // CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_DIALOG_CONTROLLER_IMPL_H_ | 589 #endif // CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_DIALOG_CONTROLLER_IMPL_H_ |
OLD | NEW |