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 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
92 const std::vector<base::string16>& labels) override; | 92 const std::vector<base::string16>& labels) override; |
93 void HideAutofillPopup() override; | 93 void HideAutofillPopup() override; |
94 bool IsAutocompleteEnabled() override; | 94 bool IsAutocompleteEnabled() override; |
95 void PropagateAutofillPredictions( | 95 void PropagateAutofillPredictions( |
96 content::RenderFrameHost* rfh, | 96 content::RenderFrameHost* rfh, |
97 const std::vector<autofill::FormStructure*>& forms) override; | 97 const std::vector<autofill::FormStructure*>& forms) override; |
98 void DidFillOrPreviewField(const base::string16& autofilled_value, | 98 void DidFillOrPreviewField(const base::string16& autofilled_value, |
99 const base::string16& profile_full_name) override; | 99 const base::string16& profile_full_name) override; |
100 void OnFirstUserGestureObserved() override; | 100 void OnFirstUserGestureObserved() override; |
101 bool IsContextSecure(const GURL& form_origin) override; | 101 bool IsContextSecure(const GURL& form_origin) override; |
| 102 bool ShouldShowSigninPromo() override; |
| 103 void StartSigninFlow() override; |
102 | 104 |
103 void SuggestionSelected(JNIEnv* env, | 105 void SuggestionSelected(JNIEnv* env, |
104 const base::android::JavaParamRef<jobject>& obj, | 106 const base::android::JavaParamRef<jobject>& obj, |
105 jint position); | 107 jint position); |
106 | 108 |
107 private: | 109 private: |
108 AwAutofillClient(content::WebContents* web_contents); | 110 AwAutofillClient(content::WebContents* web_contents); |
109 friend class content::WebContentsUserData<AwAutofillClient>; | 111 friend class content::WebContentsUserData<AwAutofillClient>; |
110 | 112 |
111 void ShowAutofillPopupImpl( | 113 void ShowAutofillPopupImpl( |
(...skipping 11 matching lines...) Expand all Loading... |
123 base::WeakPtr<autofill::AutofillPopupDelegate> delegate_; | 125 base::WeakPtr<autofill::AutofillPopupDelegate> delegate_; |
124 | 126 |
125 DISALLOW_COPY_AND_ASSIGN(AwAutofillClient); | 127 DISALLOW_COPY_AND_ASSIGN(AwAutofillClient); |
126 }; | 128 }; |
127 | 129 |
128 bool RegisterAwAutofillClient(JNIEnv* env); | 130 bool RegisterAwAutofillClient(JNIEnv* env); |
129 | 131 |
130 } // namespace android_webview | 132 } // namespace android_webview |
131 | 133 |
132 #endif // ANDROID_WEBVIEW_NATIVE_AW_AUTOFILL_CLIENT_H_ | 134 #endif // ANDROID_WEBVIEW_NATIVE_AW_AUTOFILL_CLIENT_H_ |
OLD | NEW |