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 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
42 void ShowAutofillPopup( | 42 void ShowAutofillPopup( |
43 const gfx::RectF& element_bounds, | 43 const gfx::RectF& element_bounds, |
44 base::i18n::TextDirection text_direction, | 44 base::i18n::TextDirection text_direction, |
45 const std::vector<Suggestion>& suggestions, | 45 const std::vector<Suggestion>& suggestions, |
46 base::WeakPtr<AutofillPopupDelegate> delegate) override; | 46 base::WeakPtr<AutofillPopupDelegate> delegate) override; |
47 void UpdateAutofillPopupDataListValues( | 47 void UpdateAutofillPopupDataListValues( |
48 const std::vector<base::string16>& values, | 48 const std::vector<base::string16>& values, |
49 const std::vector<base::string16>& labels) override; | 49 const std::vector<base::string16>& labels) override; |
50 void HideAutofillPopup() override; | 50 void HideAutofillPopup() override; |
51 bool IsAutocompleteEnabled() override; | 51 bool IsAutocompleteEnabled() override; |
52 void DetectAccountCreationForms( | 52 void PropagateAutofillPredictions( |
53 content::RenderFrameHost* rfh, | 53 content::RenderFrameHost* rfh, |
54 const std::vector<autofill::FormStructure*>& forms) override; | 54 const std::vector<autofill::FormStructure*>& forms) override; |
55 void DidFillOrPreviewField(const base::string16& autofilled_value, | 55 void DidFillOrPreviewField(const base::string16& autofilled_value, |
56 const base::string16& profile_full_name) override; | 56 const base::string16& profile_full_name) override; |
57 void OnFirstUserGestureObserved() override; | 57 void OnFirstUserGestureObserved() override; |
58 void LinkClicked(const GURL& url, WindowOpenDisposition disposition) override; | 58 void LinkClicked(const GURL& url, WindowOpenDisposition disposition) override; |
59 | 59 |
60 void SetPrefs(scoped_ptr<PrefService> prefs) { prefs_ = prefs.Pass(); } | 60 void SetPrefs(scoped_ptr<PrefService> prefs) { prefs_ = prefs.Pass(); } |
61 | 61 |
62 rappor::TestRapporService* test_rappor_service() { | 62 rappor::TestRapporService* test_rappor_service() { |
63 return rappor_service_.get(); | 63 return rappor_service_.get(); |
64 } | 64 } |
65 | 65 |
66 private: | 66 private: |
67 // NULL by default. | 67 // NULL by default. |
68 scoped_ptr<PrefService> prefs_; | 68 scoped_ptr<PrefService> prefs_; |
69 scoped_ptr<FakeOAuth2TokenService> token_service_; | 69 scoped_ptr<FakeOAuth2TokenService> token_service_; |
70 scoped_ptr<FakeIdentityProvider> identity_provider_; | 70 scoped_ptr<FakeIdentityProvider> identity_provider_; |
71 scoped_ptr<rappor::TestRapporService> rappor_service_; | 71 scoped_ptr<rappor::TestRapporService> rappor_service_; |
72 | 72 |
73 DISALLOW_COPY_AND_ASSIGN(TestAutofillClient); | 73 DISALLOW_COPY_AND_ASSIGN(TestAutofillClient); |
74 }; | 74 }; |
75 | 75 |
76 } // namespace autofill | 76 } // namespace autofill |
77 | 77 |
78 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_TEST_AUTOFILL_CLIENT_H_ | 78 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_TEST_AUTOFILL_CLIENT_H_ |
OLD | NEW |