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_AUTOFILL_CLIENT_H_ | 5 #ifndef COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_CLIENT_H_ |
6 #define COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_CLIENT_H_ | 6 #define COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_CLIENT_H_ |
7 | 7 |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/callback_forward.h" | 10 #include "base/callback_forward.h" |
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
93 virtual bool HasCreditCardScanFeature() = 0; | 93 virtual bool HasCreditCardScanFeature() = 0; |
94 | 94 |
95 // Shows the user interface for scanning a credit card. Invokes the |callback| | 95 // Shows the user interface for scanning a credit card. Invokes the |callback| |
96 // when a credit card is scanned successfully. Should be called only if | 96 // when a credit card is scanned successfully. Should be called only if |
97 // HasCreditCardScanFeature() returns true. | 97 // HasCreditCardScanFeature() returns true. |
98 virtual void ScanCreditCard(const CreditCardScanCallback& callback) = 0; | 98 virtual void ScanCreditCard(const CreditCardScanCallback& callback) = 0; |
99 | 99 |
100 // Causes the dialog for request autocomplete feature to be shown. | 100 // Causes the dialog for request autocomplete feature to be shown. |
101 virtual void ShowRequestAutocompleteDialog( | 101 virtual void ShowRequestAutocompleteDialog( |
102 const FormData& form, | 102 const FormData& form, |
103 const GURL& source_url, | 103 content::RenderFrameHost* render_frame_host, |
104 const ResultCallback& callback) = 0; | 104 const ResultCallback& callback) = 0; |
105 | 105 |
106 // Shows an Autofill popup with the given |values|, |labels|, |icons|, and | 106 // Shows an Autofill popup with the given |values|, |labels|, |icons|, and |
107 // |identifiers| for the element at |element_bounds|. |delegate| will be | 107 // |identifiers| for the element at |element_bounds|. |delegate| will be |
108 // notified of popup events. | 108 // notified of popup events. |
109 virtual void ShowAutofillPopup( | 109 virtual void ShowAutofillPopup( |
110 const gfx::RectF& element_bounds, | 110 const gfx::RectF& element_bounds, |
111 base::i18n::TextDirection text_direction, | 111 base::i18n::TextDirection text_direction, |
112 const std::vector<Suggestion>& suggestions, | 112 const std::vector<Suggestion>& suggestions, |
113 base::WeakPtr<AutofillPopupDelegate> delegate) = 0; | 113 base::WeakPtr<AutofillPopupDelegate> delegate) = 0; |
(...skipping 20 matching lines...) Expand all Loading... |
134 const base::string16& autofilled_value, | 134 const base::string16& autofilled_value, |
135 const base::string16& profile_full_name) = 0; | 135 const base::string16& profile_full_name) = 0; |
136 | 136 |
137 // Informs the client that a user gesture has been observed. | 137 // Informs the client that a user gesture has been observed. |
138 virtual void OnFirstUserGestureObserved() = 0; | 138 virtual void OnFirstUserGestureObserved() = 0; |
139 }; | 139 }; |
140 | 140 |
141 } // namespace autofill | 141 } // namespace autofill |
142 | 142 |
143 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_CLIENT_H_ | 143 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_CLIENT_H_ |
OLD | NEW |