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

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

Issue 707173004: Refactor Autofill for out of process iframes (OOPIF). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: mem leak Created 6 years 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
« no previous file with comments | « no previous file | android_webview/native/aw_autofill_client.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
77 const std::vector<base::string16>& labels, 77 const std::vector<base::string16>& labels,
78 const std::vector<base::string16>& icons, 78 const std::vector<base::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( 86 virtual void DetectAccountCreationForms(
87 content::RenderFrameHost* rfh,
87 const std::vector<autofill::FormStructure*>& forms) override; 88 const std::vector<autofill::FormStructure*>& forms) override;
88 virtual void DidFillOrPreviewField( 89 virtual void DidFillOrPreviewField(
89 const base::string16& autofilled_value, 90 const base::string16& autofilled_value,
90 const base::string16& profile_full_name) override; 91 const base::string16& profile_full_name) override;
92 virtual void OnFirstUserGestureObserved() override;
91 93
92 void SuggestionSelected(JNIEnv* env, jobject obj, jint position); 94 void SuggestionSelected(JNIEnv* env, jobject obj, jint position);
93 95
94 private: 96 private:
95 AwAutofillClient(content::WebContents* web_contents); 97 AwAutofillClient(content::WebContents* web_contents);
96 friend class content::WebContentsUserData<AwAutofillClient>; 98 friend class content::WebContentsUserData<AwAutofillClient>;
97 99
98 void ShowAutofillPopupImpl(const gfx::RectF& element_bounds, 100 void ShowAutofillPopupImpl(const gfx::RectF& element_bounds,
99 bool is_rtl, 101 bool is_rtl,
100 const std::vector<base::string16>& values, 102 const std::vector<base::string16>& values,
(...skipping 11 matching lines...) Expand all
112 base::WeakPtr<autofill::AutofillPopupDelegate> delegate_; 114 base::WeakPtr<autofill::AutofillPopupDelegate> delegate_;
113 115
114 DISALLOW_COPY_AND_ASSIGN(AwAutofillClient); 116 DISALLOW_COPY_AND_ASSIGN(AwAutofillClient);
115 }; 117 };
116 118
117 bool RegisterAwAutofillClient(JNIEnv* env); 119 bool RegisterAwAutofillClient(JNIEnv* env);
118 120
119 } // namespace android_webview 121 } // namespace android_webview
120 122
121 #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') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698