| 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 #include "android_webview/native/aw_autofill_client.h" | 5 #include "android_webview/native/aw_autofill_client.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_form_database_service.h" | 9 #include "android_webview/browser/aw_form_database_service.h" |
| 10 #include "android_webview/browser/aw_pref_store.h" | 10 #include "android_webview/browser/aw_pref_store.h" |
| (...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 151 return; | 151 return; |
| 152 delegate_.reset(); | 152 delegate_.reset(); |
| 153 Java_AwAutofillClient_hideAutofillPopup(env, obj.obj()); | 153 Java_AwAutofillClient_hideAutofillPopup(env, obj.obj()); |
| 154 } | 154 } |
| 155 | 155 |
| 156 bool AwAutofillClient::IsAutocompleteEnabled() { | 156 bool AwAutofillClient::IsAutocompleteEnabled() { |
| 157 return GetSaveFormData(); | 157 return GetSaveFormData(); |
| 158 } | 158 } |
| 159 | 159 |
| 160 void AwAutofillClient::DetectAccountCreationForms( | 160 void AwAutofillClient::DetectAccountCreationForms( |
| 161 content::RenderFrameHost* rfh, |
| 161 const std::vector<autofill::FormStructure*>& forms) { | 162 const std::vector<autofill::FormStructure*>& forms) { |
| 163 |
| 162 } | 164 } |
| 163 | 165 |
| 164 void AwAutofillClient::DidFillOrPreviewField( | 166 void AwAutofillClient::DidFillOrPreviewField( |
| 165 const base::string16& autofilled_value, | 167 const base::string16& autofilled_value, |
| 166 const base::string16& profile_full_name) { | 168 const base::string16& profile_full_name) { |
| 167 } | 169 } |
| 168 | 170 |
| 171 void AwAutofillClient::OnFirstUserGestureObserved() { |
| 172 NOTIMPLEMENTED(); |
| 173 } |
| 174 |
| 169 void AwAutofillClient::SuggestionSelected(JNIEnv* env, | 175 void AwAutofillClient::SuggestionSelected(JNIEnv* env, |
| 170 jobject object, | 176 jobject object, |
| 171 jint position) { | 177 jint position) { |
| 172 if (delegate_) | 178 if (delegate_) |
| 173 delegate_->DidAcceptSuggestion(values_[position], identifiers_[position]); | 179 delegate_->DidAcceptSuggestion(values_[position], identifiers_[position]); |
| 174 } | 180 } |
| 175 | 181 |
| 176 void AwAutofillClient::HideRequestAutocompleteDialog() { | 182 void AwAutofillClient::HideRequestAutocompleteDialog() { |
| 177 NOTIMPLEMENTED(); | 183 NOTIMPLEMENTED(); |
| 178 } | 184 } |
| (...skipping 21 matching lines...) Expand all Loading... |
| 200 const GURL& source_url, | 206 const GURL& source_url, |
| 201 const ResultCallback& callback) { | 207 const ResultCallback& callback) { |
| 202 NOTIMPLEMENTED(); | 208 NOTIMPLEMENTED(); |
| 203 } | 209 } |
| 204 | 210 |
| 205 bool RegisterAwAutofillClient(JNIEnv* env) { | 211 bool RegisterAwAutofillClient(JNIEnv* env) { |
| 206 return RegisterNativesImpl(env); | 212 return RegisterNativesImpl(env); |
| 207 } | 213 } |
| 208 | 214 |
| 209 } // namespace android_webview | 215 } // namespace android_webview |
| OLD | NEW |