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 #include "android_webview/native/aw_autofill_manager_delegate.h" | 5 #include "android_webview/native/aw_autofill_manager_delegate.h" |
6 | 6 |
7 #include "android_webview/browser/aw_browser_context.h" | 7 #include "android_webview/browser/aw_browser_context.h" |
8 #include "android_webview/browser/aw_content_browser_client.h" | 8 #include "android_webview/browser/aw_content_browser_client.h" |
9 #include "android_webview/browser/aw_pref_store.h" | 9 #include "android_webview/browser/aw_pref_store.h" |
10 #include "android_webview/native/aw_contents.h" | 10 #include "android_webview/native/aw_contents.h" |
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
144 if (obj.is_null()) | 144 if (obj.is_null()) |
145 return; | 145 return; |
146 delegate_.reset(); | 146 delegate_.reset(); |
147 Java_AwAutofillManagerDelegate_hideAutofillPopup(env, obj.obj()); | 147 Java_AwAutofillManagerDelegate_hideAutofillPopup(env, obj.obj()); |
148 } | 148 } |
149 | 149 |
150 bool AwAutofillManagerDelegate::IsAutocompleteEnabled() { | 150 bool AwAutofillManagerDelegate::IsAutocompleteEnabled() { |
151 return GetSaveFormData(); | 151 return GetSaveFormData(); |
152 } | 152 } |
153 | 153 |
| 154 void AwAutofillManagerDelegate::DetectAccountCreationForms( |
| 155 const std::vector<autofill::FormStructure*>& forms) {} |
| 156 |
154 void AwAutofillManagerDelegate::SuggestionSelected(JNIEnv* env, | 157 void AwAutofillManagerDelegate::SuggestionSelected(JNIEnv* env, |
155 jobject object, | 158 jobject object, |
156 jint position) { | 159 jint position) { |
157 if (delegate_) | 160 if (delegate_) |
158 delegate_->DidAcceptSuggestion(values_[position], identifiers_[position]); | 161 delegate_->DidAcceptSuggestion(values_[position], identifiers_[position]); |
159 } | 162 } |
160 | 163 |
161 void AwAutofillManagerDelegate::HideRequestAutocompleteDialog() { | 164 void AwAutofillManagerDelegate::HideRequestAutocompleteDialog() { |
162 NOTIMPLEMENTED(); | 165 NOTIMPLEMENTED(); |
163 } | 166 } |
(...skipping 15 matching lines...) Expand all Loading... |
179 const base::Callback<void(const autofill::FormStructure*, | 182 const base::Callback<void(const autofill::FormStructure*, |
180 const std::string&)>& callback) { | 183 const std::string&)>& callback) { |
181 NOTIMPLEMENTED(); | 184 NOTIMPLEMENTED(); |
182 } | 185 } |
183 | 186 |
184 bool RegisterAwAutofillManagerDelegate(JNIEnv* env) { | 187 bool RegisterAwAutofillManagerDelegate(JNIEnv* env) { |
185 return RegisterNativesImpl(env) >= 0; | 188 return RegisterNativesImpl(env) >= 0; |
186 } | 189 } |
187 | 190 |
188 } // namespace android_webview | 191 } // namespace android_webview |
OLD | NEW |