| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_CHROME_AUTOFILL_CLIENT_H_ | 5 #ifndef CHROME_BROWSER_UI_AUTOFILL_CHROME_AUTOFILL_CLIENT_H_ |
| 6 #define CHROME_BROWSER_UI_AUTOFILL_CHROME_AUTOFILL_CLIENT_H_ | 6 #define CHROME_BROWSER_UI_AUTOFILL_CHROME_AUTOFILL_CLIENT_H_ |
| 7 | 7 |
| 8 #include "base/callback.h" | 8 #include "base/callback.h" |
| 9 #include "base/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
| 10 #include "base/i18n/rtl.h" | 10 #include "base/i18n/rtl.h" |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 44 // Called when the tab corresponding to |this| instance is activated. | 44 // Called when the tab corresponding to |this| instance is activated. |
| 45 void TabActivated(); | 45 void TabActivated(); |
| 46 | 46 |
| 47 // AutofillClient: | 47 // AutofillClient: |
| 48 PersonalDataManager* GetPersonalDataManager() override; | 48 PersonalDataManager* GetPersonalDataManager() override; |
| 49 scoped_refptr<AutofillWebDataService> GetDatabase() override; | 49 scoped_refptr<AutofillWebDataService> GetDatabase() override; |
| 50 PrefService* GetPrefs() override; | 50 PrefService* GetPrefs() override; |
| 51 void HideRequestAutocompleteDialog() override; | 51 void HideRequestAutocompleteDialog() override; |
| 52 void ShowAutofillSettings() override; | 52 void ShowAutofillSettings() override; |
| 53 void ShowUnmaskPrompt() override; | 53 void ShowUnmaskPrompt() override; |
| 54 void ConfirmSaveCreditCard(const base::Closure& save_card_callback) override; | 54 void ConfirmSaveCreditCard(AutofillDriver* autofill_driver, |
| 55 const base::Closure& save_card_callback) override; |
| 55 bool HasCreditCardScanFeature() override; | 56 bool HasCreditCardScanFeature() override; |
| 56 void ScanCreditCard(const CreditCardScanCallback& callback) override; | 57 void ScanCreditCard(const CreditCardScanCallback& callback) override; |
| 57 void ShowRequestAutocompleteDialog(const FormData& form, | 58 void ShowRequestAutocompleteDialog(const FormData& form, |
| 58 const GURL& source_url, | 59 const GURL& source_url, |
| 59 const ResultCallback& callback) override; | 60 const ResultCallback& callback) override; |
| 60 void ShowAutofillPopup( | 61 void ShowAutofillPopup( |
| 61 const gfx::RectF& element_bounds, | 62 const gfx::RectF& element_bounds, |
| 62 base::i18n::TextDirection text_direction, | 63 base::i18n::TextDirection text_direction, |
| 63 const std::vector<autofill::Suggestion>& suggestions, | 64 const std::vector<autofill::Suggestion>& suggestions, |
| 64 base::WeakPtr<AutofillPopupDelegate> delegate) override; | 65 base::WeakPtr<AutofillPopupDelegate> delegate) override; |
| (...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 128 CardUnmaskPromptView* card_unmask_view_; | 129 CardUnmaskPromptView* card_unmask_view_; |
| 129 | 130 |
| 130 base::WeakPtrFactory<ChromeAutofillClient> weak_pointer_factory_; | 131 base::WeakPtrFactory<ChromeAutofillClient> weak_pointer_factory_; |
| 131 | 132 |
| 132 DISALLOW_COPY_AND_ASSIGN(ChromeAutofillClient); | 133 DISALLOW_COPY_AND_ASSIGN(ChromeAutofillClient); |
| 133 }; | 134 }; |
| 134 | 135 |
| 135 } // namespace autofill | 136 } // namespace autofill |
| 136 | 137 |
| 137 #endif // CHROME_BROWSER_UI_AUTOFILL_CHROME_AUTOFILL_CLIENT_H_ | 138 #endif // CHROME_BROWSER_UI_AUTOFILL_CHROME_AUTOFILL_CLIENT_H_ |
| OLD | NEW |