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 COMPONENTS_AUTOFILL_CORE_BROWSER_TEST_AUTOFILL_CLIENT_H_ | 5 #ifndef COMPONENTS_AUTOFILL_CORE_BROWSER_TEST_AUTOFILL_CLIENT_H_ |
6 #define COMPONENTS_AUTOFILL_CORE_BROWSER_TEST_AUTOFILL_CLIENT_H_ | 6 #define COMPONENTS_AUTOFILL_CORE_BROWSER_TEST_AUTOFILL_CLIENT_H_ |
7 | 7 |
8 #include "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
9 #include "base/i18n/rtl.h" | 9 #include "base/i18n/rtl.h" |
10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
(...skipping 16 matching lines...) Expand all Loading... |
27 void ShowAutofillSettings() override; | 27 void ShowAutofillSettings() override; |
28 void ConfirmSaveCreditCard(const base::Closure& save_card_callback) override; | 28 void ConfirmSaveCreditCard(const base::Closure& save_card_callback) override; |
29 bool HasCreditCardScanFeature() override; | 29 bool HasCreditCardScanFeature() override; |
30 void ScanCreditCard(const CreditCardScanCallback& callback) override; | 30 void ScanCreditCard(const CreditCardScanCallback& callback) override; |
31 void ShowRequestAutocompleteDialog(const FormData& form, | 31 void ShowRequestAutocompleteDialog(const FormData& form, |
32 const GURL& source_url, | 32 const GURL& source_url, |
33 const ResultCallback& callback) override; | 33 const ResultCallback& callback) override; |
34 void ShowAutofillPopup( | 34 void ShowAutofillPopup( |
35 const gfx::RectF& element_bounds, | 35 const gfx::RectF& element_bounds, |
36 base::i18n::TextDirection text_direction, | 36 base::i18n::TextDirection text_direction, |
37 const std::vector<base::string16>& values, | 37 const std::vector<Suggestion>& suggestions, |
38 const std::vector<base::string16>& labels, | |
39 const std::vector<base::string16>& icons, | |
40 const std::vector<int>& identifiers, | |
41 base::WeakPtr<AutofillPopupDelegate> delegate) override; | 38 base::WeakPtr<AutofillPopupDelegate> delegate) override; |
42 void UpdateAutofillPopupDataListValues( | 39 void UpdateAutofillPopupDataListValues( |
43 const std::vector<base::string16>& values, | 40 const std::vector<base::string16>& values, |
44 const std::vector<base::string16>& labels) override; | 41 const std::vector<base::string16>& labels) override; |
45 void HideAutofillPopup() override; | 42 void HideAutofillPopup() override; |
46 bool IsAutocompleteEnabled() override; | 43 bool IsAutocompleteEnabled() override; |
47 void DetectAccountCreationForms( | 44 void DetectAccountCreationForms( |
48 content::RenderFrameHost* rfh, | 45 content::RenderFrameHost* rfh, |
49 const std::vector<autofill::FormStructure*>& forms) override; | 46 const std::vector<autofill::FormStructure*>& forms) override; |
50 void DidFillOrPreviewField(const base::string16& autofilled_value, | 47 void DidFillOrPreviewField(const base::string16& autofilled_value, |
51 const base::string16& profile_full_name) override; | 48 const base::string16& profile_full_name) override; |
52 void OnFirstUserGestureObserved() override; | 49 void OnFirstUserGestureObserved() override; |
53 | 50 |
54 void SetPrefs(scoped_ptr<PrefService> prefs) { prefs_ = prefs.Pass(); } | 51 void SetPrefs(scoped_ptr<PrefService> prefs) { prefs_ = prefs.Pass(); } |
55 | 52 |
56 private: | 53 private: |
57 // NULL by default. | 54 // NULL by default. |
58 scoped_ptr<PrefService> prefs_; | 55 scoped_ptr<PrefService> prefs_; |
59 | 56 |
60 DISALLOW_COPY_AND_ASSIGN(TestAutofillClient); | 57 DISALLOW_COPY_AND_ASSIGN(TestAutofillClient); |
61 }; | 58 }; |
62 | 59 |
63 } // namespace autofill | 60 } // namespace autofill |
64 | 61 |
65 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_TEST_AUTOFILL_CLIENT_H_ | 62 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_TEST_AUTOFILL_CLIENT_H_ |
OLD | NEW |