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 ANDROID_WEBVIEW_NATIVE_AW_AUTOFILL_CLIENT_H_ | 5 #ifndef ANDROID_WEBVIEW_NATIVE_AW_AUTOFILL_CLIENT_H_ |
6 #define ANDROID_WEBVIEW_NATIVE_AW_AUTOFILL_CLIENT_H_ | 6 #define ANDROID_WEBVIEW_NATIVE_AW_AUTOFILL_CLIENT_H_ |
7 | 7 |
8 #include <jni.h> | 8 #include <jni.h> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
69 void HideRequestAutocompleteDialog() override; | 69 void HideRequestAutocompleteDialog() override; |
70 void ShowAutofillSettings() override; | 70 void ShowAutofillSettings() override; |
71 void ShowUnmaskPrompt( | 71 void ShowUnmaskPrompt( |
72 const autofill::CreditCard& card, | 72 const autofill::CreditCard& card, |
73 base::WeakPtr<autofill::CardUnmaskDelegate> delegate) override; | 73 base::WeakPtr<autofill::CardUnmaskDelegate> delegate) override; |
74 void OnUnmaskVerificationResult(PaymentsRpcResult result) override; | 74 void OnUnmaskVerificationResult(PaymentsRpcResult result) override; |
75 void ConfirmSaveCreditCardLocally(const autofill::CreditCard& card, | 75 void ConfirmSaveCreditCardLocally(const autofill::CreditCard& card, |
76 const base::Closure& callback) override; | 76 const base::Closure& callback) override; |
77 void ConfirmSaveCreditCardToCloud( | 77 void ConfirmSaveCreditCardToCloud( |
78 const autofill::CreditCard& card, | 78 const autofill::CreditCard& card, |
79 scoped_ptr<base::DictionaryValue> legal_message, | 79 std::unique_ptr<base::DictionaryValue> legal_message, |
80 const base::Closure& callback) override; | 80 const base::Closure& callback) override; |
81 void LoadRiskData( | 81 void LoadRiskData( |
82 const base::Callback<void(const std::string&)>& callback) override; | 82 const base::Callback<void(const std::string&)>& callback) override; |
83 bool HasCreditCardScanFeature() override; | 83 bool HasCreditCardScanFeature() override; |
84 void ScanCreditCard(const CreditCardScanCallback& callback) override; | 84 void ScanCreditCard(const CreditCardScanCallback& callback) override; |
85 void ShowRequestAutocompleteDialog(const autofill::FormData& form, | 85 void ShowRequestAutocompleteDialog(const autofill::FormData& form, |
86 content::RenderFrameHost* rfh, | 86 content::RenderFrameHost* rfh, |
87 const ResultCallback& callback) override; | 87 const ResultCallback& callback) override; |
88 void ShowAutofillPopup( | 88 void ShowAutofillPopup( |
89 const gfx::RectF& element_bounds, | 89 const gfx::RectF& element_bounds, |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
126 base::WeakPtr<autofill::AutofillPopupDelegate> delegate_; | 126 base::WeakPtr<autofill::AutofillPopupDelegate> delegate_; |
127 | 127 |
128 DISALLOW_COPY_AND_ASSIGN(AwAutofillClient); | 128 DISALLOW_COPY_AND_ASSIGN(AwAutofillClient); |
129 }; | 129 }; |
130 | 130 |
131 bool RegisterAwAutofillClient(JNIEnv* env); | 131 bool RegisterAwAutofillClient(JNIEnv* env); |
132 | 132 |
133 } // namespace android_webview | 133 } // namespace android_webview |
134 | 134 |
135 #endif // ANDROID_WEBVIEW_NATIVE_AW_AUTOFILL_CLIENT_H_ | 135 #endif // ANDROID_WEBVIEW_NATIVE_AW_AUTOFILL_CLIENT_H_ |
OLD | NEW |