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 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 PropagateAutofillPredictions( | 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; | |
93 bool IsContextSecure(const GURL& form_origin) override; | 92 bool IsContextSecure(const GURL& form_origin) override; |
94 | 93 |
95 void SuggestionSelected(JNIEnv* env, jobject obj, jint position); | 94 void SuggestionSelected(JNIEnv* env, jobject obj, jint position); |
96 | 95 |
97 private: | 96 private: |
98 AwAutofillClient(content::WebContents* web_contents); | 97 AwAutofillClient(content::WebContents* web_contents); |
99 friend class content::WebContentsUserData<AwAutofillClient>; | 98 friend class content::WebContentsUserData<AwAutofillClient>; |
100 | 99 |
101 void ShowAutofillPopupImpl( | 100 void ShowAutofillPopupImpl( |
102 const gfx::RectF& element_bounds, | 101 const gfx::RectF& element_bounds, |
(...skipping 10 matching lines...) Expand all Loading... |
113 base::WeakPtr<autofill::AutofillPopupDelegate> delegate_; | 112 base::WeakPtr<autofill::AutofillPopupDelegate> delegate_; |
114 | 113 |
115 DISALLOW_COPY_AND_ASSIGN(AwAutofillClient); | 114 DISALLOW_COPY_AND_ASSIGN(AwAutofillClient); |
116 }; | 115 }; |
117 | 116 |
118 bool RegisterAwAutofillClient(JNIEnv* env); | 117 bool RegisterAwAutofillClient(JNIEnv* env); |
119 | 118 |
120 } // namespace android_webview | 119 } // namespace android_webview |
121 | 120 |
122 #endif // ANDROID_WEBVIEW_NATIVE_AW_AUTOFILL_CLIENT_H_ | 121 #endif // ANDROID_WEBVIEW_NATIVE_AW_AUTOFILL_CLIENT_H_ |
OLD | NEW |