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

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

Issue 1582353006: CountryNames: Separate data creation from usage (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@571610_exposeCountryNamesToTesting
Patch Set: More Android fixes Created 4 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 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
95 const std::vector<base::string16>& labels) override; 95 const std::vector<base::string16>& labels) override;
96 void HideAutofillPopup() override; 96 void HideAutofillPopup() override;
97 bool IsAutocompleteEnabled() override; 97 bool IsAutocompleteEnabled() override;
98 void PropagateAutofillPredictions( 98 void PropagateAutofillPredictions(
99 content::RenderFrameHost* rfh, 99 content::RenderFrameHost* rfh,
100 const std::vector<autofill::FormStructure*>& forms) override; 100 const std::vector<autofill::FormStructure*>& forms) override;
101 void DidFillOrPreviewField(const base::string16& autofilled_value, 101 void DidFillOrPreviewField(const base::string16& autofilled_value,
102 const base::string16& profile_full_name) override; 102 const base::string16& profile_full_name) override;
103 void OnFirstUserGestureObserved() override; 103 void OnFirstUserGestureObserved() override;
104 bool IsContextSecure(const GURL& form_origin) override; 104 bool IsContextSecure(const GURL& form_origin) override;
105 const std::string& GetApplicationLocale() override;
105 106
106 void SuggestionSelected(JNIEnv* env, 107 void SuggestionSelected(JNIEnv* env,
107 const base::android::JavaParamRef<jobject>& obj, 108 const base::android::JavaParamRef<jobject>& obj,
108 jint position); 109 jint position);
109 110
110 private: 111 private:
111 AwAutofillClient(content::WebContents* web_contents); 112 AwAutofillClient(content::WebContents* web_contents);
112 friend class content::WebContentsUserData<AwAutofillClient>; 113 friend class content::WebContentsUserData<AwAutofillClient>;
113 114
114 void ShowAutofillPopupImpl( 115 void ShowAutofillPopupImpl(
115 const gfx::RectF& element_bounds, 116 const gfx::RectF& element_bounds,
116 bool is_rtl, 117 bool is_rtl,
117 const std::vector<autofill::Suggestion>& suggestions); 118 const std::vector<autofill::Suggestion>& suggestions);
118 119
119 // The web_contents associated with this delegate. 120 // The web_contents associated with this delegate.
120 content::WebContents* web_contents_; 121 content::WebContents* web_contents_;
121 bool save_form_data_; 122 bool save_form_data_;
122 JavaObjectWeakGlobalRef java_ref_; 123 JavaObjectWeakGlobalRef java_ref_;
123 124
124 // The current Autofill query values. 125 // The current Autofill query values.
125 std::vector<autofill::Suggestion> suggestions_; 126 std::vector<autofill::Suggestion> suggestions_;
126 base::WeakPtr<autofill::AutofillPopupDelegate> delegate_; 127 base::WeakPtr<autofill::AutofillPopupDelegate> delegate_;
127 128
129 const std::string application_locale_;
130
128 DISALLOW_COPY_AND_ASSIGN(AwAutofillClient); 131 DISALLOW_COPY_AND_ASSIGN(AwAutofillClient);
129 }; 132 };
130 133
131 bool RegisterAwAutofillClient(JNIEnv* env); 134 bool RegisterAwAutofillClient(JNIEnv* env);
132 135
133 } // namespace android_webview 136 } // namespace android_webview
134 137
135 #endif // ANDROID_WEBVIEW_NATIVE_AW_AUTOFILL_CLIENT_H_ 138 #endif // ANDROID_WEBVIEW_NATIVE_AW_AUTOFILL_CLIENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698