| 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_BROWSER_AW_AUTOFILL_CLIENT_H_ | 5 #ifndef ANDROID_WEBVIEW_BROWSER_AW_AUTOFILL_CLIENT_H_ |
| 6 #define ANDROID_WEBVIEW_BROWSER_AW_AUTOFILL_CLIENT_H_ | 6 #define ANDROID_WEBVIEW_BROWSER_AW_AUTOFILL_CLIENT_H_ |
| 7 | 7 |
| 8 #include <jni.h> | 8 #include <jni.h> |
| 9 #include <memory> | 9 #include <memory> |
| 10 #include <string> | 10 #include <string> |
| (...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 97 const std::vector<base::string16>& labels) override; | 97 const std::vector<base::string16>& labels) override; |
| 98 void HideAutofillPopup() override; | 98 void HideAutofillPopup() override; |
| 99 bool IsAutocompleteEnabled() override; | 99 bool IsAutocompleteEnabled() override; |
| 100 void PropagateAutofillPredictions( | 100 void PropagateAutofillPredictions( |
| 101 content::RenderFrameHost* rfh, | 101 content::RenderFrameHost* rfh, |
| 102 const std::vector<autofill::FormStructure*>& forms) override; | 102 const std::vector<autofill::FormStructure*>& forms) override; |
| 103 void DidFillOrPreviewField(const base::string16& autofilled_value, | 103 void DidFillOrPreviewField(const base::string16& autofilled_value, |
| 104 const base::string16& profile_full_name) override; | 104 const base::string16& profile_full_name) override; |
| 105 bool IsContextSecure() override; | 105 bool IsContextSecure() override; |
| 106 bool ShouldShowSigninPromo() override; | 106 bool ShouldShowSigninPromo() override; |
| 107 void StartSigninFlow() override; | |
| 108 void ShowHttpNotSecureExplanation() override; | |
| 109 bool IsAutofillSupported() override; | 107 bool IsAutofillSupported() override; |
| 108 void ExecuteCommand(int id) override; |
| 110 | 109 |
| 111 void Dismissed(JNIEnv* env, const base::android::JavaParamRef<jobject>& obj); | 110 void Dismissed(JNIEnv* env, const base::android::JavaParamRef<jobject>& obj); |
| 112 void SuggestionSelected(JNIEnv* env, | 111 void SuggestionSelected(JNIEnv* env, |
| 113 const base::android::JavaParamRef<jobject>& obj, | 112 const base::android::JavaParamRef<jobject>& obj, |
| 114 jint position); | 113 jint position); |
| 115 | 114 |
| 116 private: | 115 private: |
| 117 explicit AwAutofillClient(content::WebContents* web_contents); | 116 explicit AwAutofillClient(content::WebContents* web_contents); |
| 118 friend class content::WebContentsUserData<AwAutofillClient>; | 117 friend class content::WebContentsUserData<AwAutofillClient>; |
| 119 | 118 |
| (...skipping 14 matching lines...) Expand all Loading... |
| 134 base::WeakPtr<autofill::AutofillPopupDelegate> delegate_; | 133 base::WeakPtr<autofill::AutofillPopupDelegate> delegate_; |
| 135 | 134 |
| 136 DISALLOW_COPY_AND_ASSIGN(AwAutofillClient); | 135 DISALLOW_COPY_AND_ASSIGN(AwAutofillClient); |
| 137 }; | 136 }; |
| 138 | 137 |
| 139 bool RegisterAwAutofillClient(JNIEnv* env); | 138 bool RegisterAwAutofillClient(JNIEnv* env); |
| 140 | 139 |
| 141 } // namespace android_webview | 140 } // namespace android_webview |
| 142 | 141 |
| 143 #endif // ANDROID_WEBVIEW_BROWSER_AW_AUTOFILL_CLIENT_H_ | 142 #endif // ANDROID_WEBVIEW_BROWSER_AW_AUTOFILL_CLIENT_H_ |
| OLD | NEW |