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

Unified Diff: android_webview/native/aw_autofill_manager_delegate.h

Issue 16212007: Implement the autofill UI for chromium powered android webview. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@issue15097004
Patch Set: convert NOTREACHED to NOTIMPLEMENTED Created 7 years, 6 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 side-by-side diff with in-line comments
Download patch
Index: android_webview/native/aw_autofill_manager_delegate.h
diff --git a/android_webview/browser/aw_autofill_manager_delegate.h b/android_webview/native/aw_autofill_manager_delegate.h
similarity index 82%
rename from android_webview/browser/aw_autofill_manager_delegate.h
rename to android_webview/native/aw_autofill_manager_delegate.h
index e9ec7c530ee20fe8f6dfc9afef99898358921c0a..e3603e345c443a5b1ff5ff4e73af8059d863bc97 100644
--- a/android_webview/browser/aw_autofill_manager_delegate.h
+++ b/android_webview/native/aw_autofill_manager_delegate.h
@@ -5,6 +5,10 @@
#ifndef ANDROID_WEBVIEW_BROWSER_AW_AUTOFILL_MANAGER_DELEGATE_H_
#define ANDROID_WEBVIEW_BROWSER_AW_AUTOFILL_MANAGER_DELEGATE_H_
+#include <jni.h>
+#include <vector>
+
+#include "base/android/jni_helper.h"
#include "base/basictypes.h"
#include "base/compiler_specific.h"
#include "base/prefs/pref_registry_simple.h"
@@ -29,6 +33,10 @@ namespace content {
class WebContents;
}
+namespace gfx {
+class RectF;
+}
+
class PersonalDataManager;
class PrefService;
@@ -91,18 +99,33 @@ class AwAutofillManagerDelegate
autofill::AutocheckoutStepType step_type,
autofill::AutocheckoutStepStatus step_status) OVERRIDE;
+ void SuggestionSelected(JNIEnv* env,
+ jobject obj,
+ jint position);
private:
- AwAutofillManagerDelegate(content::WebContents* contents);
+ AwAutofillManagerDelegate(content::WebContents* web_contents);
friend class content::WebContentsUserData<AwAutofillManagerDelegate>;
+ void ShowAutofillPopupImpl(const gfx::RectF& element_bounds,
+ const std::vector<string16>& values,
+ const std::vector<string16>& labels,
+ const std::vector<int>& identifiers);
+
// The web_contents associated with this delegate.
content::WebContents* web_contents_;
-
bool save_form_data_;
+ JavaObjectWeakGlobalRef java_ref_;
+
+ // The current Autofill query values.
+ std::vector<string16> values_;
+ std::vector<int> identifiers_;
+ base::WeakPtr<autofill::AutofillPopupDelegate> delegate_;
DISALLOW_COPY_AND_ASSIGN(AwAutofillManagerDelegate);
};
+bool RegisterAwAutofillManagerDelegate(JNIEnv* env);
+
} // namespace android_webview
#endif // ANDROID_WEBVIEW_BROWSER_AW_AUTOFILL_MANAGER_DELEGATE_H_
« no previous file with comments | « android_webview/native/android_webview_jni_registrar.cc ('k') | android_webview/native/aw_autofill_manager_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698