Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(143)

Side by Side Diff: android_webview/native/aw_autofill_client.h

Issue 710453002: [Autofill] Componentize AutofillCCInfoBarDelegate. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addresses Ilya's review inputs. Created 5 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
84 const std::vector<base::string16>& labels) override; 84 const std::vector<base::string16>& labels) override;
85 virtual void HideAutofillPopup() override; 85 virtual void HideAutofillPopup() override;
86 virtual bool IsAutocompleteEnabled() override; 86 virtual bool IsAutocompleteEnabled() override;
87 virtual void DetectAccountCreationForms( 87 virtual void DetectAccountCreationForms(
88 content::RenderFrameHost* rfh, 88 content::RenderFrameHost* rfh,
89 const std::vector<autofill::FormStructure*>& forms) override; 89 const std::vector<autofill::FormStructure*>& forms) override;
90 virtual void DidFillOrPreviewField( 90 virtual void DidFillOrPreviewField(
91 const base::string16& autofilled_value, 91 const base::string16& autofilled_value,
92 const base::string16& profile_full_name) override; 92 const base::string16& profile_full_name) override;
93 virtual void OnFirstUserGestureObserved() override; 93 virtual void OnFirstUserGestureObserved() override;
94 virtual bool LinkClicked(WindowOpenDisposition disposition) override;
94 95
95 void SuggestionSelected(JNIEnv* env, jobject obj, jint position); 96 void SuggestionSelected(JNIEnv* env, jobject obj, jint position);
96 97
97 private: 98 private:
98 AwAutofillClient(content::WebContents* web_contents); 99 AwAutofillClient(content::WebContents* web_contents);
99 friend class content::WebContentsUserData<AwAutofillClient>; 100 friend class content::WebContentsUserData<AwAutofillClient>;
100 101
101 void ShowAutofillPopupImpl( 102 void ShowAutofillPopupImpl(
102 const gfx::RectF& element_bounds, 103 const gfx::RectF& element_bounds,
103 bool is_rtl, 104 bool is_rtl,
104 const std::vector<autofill::Suggestion>& suggestions); 105 const std::vector<autofill::Suggestion>& suggestions);
105 106
106 // The web_contents associated with this delegate. 107 // The web_contents associated with this delegate.
107 content::WebContents* web_contents_; 108 content::WebContents* web_contents_;
108 bool save_form_data_; 109 bool save_form_data_;
109 JavaObjectWeakGlobalRef java_ref_; 110 JavaObjectWeakGlobalRef java_ref_;
110 111
111 // The current Autofill query values. 112 // The current Autofill query values.
112 std::vector<autofill::Suggestion> suggestions_; 113 std::vector<autofill::Suggestion> suggestions_;
113 base::WeakPtr<autofill::AutofillPopupDelegate> delegate_; 114 base::WeakPtr<autofill::AutofillPopupDelegate> delegate_;
114 115
115 DISALLOW_COPY_AND_ASSIGN(AwAutofillClient); 116 DISALLOW_COPY_AND_ASSIGN(AwAutofillClient);
116 }; 117 };
117 118
118 bool RegisterAwAutofillClient(JNIEnv* env); 119 bool RegisterAwAutofillClient(JNIEnv* env);
119 120
120 } // namespace android_webview 121 } // namespace android_webview
121 122
122 #endif // ANDROID_WEBVIEW_NATIVE_AW_AUTOFILL_CLIENT_H_ 123 #endif // ANDROID_WEBVIEW_NATIVE_AW_AUTOFILL_CLIENT_H_
OLDNEW
« no previous file with comments | « no previous file | android_webview/native/aw_autofill_client.cc » ('j') | android_webview/native/aw_autofill_client.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698