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