| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 #import "ios/chrome/browser/ui/autofill/autofill_client_ios.h" | 5 #import "ios/chrome/browser/ui/autofill/autofill_client_ios.h" |
| 6 | 6 |
| 7 #include <utility> | 7 #include <utility> |
| 8 | 8 |
| 9 #include "base/bind.h" | 9 #include "base/bind.h" |
| 10 #include "base/memory/ptr_util.h" | 10 #include "base/memory/ptr_util.h" |
| (...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 117 } | 117 } |
| 118 | 118 |
| 119 bool AutofillClientIOS::HasCreditCardScanFeature() { | 119 bool AutofillClientIOS::HasCreditCardScanFeature() { |
| 120 return false; | 120 return false; |
| 121 } | 121 } |
| 122 | 122 |
| 123 void AutofillClientIOS::ScanCreditCard(const CreditCardScanCallback& callback) { | 123 void AutofillClientIOS::ScanCreditCard(const CreditCardScanCallback& callback) { |
| 124 NOTREACHED(); | 124 NOTREACHED(); |
| 125 } | 125 } |
| 126 | 126 |
| 127 void AutofillClientIOS::ShowRequestAutocompleteDialog( | |
| 128 const FormData& form, | |
| 129 content::RenderFrameHost* render_frame_host, | |
| 130 const ResultCallback& callback) { | |
| 131 NOTREACHED(); | |
| 132 } | |
| 133 | |
| 134 void AutofillClientIOS::ShowAutofillPopup( | 127 void AutofillClientIOS::ShowAutofillPopup( |
| 135 const gfx::RectF& element_bounds, | 128 const gfx::RectF& element_bounds, |
| 136 base::i18n::TextDirection text_direction, | 129 base::i18n::TextDirection text_direction, |
| 137 const std::vector<Suggestion>& suggestions, | 130 const std::vector<Suggestion>& suggestions, |
| 138 base::WeakPtr<AutofillPopupDelegate> delegate) { | 131 base::WeakPtr<AutofillPopupDelegate> delegate) { |
| 139 [bridge_ showAutofillPopup:suggestions popupDelegate:delegate]; | 132 [bridge_ showAutofillPopup:suggestions popupDelegate:delegate]; |
| 140 } | 133 } |
| 141 | 134 |
| 142 void AutofillClientIOS::HideAutofillPopup() { | 135 void AutofillClientIOS::HideAutofillPopup() { |
| 143 [bridge_ hideAutofillPopup]; | 136 [bridge_ hideAutofillPopup]; |
| 144 } | 137 } |
| 145 | 138 |
| 146 bool AutofillClientIOS::IsAutocompleteEnabled() { | 139 bool AutofillClientIOS::IsAutocompleteEnabled() { |
| 147 // For browser, Autocomplete is always enabled as part of Autofill. | 140 // For browser, Autocomplete is always enabled as part of Autofill. |
| 148 return GetPrefs()->GetBoolean(prefs::kAutofillEnabled); | 141 return GetPrefs()->GetBoolean(prefs::kAutofillEnabled); |
| 149 } | 142 } |
| 150 | 143 |
| 151 void AutofillClientIOS::HideRequestAutocompleteDialog() { | |
| 152 NOTREACHED(); | |
| 153 } | |
| 154 | |
| 155 void AutofillClientIOS::UpdateAutofillPopupDataListValues( | 144 void AutofillClientIOS::UpdateAutofillPopupDataListValues( |
| 156 const std::vector<base::string16>& values, | 145 const std::vector<base::string16>& values, |
| 157 const std::vector<base::string16>& labels) { | 146 const std::vector<base::string16>& labels) { |
| 158 NOTREACHED(); | 147 NOTREACHED(); |
| 159 } | 148 } |
| 160 | 149 |
| 161 void AutofillClientIOS::PropagateAutofillPredictions( | 150 void AutofillClientIOS::PropagateAutofillPredictions( |
| 162 content::RenderFrameHost* rfh, | 151 content::RenderFrameHost* rfh, |
| 163 const std::vector<FormStructure*>& forms) { | 152 const std::vector<FormStructure*>& forms) { |
| 164 if (password_generation_manager_) { | 153 if (password_generation_manager_) { |
| (...skipping 17 matching lines...) Expand all Loading... |
| 182 return form_origin.SchemeIsCryptographic(); | 171 return form_origin.SchemeIsCryptographic(); |
| 183 } | 172 } |
| 184 | 173 |
| 185 void AutofillClientIOS::OnFirstUserGestureObserved() { | 174 void AutofillClientIOS::OnFirstUserGestureObserved() { |
| 186 // TODO(gcasto): [Merge 306796] http://crbug.com/439425 Verify if this method | 175 // TODO(gcasto): [Merge 306796] http://crbug.com/439425 Verify if this method |
| 187 // needs a real implementation or not. | 176 // needs a real implementation or not. |
| 188 NOTIMPLEMENTED(); | 177 NOTIMPLEMENTED(); |
| 189 } | 178 } |
| 190 | 179 |
| 191 } // namespace autofill | 180 } // namespace autofill |
| OLD | NEW |