| 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 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 60 bool AwAutofillClient::GetSaveFormData() { | 60 bool AwAutofillClient::GetSaveFormData() { |
| 61 return save_form_data_; | 61 return save_form_data_; |
| 62 } | 62 } |
| 63 | 63 |
| 64 PrefService* AwAutofillClient::GetPrefs() { | 64 PrefService* AwAutofillClient::GetPrefs() { |
| 65 return user_prefs::UserPrefs::Get( | 65 return user_prefs::UserPrefs::Get( |
| 66 AwContentBrowserClient::GetAwBrowserContext()); | 66 AwContentBrowserClient::GetAwBrowserContext()); |
| 67 } | 67 } |
| 68 | 68 |
| 69 autofill::PersonalDataManager* AwAutofillClient::GetPersonalDataManager() { | 69 autofill::PersonalDataManager* AwAutofillClient::GetPersonalDataManager() { |
| 70 return NULL; | 70 return nullptr; |
| 71 } | 71 } |
| 72 | 72 |
| 73 scoped_refptr<autofill::AutofillWebDataService> | 73 scoped_refptr<autofill::AutofillWebDataService> |
| 74 AwAutofillClient::GetDatabase() { | 74 AwAutofillClient::GetDatabase() { |
| 75 android_webview::AwFormDatabaseService* service = | 75 android_webview::AwFormDatabaseService* service = |
| 76 static_cast<android_webview::AwBrowserContext*>( | 76 static_cast<android_webview::AwBrowserContext*>( |
| 77 web_contents_->GetBrowserContext())->GetFormDatabaseService(); | 77 web_contents_->GetBrowserContext())->GetFormDatabaseService(); |
| 78 return service->get_autofill_webdata_service(); | 78 return service->get_autofill_webdata_service(); |
| 79 } | 79 } |
| 80 | 80 |
| (...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 181 } | 181 } |
| 182 | 182 |
| 183 void AwAutofillClient::ShowAutofillSettings() { | 183 void AwAutofillClient::ShowAutofillSettings() { |
| 184 NOTIMPLEMENTED(); | 184 NOTIMPLEMENTED(); |
| 185 } | 185 } |
| 186 | 186 |
| 187 void AwAutofillClient::ShowUnmaskPrompt() { | 187 void AwAutofillClient::ShowUnmaskPrompt() { |
| 188 NOTIMPLEMENTED(); | 188 NOTIMPLEMENTED(); |
| 189 } | 189 } |
| 190 | 190 |
| 191 void AwAutofillClient::ConfirmSaveCreditCard( | |
| 192 const base::Closure& save_card_callback) { | |
| 193 NOTIMPLEMENTED(); | |
| 194 } | |
| 195 | |
| 196 bool AwAutofillClient::HasCreditCardScanFeature() { | 191 bool AwAutofillClient::HasCreditCardScanFeature() { |
| 197 return false; | 192 return false; |
| 198 } | 193 } |
| 199 | 194 |
| 200 void AwAutofillClient::ScanCreditCard(const CreditCardScanCallback& callback) { | 195 void AwAutofillClient::ScanCreditCard(const CreditCardScanCallback& callback) { |
| 201 NOTIMPLEMENTED(); | 196 NOTIMPLEMENTED(); |
| 202 } | 197 } |
| 203 | 198 |
| 204 void AwAutofillClient::ShowRequestAutocompleteDialog( | 199 void AwAutofillClient::ShowRequestAutocompleteDialog( |
| 205 const autofill::FormData& form, | 200 const autofill::FormData& form, |
| 206 const GURL& source_url, | 201 const GURL& source_url, |
| 207 const ResultCallback& callback) { | 202 const ResultCallback& callback) { |
| 208 NOTIMPLEMENTED(); | 203 NOTIMPLEMENTED(); |
| 209 } | 204 } |
| 210 | 205 |
| 211 bool RegisterAwAutofillClient(JNIEnv* env) { | 206 bool RegisterAwAutofillClient(JNIEnv* env) { |
| 212 return RegisterNativesImpl(env); | 207 return RegisterNativesImpl(env); |
| 213 } | 208 } |
| 214 | 209 |
| 210 infobars::InfoBarManager* GetInfoBarManager() { |
| 211 return nullptr; |
| 212 } |
| 213 |
| 215 } // namespace android_webview | 214 } // namespace android_webview |
| OLD | NEW |