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