OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_MANAGER_DELEGATE_H_ | 5 #ifndef ANDROID_WEBVIEW_BROWSER_AW_AUTOFILL_MANAGER_DELEGATE_H_ |
6 #define ANDROID_WEBVIEW_BROWSER_AW_AUTOFILL_MANAGER_DELEGATE_H_ | 6 #define ANDROID_WEBVIEW_BROWSER_AW_AUTOFILL_MANAGER_DELEGATE_H_ |
7 | 7 |
8 #include <jni.h> | 8 #include <jni.h> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
76 const std::vector<string16>& values, | 76 const std::vector<string16>& values, |
77 const std::vector<string16>& labels, | 77 const std::vector<string16>& labels, |
78 const std::vector<string16>& icons, | 78 const std::vector<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( |
| 87 const std::vector<autofill::FormStructure*>& forms) OVERRIDE; |
86 | 88 |
87 void SuggestionSelected(JNIEnv* env, | 89 void SuggestionSelected(JNIEnv* env, |
88 jobject obj, | 90 jobject obj, |
89 jint position); | 91 jint position); |
90 private: | 92 private: |
91 AwAutofillManagerDelegate(content::WebContents* web_contents); | 93 AwAutofillManagerDelegate(content::WebContents* web_contents); |
92 friend class content::WebContentsUserData<AwAutofillManagerDelegate>; | 94 friend class content::WebContentsUserData<AwAutofillManagerDelegate>; |
93 | 95 |
94 void ShowAutofillPopupImpl(const gfx::RectF& element_bounds, | 96 void ShowAutofillPopupImpl(const gfx::RectF& element_bounds, |
95 const std::vector<string16>& values, | 97 const std::vector<string16>& values, |
(...skipping 11 matching lines...) Expand all Loading... |
107 base::WeakPtr<autofill::AutofillPopupDelegate> delegate_; | 109 base::WeakPtr<autofill::AutofillPopupDelegate> delegate_; |
108 | 110 |
109 DISALLOW_COPY_AND_ASSIGN(AwAutofillManagerDelegate); | 111 DISALLOW_COPY_AND_ASSIGN(AwAutofillManagerDelegate); |
110 }; | 112 }; |
111 | 113 |
112 bool RegisterAwAutofillManagerDelegate(JNIEnv* env); | 114 bool RegisterAwAutofillManagerDelegate(JNIEnv* env); |
113 | 115 |
114 } // namespace android_webview | 116 } // namespace android_webview |
115 | 117 |
116 #endif // ANDROID_WEBVIEW_BROWSER_AW_AUTOFILL_MANAGER_DELEGATE_H_ | 118 #endif // ANDROID_WEBVIEW_BROWSER_AW_AUTOFILL_MANAGER_DELEGATE_H_ |
OLD | NEW |