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; |
65 void UpdateAutofillPopupDataListValues( | 66 void UpdateAutofillPopupDataListValues( |
66 const std::vector<base::string16>& values, | 67 const std::vector<base::string16>& values, |
67 const std::vector<base::string16>& labels) override; | 68 const std::vector<base::string16>& labels) override; |
68 void HideAutofillPopup() override; | 69 void HideAutofillPopup() override; |
69 bool IsAutocompleteEnabled() override; | 70 bool IsAutocompleteEnabled() override; |
70 void DetectAccountCreationForms( | 71 void DetectAccountCreationForms( |
71 content::RenderFrameHost* rfh, | 72 content::RenderFrameHost* rfh, |
72 const std::vector<autofill::FormStructure*>& forms) override; | 73 const std::vector<autofill::FormStructure*>& forms) override; |
73 void DidFillOrPreviewField(const base::string16& autofilled_value, | 74 void DidFillOrPreviewField(const base::string16& autofilled_value, |
74 const base::string16& profile_full_name) override; | 75 const base::string16& profile_full_name) override; |
75 void OnFirstUserGestureObserved() override; | 76 void OnFirstUserGestureObserved() override; |
76 | 77 |
77 // content::WebContentsObserver implementation. | 78 // content::WebContentsObserver implementation. |
78 void WebContentsDestroyed() override; | 79 void WebContentsDestroyed() override; |
| 80 void RenderFrameDeleted(content::RenderFrameHost* render_frame_host) override; |
79 | 81 |
80 // ZoomObserver implementation. | 82 // ZoomObserver implementation. |
81 void OnZoomChanged( | 83 void OnZoomChanged( |
82 const ui_zoom::ZoomController::ZoomChangedEventData& data) override; | 84 const ui_zoom::ZoomController::ZoomChangedEventData& data) override; |
83 | 85 |
84 // Exposed for testing. | 86 // Exposed for testing. |
85 AutofillDialogController* GetDialogControllerForTesting() { | 87 AutofillDialogController* GetDialogControllerForTesting() { |
86 return dialog_controller_.get(); | 88 return dialog_controller_.get(); |
87 } | 89 } |
88 void SetDialogControllerForTesting( | 90 void SetDialogControllerForTesting( |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
128 CardUnmaskPromptView* card_unmask_view_; | 130 CardUnmaskPromptView* card_unmask_view_; |
129 | 131 |
130 base::WeakPtrFactory<ChromeAutofillClient> weak_pointer_factory_; | 132 base::WeakPtrFactory<ChromeAutofillClient> weak_pointer_factory_; |
131 | 133 |
132 DISALLOW_COPY_AND_ASSIGN(ChromeAutofillClient); | 134 DISALLOW_COPY_AND_ASSIGN(ChromeAutofillClient); |
133 }; | 135 }; |
134 | 136 |
135 } // namespace autofill | 137 } // namespace autofill |
136 | 138 |
137 #endif // CHROME_BROWSER_UI_AUTOFILL_CHROME_AUTOFILL_CLIENT_H_ | 139 #endif // CHROME_BROWSER_UI_AUTOFILL_CHROME_AUTOFILL_CLIENT_H_ |
OLD | NEW |