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 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
76 void ShowAutofillPopup( | 76 void ShowAutofillPopup( |
77 const gfx::RectF& element_bounds, | 77 const gfx::RectF& element_bounds, |
78 base::i18n::TextDirection text_direction, | 78 base::i18n::TextDirection text_direction, |
79 const std::vector<autofill::Suggestion>& suggestions, | 79 const std::vector<autofill::Suggestion>& suggestions, |
80 base::WeakPtr<autofill::AutofillPopupDelegate> delegate) override; | 80 base::WeakPtr<autofill::AutofillPopupDelegate> delegate) override; |
81 void UpdateAutofillPopupDataListValues( | 81 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 void HideAutofillPopup() override; | 84 void HideAutofillPopup() override; |
85 bool IsAutocompleteEnabled() override; | 85 bool IsAutocompleteEnabled() override; |
86 void DetectAccountCreationForms( | 86 void PropagateAutofillPredictions( |
87 content::RenderFrameHost* rfh, | 87 content::RenderFrameHost* rfh, |
88 const std::vector<autofill::FormStructure*>& forms) override; | 88 const std::vector<autofill::FormStructure*>& forms) override; |
89 void DidFillOrPreviewField(const base::string16& autofilled_value, | 89 void DidFillOrPreviewField(const base::string16& autofilled_value, |
90 const base::string16& profile_full_name) override; | 90 const base::string16& profile_full_name) override; |
91 void OnFirstUserGestureObserved() override; | 91 void OnFirstUserGestureObserved() override; |
92 void LinkClicked(const GURL& url, WindowOpenDisposition disposition) override; | 92 void LinkClicked(const GURL& url, WindowOpenDisposition disposition) override; |
93 | 93 |
94 void SuggestionSelected(JNIEnv* env, jobject obj, jint position); | 94 void SuggestionSelected(JNIEnv* env, jobject obj, jint position); |
95 | 95 |
96 private: | 96 private: |
(...skipping 15 matching lines...) Expand all Loading... |
112 base::WeakPtr<autofill::AutofillPopupDelegate> delegate_; | 112 base::WeakPtr<autofill::AutofillPopupDelegate> delegate_; |
113 | 113 |
114 DISALLOW_COPY_AND_ASSIGN(AwAutofillClient); | 114 DISALLOW_COPY_AND_ASSIGN(AwAutofillClient); |
115 }; | 115 }; |
116 | 116 |
117 bool RegisterAwAutofillClient(JNIEnv* env); | 117 bool RegisterAwAutofillClient(JNIEnv* env); |
118 | 118 |
119 } // namespace android_webview | 119 } // namespace android_webview |
120 | 120 |
121 #endif // ANDROID_WEBVIEW_NATIVE_AW_AUTOFILL_CLIENT_H_ | 121 #endif // ANDROID_WEBVIEW_NATIVE_AW_AUTOFILL_CLIENT_H_ |
OLD | NEW |