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 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
75 const std::vector<base::string16>& labels, | 75 const std::vector<base::string16>& labels, |
76 const std::vector<base::string16>& icons, | 76 const std::vector<base::string16>& icons, |
77 const std::vector<int>& identifiers, | 77 const std::vector<int>& identifiers, |
78 base::WeakPtr<autofill::AutofillPopupDelegate> delegate) override; | 78 base::WeakPtr<autofill::AutofillPopupDelegate> delegate) override; |
79 virtual void UpdateAutofillPopupDataListValues( | 79 virtual void UpdateAutofillPopupDataListValues( |
80 const std::vector<base::string16>& values, | 80 const std::vector<base::string16>& values, |
81 const std::vector<base::string16>& labels) override; | 81 const std::vector<base::string16>& labels) override; |
82 virtual void HideAutofillPopup() override; | 82 virtual void HideAutofillPopup() override; |
83 virtual bool IsAutocompleteEnabled() override; | 83 virtual bool IsAutocompleteEnabled() override; |
84 virtual void DetectAccountCreationForms( | 84 virtual void DetectAccountCreationForms( |
| 85 content::RenderFrameHost* rfh, |
85 const std::vector<autofill::FormStructure*>& forms) override; | 86 const std::vector<autofill::FormStructure*>& forms) override; |
86 virtual void DidFillOrPreviewField( | 87 virtual void DidFillOrPreviewField( |
87 const base::string16& autofilled_value, | 88 const base::string16& autofilled_value, |
88 const base::string16& profile_full_name) override; | 89 const base::string16& profile_full_name) override; |
| 90 virtual void OnFirstUserGestureObserved() override; |
89 | 91 |
90 void SuggestionSelected(JNIEnv* env, jobject obj, jint position); | 92 void SuggestionSelected(JNIEnv* env, jobject obj, jint position); |
91 | 93 |
92 private: | 94 private: |
93 AwAutofillClient(content::WebContents* web_contents); | 95 AwAutofillClient(content::WebContents* web_contents); |
94 friend class content::WebContentsUserData<AwAutofillClient>; | 96 friend class content::WebContentsUserData<AwAutofillClient>; |
95 | 97 |
96 void ShowAutofillPopupImpl(const gfx::RectF& element_bounds, | 98 void ShowAutofillPopupImpl(const gfx::RectF& element_bounds, |
97 bool is_rtl, | 99 bool is_rtl, |
98 const std::vector<base::string16>& values, | 100 const std::vector<base::string16>& values, |
(...skipping 11 matching lines...) Expand all Loading... |
110 base::WeakPtr<autofill::AutofillPopupDelegate> delegate_; | 112 base::WeakPtr<autofill::AutofillPopupDelegate> delegate_; |
111 | 113 |
112 DISALLOW_COPY_AND_ASSIGN(AwAutofillClient); | 114 DISALLOW_COPY_AND_ASSIGN(AwAutofillClient); |
113 }; | 115 }; |
114 | 116 |
115 bool RegisterAwAutofillClient(JNIEnv* env); | 117 bool RegisterAwAutofillClient(JNIEnv* env); |
116 | 118 |
117 } // namespace android_webview | 119 } // namespace android_webview |
118 | 120 |
119 #endif // ANDROID_WEBVIEW_NATIVE_AW_AUTOFILL_CLIENT_H_ | 121 #endif // ANDROID_WEBVIEW_NATIVE_AW_AUTOFILL_CLIENT_H_ |
OLD | NEW |