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

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

Issue 2863233002: [WebView] Move files from native to browser (Closed)
Patch Set: Created 3 years, 7 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_BROWSER_AW_AUTOFILL_CLIENT_H_
6 #define ANDROID_WEBVIEW_NATIVE_AW_AUTOFILL_CLIENT_H_ 6 #define ANDROID_WEBVIEW_BROWSER_AW_AUTOFILL_CLIENT_H_
7 7
8 #include <jni.h> 8 #include <jni.h>
9 #include <memory> 9 #include <memory>
10 #include <string> 10 #include <string>
11 #include <vector> 11 #include <vector>
12 12
13 #include "base/android/jni_weak_ref.h" 13 #include "base/android/jni_weak_ref.h"
14 #include "base/compiler_specific.h" 14 #include "base/compiler_specific.h"
15 #include "base/macros.h" 15 #include "base/macros.h"
16 #include "components/autofill/core/browser/autofill_client.h" 16 #include "components/autofill/core/browser/autofill_client.h"
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
101 void PropagateAutofillPredictions( 101 void PropagateAutofillPredictions(
102 content::RenderFrameHost* rfh, 102 content::RenderFrameHost* rfh,
103 const std::vector<autofill::FormStructure*>& forms) override; 103 const std::vector<autofill::FormStructure*>& forms) override;
104 void DidFillOrPreviewField(const base::string16& autofilled_value, 104 void DidFillOrPreviewField(const base::string16& autofilled_value,
105 const base::string16& profile_full_name) override; 105 const base::string16& profile_full_name) override;
106 bool IsContextSecure() override; 106 bool IsContextSecure() override;
107 bool ShouldShowSigninPromo() override; 107 bool ShouldShowSigninPromo() override;
108 void StartSigninFlow() override; 108 void StartSigninFlow() override;
109 void ShowHttpNotSecureExplanation() override; 109 void ShowHttpNotSecureExplanation() override;
110 110
111 void Dismissed(JNIEnv* env, 111 void Dismissed(JNIEnv* env, const base::android::JavaParamRef<jobject>& obj);
112 const base::android::JavaParamRef<jobject>& obj);
113 void SuggestionSelected(JNIEnv* env, 112 void SuggestionSelected(JNIEnv* env,
114 const base::android::JavaParamRef<jobject>& obj, 113 const base::android::JavaParamRef<jobject>& obj,
115 jint position); 114 jint position);
116 115
117 private: 116 private:
118 explicit AwAutofillClient(content::WebContents* web_contents); 117 explicit AwAutofillClient(content::WebContents* web_contents);
119 friend class content::WebContentsUserData<AwAutofillClient>; 118 friend class content::WebContentsUserData<AwAutofillClient>;
120 119
121 void ShowAutofillPopupImpl( 120 void ShowAutofillPopupImpl(
122 const gfx::RectF& element_bounds, 121 const gfx::RectF& element_bounds,
(...skipping 11 matching lines...) Expand all
134 std::vector<autofill::Suggestion> suggestions_; 133 std::vector<autofill::Suggestion> suggestions_;
135 base::WeakPtr<autofill::AutofillPopupDelegate> delegate_; 134 base::WeakPtr<autofill::AutofillPopupDelegate> delegate_;
136 135
137 DISALLOW_COPY_AND_ASSIGN(AwAutofillClient); 136 DISALLOW_COPY_AND_ASSIGN(AwAutofillClient);
138 }; 137 };
139 138
140 bool RegisterAwAutofillClient(JNIEnv* env); 139 bool RegisterAwAutofillClient(JNIEnv* env);
141 140
142 } // namespace android_webview 141 } // namespace android_webview
143 142
144 #endif // ANDROID_WEBVIEW_NATIVE_AW_AUTOFILL_CLIENT_H_ 143 #endif // ANDROID_WEBVIEW_BROWSER_AW_AUTOFILL_CLIENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698